:root {
    --primary-color: #d2691e;
    --secondary-color: #cd853f;
    --accent-color: #daa520;
    --background-color: #f5f0e8;
    --container-bg: #faf7f2;
    --text-color: #3e2723;
    --shadow-color: rgba(210, 105, 30, 0.25);
}




#current-date-container {
    background: linear-gradient(135deg, #d2691e 0%, #cd853f 50%, #daa520 100%);
    border: 4px solid #8b4513;
}


/* Preserve default Quill toolbar appearance - DO NOT style */
/* .ql-toolbar styles are intentionally omitted to keep default look */




#current-date-container h3 {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

#current-date-container h3.has-entry {
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* Recorded Dates styling */
#recorded-dates-container {
    border-bottom: 2px solid #ddd;
}

#recorded-dates-container h3 {
    font-style: italic;
    font-weight: 400;
    color: #666;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    white-space: nowrap;
}

.history-item {
    border-bottom: 2px solid #eee;
    padding: 8px 0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Button styling */
.button {
    background: #FF7A47 !important;
    border-color: #FF7A47 !important;
}

.button:hover {
    background: #ff6333 !important;
    border-color: #ff6333 !important;
}

/* Sort toggle button */
#sort-toggle {
    position: absolute;
    top: 48px;
    right: -35px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    color: #FF7A47;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

#sort-toggle:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Scrollbar styling */
#recorded-dates-container {
    scrollbar-width: thin;
    scrollbar-color: #8b4513 #f5f5f5;
}

#recorded-dates-container::-webkit-scrollbar {
    width: 10px;
}

#recorded-dates-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

#recorded-dates-container::-webkit-scrollbar-thumb {
    background: #8b4513;
    border: 2px solid #6d3410;
    border-radius: 5px;
}

#recorded-dates-container::-webkit-scrollbar-thumb:hover {
    background: #a0522d;
    border-color: #8b4513;
}

/* Editor scrollbar styling */
#editor {
    scrollbar-width: thin;
    scrollbar-color: #8b4513 #f5f5f5;
}

#editor::-webkit-scrollbar {
    width: 10px;
}

#editor::-webkit-scrollbar-track {
    background: #f5f5f5;
}

#editor::-webkit-scrollbar-thumb {
    background: #8b4513;
    border: 2px solid #6d3410;
    border-radius: 5px;
}

#editor::-webkit-scrollbar-thumb:hover {
    background: #a0522d;
    border-color: #8b4513;
}

.ql-editor::-webkit-scrollbar {
    width: 10px;
}

.ql-editor::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.ql-editor::-webkit-scrollbar-thumb {
    background: #8b4513;
    border: 2px solid #6d3410;
    border-radius: 5px;
}

.ql-editor::-webkit-scrollbar-thumb:hover {
    background: #a0522d;
    border-color: #8b4513;
}

/* Duplicate entry warning */
#duplicate-warning {
    display: none;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

#duplicate-warning.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}