h1, h2 {
    text-align: center;
    color: #333;
}

/* Notification Icon Styles */
.notification-icon-container {
    width: 70%;
    max-width: 500px;
    margin: auto;
    text-align: center;
    height: auto;
    img {
        width: 60px;
        opacity: 0.75;
    }
}

.notification-icon {
    position: relative;
    display: inline-block;
    color: #fff;
    font-size: 32px;
    text-decoration: none;
    padding: 5px;
    transition: color 0.3s;
    opacity: 0.75;
    transition: color 0.3s, opacity 0.3s;
}

.notification-icon:hover {
    color: #fff;
    opacity: 1;
}

.notification-icon.has-notifications {
    opacity: 1;
}

.notification-icon.has-pending-event {
    color: #973c32;
    opacity: 1 !important; 
}

.notification-count {
    position: absolute;
    top: 0;
    right: 6px;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.1;
    text-align: center;
}

.notification-icon.has-notifications .notification-count {
    background-color: #e74d3ca2;
    border: 1px solid rgba(200, 200, 200, 0.85);
}

.current-date-display {
    font-size: 14px;
    color: #fff;
    margin-top: 6px;
}

/* Form Styles */
.header, .form-group {
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    font-family: 'Trebuchet Sans', system-ui;
    text-shadow: 2px 4px 6px rgb(155, 155, 155, 0.5);
    h2 {
        font-size: 30px;
        margin: 0px;
        color: #fff;
    }
    h4 {
        margin: 0px 0px 25px;
        color: #bbb;
    }
}

/* Text Editor  */
input, textarea {
    padding: 10px;
    margin: 5px auto;
    border-radius: 5px;
    width: 70%;
    box-sizing: border-box;
    display: block;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 14px;
    background-color: rgb(235, 235, 235, 0.2);
    border: 1px solid rgb(155, 155, 155, 0.5);
    box-shadow: 2px 4px 6px rgba(145, 145, 145, 0.5);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    &#title, &#entryText {
        max-width: 450px;
    }
}

textarea {
    height: 50px;
    resize: vertical;
}

.dummy-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    margin-bottom: 10px;
    cursor: pointer;
}

input#title {
    color: #fff;
}

input:focus, 
textarea:focus,
input#title:focus {
    background-color: rgb(60, 60, 60, 0.75);
    border-color: rgba(255, 255, 255, 0.5);
}

textarea#entryText[readonly]:focus {
    background-color: rgb(235, 235, 235, 0.2);
    border-color: rgb(155, 155, 155, 0.5);
    outline: none;
    box-shadow: 2px 4px 6px rgba(145, 145, 145, 0.5);
}

input#title::placeholder 
input#title::-webkit-input-placeholder, /* WebKit, Blink, Edge */
input#title::-moz-placeholder, /* Mozilla Firefox 19+ */
input#title:-ms-input-placeholder, /* Internet Explorer 10-11 */
input#title::-ms-input-placeholder { /* Microsoft Edge */
    color: #bbb;
    opacity: 1;
}

input#journalEventEndTime.hidden {
    display: none !important;
}

/* Cross-Browser Compatibility (vendor Prefixes) */
textarea#entryText.preview-placeholder-white::placeholder,
textarea#entryText.preview-placeholder-white::-webkit-input-placeholder {
    color: white;
    opacity: 1;
}

textarea#entryText {
    position: relative;
    z-index: 1;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
    transition: opacity 0.4s ease-in-out,
                max-height 0.4s ease-in-out,
                margin-bottom 0.4s ease-in-out,
                padding 0.4s ease-in-out,       
                border-width 0.4s ease-in-out; 
}

textarea#entryText.hidden-by-carousel {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

input#title {
    position: relative;
    z-index: 1;
    opacity: 1;
    max-height: 50px;
    overflow: hidden;
    transition: opacity 0.4s ease-in-out,
                max-height 0.4s ease-in-out,
                margin-bottom 0.4s ease-in-out,
                padding 0.4s ease-in-out,       
                border-width 0.4s ease-in-out; 
}

input#title.hidden-by-carousel {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.entries {
    margin-top: 20px;
    width: 100%;
}

.entry {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: white;
}

/* Override for entries page */
.entries-view .entry {
    background-color: transparent;
    border: none;
}

.toggle {
    cursor: pointer;
    font-size: 30px;
    color: #ccc;
    z-index: 1000;
    padding: 10px;
    position: relative;
    transition: 300ms;
    &&:hover {
        transform: scale(1.2);
    }
}

/* Checklist Controls */
.checklist {
    cursor: pointer;
    font-size: 20px;
    padding: 5px;  
    transition: transform 0.3s ease;
}

#add {
    color: #50C878; 
}

.checklist-section {
    width: 90%;
    margin: 5px auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    max-height: 115px;
    overflow-y: auto;

    /* --- Fade Effect with Masking --- */
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 90%,
        rgba(0, 0, 0, 0) 100%
    );

    /* WebKit Scrollbar (Chrome, Safari, Edge, Opera) */
    &::-webkit-scrollbar {
        width: 6px;
    }
    &::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 3px;
    }
    &::-webkit-scrollbar-thumb {
        background-color: rgba(155, 155, 155, 0.4);
        border-radius: 3px;
        border: 1px solid rgba(200, 200, 200, 0.2);
    }
    /* Firefox Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.4) transparent;
}

@media screen and (min-width: 600px) {
    .checklist-section {
        width: 70%;
    }
}

#emptyChecklistMessage {
    color: rgb(225, 225, 225, 0.5);
    font-size: 14px;
    margin: 0px;
    font-style: italic;
}

#emptyChecklistMessage.hidden {
    display: none;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 90%;
    & input[type="checkbox"] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }   
    & input[type="text"] {
        flex-grow: 0;
        width: 100%;
        height: 30px;
        color: #fff;
    }   
}

.checklist-remove {
    position: relative;
    background: none;
    border: none;
    color: #D90429;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    width: 0%;
}

.checklist-remove:hover {
    color: #A3001B;
    transform: scale(1.1);
}

.checklist-drag {
    position: relative;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    width: 0%;
    margin: 0px 10px;
    touch-action: none;
}

.checklist-drag:hover {
    color: #ccc;
    transform: scale(1.1);
}

.checklist-item.dragging {
    opacity: 0.5;
    background: rgba(200, 200, 200, 0.1);
    border: 1px dashed #ccc;
}

.drag-over-indicator {
    height: 2px;
    background-color: #50C878;
    width: 80%; 
    margin: 2px auto;
    border-radius: 1px;
    pointer-events: none;
}

/* Active Tags */
.active-tags-wrapper {
    width: 60vw;
    max-width: 300px;
    margin: 10px auto 5px auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

#activeTagsDisplayPanel {
    flex-grow: 1;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(215, 215, 215, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    min-height: 38px;
    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.3) transparent;
}

#activeTagsDisplayPanel::-webkit-scrollbar {
    height: 5px;
}
#activeTagsDisplayPanel::-webkit-scrollbar-track {
    background: transparent;
}
#activeTagsDisplayPanel::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.3);
    border-radius: 10px;
}

.active-tag-pill {
    display: inline-block;
    background-color: rgba(80, 200, 120, 0.2);
    color: #c8e6c9;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-right: 8px;
    border: 1px solid rgba(80, 200, 120, 0.4);
}

.active-tag-pill .remove-tag-btn {
    margin-left: 8px;
    color: #c8e6c9;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    padding: 0 2px;
    transition: color 0.2s;
}

.active-tag-pill .remove-tag-btn:hover {
    color: #ff8a80;
}

.no-active-tags-message {
    color: #bbb;
    font-size: 0.85em;
    font-style: italic;
    text-align: center;
    width: 100%;       
}

.active-tags-plus-btn {
    color: white;
    background-color: rgba(80, 200, 120, 0.25);
    border-color: rgba(80, 200, 120, 0.4);
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Tags Section */
.tags-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-width: 350px;
    padding: 15px;
    background-color: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
}

.tags-section.active {
    display: flex;
}

.tags-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 1em;
    text-align: center;
}

.tags-scroll-wrapper {
    max-height: 150px;
    min-height: 0;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid rgba(155, 155, 155, 0.2);
    border-radius: 4px;
    background-color: rgba(0,0,0,0.1);

    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.4) transparent;
}

.tags-scroll-wrapper::-webkit-scrollbar { width: 6px; }
.tags-scroll-wrapper::-webkit-scrollbar-track { background: transparent; border-radius: 3px;}
.tags-scroll-wrapper::-webkit-scrollbar-thumb { background-color: rgba(155, 155, 155, 0.4); border-radius: 3px; border: 1px solid rgba(200, 200, 200, 0.2); }

.existing-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #ddd;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid rgba(255, 255, 255 0.4);
}

.tag-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.tag-item.active-tag-item {
    background-color: rgba(80, 200, 120, 0.25);
    color: white;
    border: 1px solid rgba(80, 200, 120, 0.4);
}

.active-tag-pill {
    background-color: rgba(80, 200, 120, 0.2);
    color: white;
}

.tag-item label {
    cursor: pointer;
}

.add-tag-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.remove-tag-from-list-btn:hover {
    color: red;
}

#newTagInput {
    flex-grow: 1;
    margin: 0;
    color: #fff;
    &::placeholder {
        color: #999;
    }
}

#newTagInput:focus {
    background-color: rgb(60, 60, 60, 0.75);
    border-color: rgba(255, 255, 255, 0.5);
}

#addNewTagBtn.neumorphic-btn-icon {
    background-color:  rgba(80, 200, 120, 0.2); 
    padding: 6px 8px;
    width: 30px;
    border-radius: 50%;
    color: white;
}

/* Media Controls */
.media-controls-group {
    display: flex;
    flex-direction: row;
    align-items: top;
    padding-top: 15px;
    gap: 15px;
    width: auto;

    opacity: 1;
    transition: opacity 0.6s ease-in-out;
    img {
        width: 50px;
        height: auto;
        vertical-align: middle;
        opacity: 0.75;
        filter: grayscale(0.9); 
    }
}

@media screen and (max-width: 500px) {
    .media-controls-group {
        gap: 10px;
    }
}

.recording-controls {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    gap: 10px;
}

.rec-button {
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    justify-content: center;
    padding: 10px;
    width: auto;
    border-radius: 25px;
    &#micButton {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 32px;
        color: #ffffff;
    }
    &#camButton {
        background-color: #c7995c3b;
        border: 2px solid rgba(255, 193, 7, 0.5);
        font-size: 24px;
        color: #ccc;
    }
}

.rec-button:hover {
    color: #b91d1d;
    &#micButton {
        background-color: transparent !important;
    }
    &#camButton {
        background-color: rgba(231, 76, 60, 0.15);
        border: 2px solid rgba(170, 32, 32, 0.5);
    }
}

.rec-button.recording {
    color: #b91d1d;
    animation: pulse 1.5s infinite;
    &#micButton {
        background-color: transparent !important;
    }
    &#camButton {
        background-color: rgba(231, 76, 60, 0.15);
        border: 2px solid rgba(170, 32, 32, 0.5);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.recording-timer {
    font-size: 14px;
    color: #ddd;
    text-align: center;
}

.audio-preview {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.trash-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #ddd;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s;
    border-radius: 25px;
}

.trash-button:hover {
    color: #b91d1d;
    background-color: transparent !important;
}

.recording-waveform-canvas {
    width: 75%;
    height: 60px;
    margin-top: 10px;
    border-radius: 4px;

    -webkit-mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%, 
        rgba(0, 0, 0, 1) 95%,  
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 5%,
        rgba(0, 0, 0, 1) 95%,
        rgba(0, 0, 0, 0) 100%
    );
}

.entry button {
    background-color: #b91d1d;
    border-radius: 25px;
    flex: 1;
}

.entry button:hover {
    background-color: #b91d1d;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hidden-by-interaction {
    display: none;
}

/* Camera Preview Lightbox Styles */
#cameraPreviewLightbox.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

#cameraPreviewLightbox.lightbox.hidden {
    display: none !important;
}

#cameraPreviewLightbox .lightbox-content {
    background-color: rgb(155, 155, 155, 0.5);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cameraPreviewLightbox #cameraPreviewImage {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 30px);
    object-fit: contain;
    border-radius: 4px;
}

#cameraPreviewLightbox .close-lightbox-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    z-index: 10;
}

#cameraPreviewLightbox .delete-preview-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

#cameraPreviewLightbox .delete-preview-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

/* Drawing Canvas Overlay Styles */
.drawing-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drawing-canvas-overlay.hidden {
    display: none;
}

.drawing-controls {
    position: absolute;
    bottom: 4%;
    left: 50%; 
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.drawing-controls-header {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    gap: 5px;
}

.canvas-control-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    padding: 10px 10px;
    font-size: 16px;
    width: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.canvas-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Eraser Size Options */
.eraser-size-options {
    position: absolute;
    bottom: 12.5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 2515;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.eraser-size-options.hidden {
    display: none;
}

.eraser-size-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eraser-size-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.eraser-size-btn.active {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.canvas-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 15px;
}

.canvas-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
}

#gridCanvas {
    z-index: 1;
    pointer-events: none;
}

#drawingCanvas {
    z-index: 2;
}

#previewCanvas {
    z-index: 3;
}

#drawingCanvas {
    touch-action: none;
    height: 100%;
    width: 100%;
}

#previewCanvas {
    position: absolute;
    top: 0;
    left: 0;
    touch-action: none;
    border-radius: 15px;
    pointer-events: auto;
}

.grid-options-panel {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 380px;
    background-color: rgba(50, 50, 50, 0.7);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
    z-index: 2505;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.grid-options-panel.hidden {
    display: none;
}

.grid-panel-button {
    width: auto;
    flex: 1;
    padding: 10px 5px; 
    font-size: 14px;
}

.grid-weight-sub-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 7.5%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background-color: rgba(45, 45, 45, 0.85);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1070;
}

.grid-weight-sub-panel.hidden {
    display: none;
}

.line-width-slider-container {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 250px;
    background-color: rgba(50, 50, 50, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2510;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.line-width-slider-container.hidden {
    display: none;
}

#lineWidthSlider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
}

#lineWidthSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #50C878;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

#lineWidthSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #50C878;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

#lineWidthValueDisplay {
    color: white;
    font-size: 14px;
    min-width: 35px;
    text-align: right;
    font-family: Arial, sans-serif;
}

/* Color Picker Styles */
.color-picker-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 225px;
    background-color: rgba(50, 50, 50, 0.5);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2515;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: white;
    font-family: Arial, sans-serif;
}

.color-picker-container.hidden {
    display: none;
}

.hsv-picker-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.saturation-value-square {
    width: 150px;
    height: 150px;
    position: relative;
    cursor: crosshair;
    border: 1px solid #555;
    border-radius: 4px;
    background-image: linear-gradient(to top, rgba(0,0,0,1), transparent),
                      linear-gradient(to right, rgba(255,255,255,1), transparent);
}

.sv-picker-indicator {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 0 0 1.5px black, inset 0 0 0 1.5px black;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hue-slider-container {
    height: 140px;
    display: flex;
    align-items: center;
    background: linear-gradient(to top, 
    hsl(0, 100%, 50%),
    hsl(60, 100%, 50%), 
    hsl(120, 100%, 50%), 
    hsl(180, 100%, 50%), 
    hsl(240, 100%, 50%), 
    hsl(300, 100%, 50%), 
    hsl(3600, 100%, 50%)); 
    border-radius: 6px;
    border: 2px solid white;
}

.hue-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 140px;
    outline: none;
    border-radius: 5px;
    border: 1px solid #555;
    cursor: pointer;
    writing-mode: vertical-lr;
    direction: rtl;
}

.hue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 10px;
    background: #fff;
    border: 1px solid #555;
    border-radius: 3px;
    cursor: pointer;
}

.alpha-slider-container {
    height: 140px;
    display: flex;
    align-items: center;
    position: relative;
}

.alpha-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 140px;
    margin-left: 2px;
    background: transparent;
    outline: none;
    border-radius: 5px;
    border: 1px solid #555;
    cursor: pointer;
    writing-mode: vertical-lr;
    direction: rtl;
    position: relative; 
    z-index: 2;
}

.alpha-slider-container::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 140px;
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    border-radius: 6px;
    border: 2px solid white;
    z-index: 1;
}

.alpha-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 10px;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.alpha-slider::-moz-range-thumb { 
    width: 24px;
    height: 10px;
    background: #fff;
    border: 1px solid #555;
    border-radius: 3px;
    cursor: pointer;
}

.color-picker-display {
    width: 100%;
    height: 30px;
    border: 2px solid white;
    border-radius: 4px;
    background-color: #000000;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    margin-top: 5px;
}

.canvas-control-btn.active-tool {
    background-color: rgba(80, 200, 120, 0.5);
    border-color: rgba(80, 200, 120, 0.8);
}

.control-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.4);
    align-self: center;
}

/* Upcoming Events (Calendar Options) */
.dialog-upcoming-events-list {
    margin-bottom: 10px;
}

.dialog-upcoming-events-list .dialog-event-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #c2d9ff;
    text-decoration: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dialog-upcoming-events-list .dialog-event-link .dialog-event-title-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.dialog-upcoming-events-list .dialog-event-link .dialog-event-time {
    font-size: 0.85em;
    color: #aebfcf;
    flex-shrink: 0;
    white-space: nowrap;
}

.dialog-upcoming-events-list .dialog-event-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e6f0ff;
}

.dialog-upcoming-events-list .dialog-no-events-msg {
    font-size: 0.85em;
    color: #aaa;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

.dialog-upcoming-events-list .dialog-events-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dialog-upcoming-events-list .dialog-event-item {
    font-size: 0.9em;
    color: #ddd;
    padding: 4px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer Thumbnail */
.footer-camera-area {
    display: flex;
    justify-content: center;
    align-items: center;
    img {
        width: 27px;
        filter: grayscale(0.9);
    }
}

.footer-thumbnail {
    width: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.footer-thumbnail.hidden {
    display: none;
}

#camButton {
    display: flex;
    align-items: center;
    justify-content: center;
}