/* General body and font styling */
body { font-family: 'Inter', sans-serif; }

/* Styling for the clickable area of a task item */
.task-item-clickable-area:hover {
    cursor: pointer;
}

/* Show task actions (edit, delete buttons) on hover */
.task-item:hover .task-actions { opacity: 1; }

/* Styling for task action buttons container */
.task-actions {
    opacity: 0; /* Hidden by default, shown on hover */
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

/* Styling for individual task action buttons (edit, delete) */
.task-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem; /* text-sm */
}

/* Styling for completed task text (line-through) */
.completed-text { text-decoration: line-through; }

/* Styling for the message box (notifications) */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem; /* py-4 px-6 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* shadow-md */
    z-index: 200; /* Ensure it's above other content */
    display: none; /* Hidden by default */
}

/* Styling for the sticky sidebar */
.sticky-sidebar {
    position: sticky;
    top: 2.5rem; /* top-10 */
    align-self: flex-start; /* Keep sidebar at the top when scrolling */
    max-height: calc(100vh - 5rem); /* Prevent sidebar from being too tall */
    transition: width 0.3s ease-in-out, padding 0.3s ease-in-out; /* Smooth transition for minimization */
}

/* Styling for priority and label badges */
.priority-badge, .label-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem; /* Adjusted for smaller look */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* semibold */
    border-radius: 0.375rem; /* rounded-md */
    text-transform: capitalize;
}

/* Specific styling for label badges */
.label-badge {
    background-color: #e0e7ff; /* indigo-100 */
    color: #4338ca; /* indigo-700 */
}
.dark .label-badge {
    background-color: #4f46e5; /* indigo-600 */
    color: #e0e7ff; /* indigo-100 */
}

/* Ensure consistent height for smart view and sort buttons */
.smart-view-btn, .sort-btn { min-height: 42px; }

/* Styling for headings within the view details modal */
.view-details-heading {
    font-weight: 600; /* semibold */
    font-size: 0.95rem; /* Slightly larger than default text-sm */
    color: #374151; /* gray-700 */
}
.dark .view-details-heading { color: #d1d5db; /* gray-300 */ }

/* Styles for when the sidebar is minimized */
.sidebar-minimized { /* This class is added to the taskSidebar element */
    width: 5rem !important; /* Example minimized width: 80px or w-20 in Tailwind. Adjust as needed! */
    padding: 0.75rem !important;  /* Example minimized padding: p-3 in Tailwind. Adjust as needed! */
}

.sidebar-minimized .sidebar-button-icon-only {
    justify-content: center;
}
.sidebar-minimized .sidebar-button-icon-only i {
    margin-right: 0 !important;
}
.sidebar-minimized .sidebar-text-content,
.sidebar-minimized #taskSearchInputContainer,
.sidebar-minimized .sidebar-section-title {
    display: none;
}

/* Styling for active sort buttons */
.sort-btn-active {
    background-color: #0ea5e9 !important; /* sky-500 */
    color: white !important;
}
.dark .sort-btn-active { background-color: #0284c7 !important; /* sky-600 */ }

/* Styling for buttons within the settings modal and feature flag items */
.settings-modal-button, .feature-flag-item button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem; /* py-3 px-4 */
    text-align: left;
    font-weight: 500; /* medium */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.2s ease-in-out;
}
.settings-modal-button i {
    margin-right: 0.75rem; /* mr-3 */
    width: 1.25rem; /* w-5 */
    text-align: center;
}
.settings-modal-button.disabled-feature-button {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e5e7eb; /* gray-200 */
    color: #6b7280; /* gray-500 */
}
.dark .settings-modal-button.disabled-feature-button {
    background-color: #4b5563; /* gray-600 */
    color: #9ca3af; /* gray-400 */
}


/* Styling for feature flag items */
.feature-flag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem; /* py-3 px-2 */
    border-radius: 0.5rem; /* rounded-lg */
}
.feature-flag-item:hover {
    background-color: #f3f4f6; /* gray-100 */
}
.dark .feature-flag-item:hover {
    background-color: #374151; /* gray-700 */
}
.feature-flag-label {
    font-weight: 500; /* medium */
    color: #374151; /* gray-700 */
}
.dark .feature-flag-label {
    color: #d1d5db; /* gray-300 */
}

/* UI elements related to features (can be hidden by feature flag) */
.reminder-feature-element,
.advanced-recurrence-element,
.file-attachments-element,
.sub-tasks-feature-element,
.project-feature-element,
.export-data-feature-element,
.task-dependencies-feature-element,
.bulk-actions-feature-element,
.data-versioning-feature-element,
.desktop-notifications-feature-element
{ display: block; } /* Default, JS hides if feature off */


/* Toggle Switch Styles */
.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-checkbox + .toggle-label {
    display: block;
    position: relative;
    width: 2.5rem; /* w-10 */
    height: 1.5rem; /* h-6 */
    background-color: #d1d5db; /* gray-300 */
    border-radius: 9999px; /* rounded-full */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.dark .toggle-checkbox + .toggle-label {
    background-color: #4b5563; /* gray-600 */
}
.toggle-checkbox + .toggle-label::after { /* The sliding circle */
    content: '';
    position: absolute;
    top: 0.125rem; /* top-0.5 */
    left: 0.125rem; /* left-0.5 */
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    background-color: white;
    border-radius: 9999px; /* rounded-full */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    transition: transform 0.2s ease-in-out;
}
.dark .toggle-checkbox + .toggle-label::after {
    background-color: #e5e7eb; /* gray-200 */
    border-color: #374151; /* gray-700 */
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #0ea5e9 !important; /* sky-500 */
}
.dark .toggle-checkbox:checked + .toggle-label {
    background-color: #0284c7 !important; /* sky-600 */
}
.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(1rem); /* Moves the circle to the right */
    background-color: white !important;
}
.dark .toggle-checkbox:checked + .toggle-label::after {
    background-color: white !important;
}

/* Placeholder for file input */
.file-input-placeholder {
    border: 2px dashed #cbd5e1; /* border-slate-300 */
    padding: 1rem;
    text-align: center;
    border-radius: 0.375rem; /* rounded-md */
    color: #64748b; /* slate-500 */
}
.dark .file-input-placeholder {
    border-color: #475569; /* slate-600 */
    color: #94a3b8; /* slate-400 */
}
.input-example-text {
    font-size: 0.75rem; /* text-xs */
    color: #64748b; /* slate-500 */
    margin-left: 0.25rem; /* ml-1 */
}
.dark .input-example-text {
    color: #94a3b8; /* slate-400 */
}

/* ===== TASK APP Sidebar Minimization ===== */
#taskSidebar .sidebar-button-icon-only {
    justify-content: center !important;
}

/* ===== NOTES APP Feature Styles ===== */

/* --- Collapsible Sidebars (Shrink, Don't Disappear) --- */
.notes-sidebar-collapsed {
    width: 4rem !important; /* w-16 */
    padding-left: 0.5rem !important; /* px-2 */
    padding-right: 0.5rem !important;
    overflow: hidden; /* NEW: Prevent text from overflowing */
}

.notes-sidebar-collapsed .sidebar-text-content {
    display: none;
}
/* Center buttons when sidebar is collapsed */
.notes-sidebar-collapsed #newNotebookBtn,
.notes-sidebar-collapsed #newNoteBtn {
    justify-content: center;
}
.notes-sidebar-collapsed #newNotebookBtn i,
.notes-sidebar-collapsed #newNoteBtn i {
    margin-right: 0;
}
.notes-sidebar-collapsed .notebook-item-content {
    justify-content: center;
}
.notes-sidebar-collapsed .notebook-item-content span {
    display: none;
}

/* NEW: Fix for note list items and empty message when sidebar is collapsed */
.notes-sidebar-collapsed .note-list-item-content {
    justify-content: center; /* Center the icon */
}
.notes-sidebar-collapsed .note-list-item-text,
.notes-sidebar-collapsed #notesList > .text-center { /* Hides empty/error messages */
    display: none;
}


/* --- General Sidebar Styles --- */
.sidebar-toggle-rotated {
    transform: rotate(180deg);
}

/* --- Resizable Split View --- */
#markdownEditorContainer:not(:has(#markdownEditorArea.w-1\/2)) #markdownResizer {
    display: none;
}

#markdownResizer {
    flex-shrink: 0;
    width: 0.5rem;
    cursor: col-resize;
    background-color: #374151;
    transition: background-color 0.2s ease-in-out;
}

#markdownResizer:hover,
#markdownResizer.is-resizing {
    background-color: #0ea5e9;
}

/* --- Text Wrapping Fix --- */
#noteContentTextarea,
#markdownEditorArea,
#markdownPreviewArea,
#markdownPreviewArea pre,
#markdownPreviewArea code {
    white-space: pre-wrap !important;
    overflow-wrap: break-word !important;
}

/* Prevent text selection while resizing */
body.is-resizing-notes * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ===== DEFINITIVE FIX FOR BLACK TEXT IN DARK MODE INPUTS ===== */
/* This rule forces the text color of native date/time inputs to be white in dark mode. */
.dark input[type="time"],
.dark input[type="date"] {
    color: white !important;
}

/* ===== STYLES FOR CUSTOM ICON DROPDOWN ===== */
#customIconDropdownPanel {
    max-height: 200px;
    overflow-y: auto;
    background-color: #1f2937; /* gray-800 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.375rem; /* rounded-md */
    margin-top: 0.25rem; /* mt-1 */
}

.custom-icon-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem; /* py-2 px-3 */
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.custom-icon-option:hover {
    background-color: #374151; /* gray-700 */
}

.custom-icon-option i {
    width: 1.5rem; /* w-6 */
    margin-right: 0.75rem; /* mr-3 */
    text-align: center;
}




/* ============================================= */
/* ===== HABIT TRACKER STYLES (NEW DESIGN) ===== */
/* ============================================= */

/* --- Main Container & Header --- */
.habit-tracker-container {
    max-width: 1024px; /* Sets a maximum width for the content */
    margin-left: auto;  /* These two lines center the container */
    margin-right: auto;
    padding: 1rem 2rem; /* Keeps the padding around the app */
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151; /* gray-700 for dark mode */
}

.dark .habit-header {
    border-bottom-color: #4b5563; /* gray-600 */
}

.header-title h1 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    margin: 0;
}

.header-subtitle {
    font-size: 1.125rem; /* text-lg */
    color: #9ca3af; /* gray-400 */
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.button-icon {
    background-color: #374151; /* gray-700 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.5rem 0.75rem;
    color: #d1d5db; /* gray-300 */
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-icon:hover {
    background-color: #4b5563; /* gray-600 */
}

/* --- Habit Cards Container --- */
#habit-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between cards */
}

/* --- Individual Habit Card --- */
.habit-card {
    background-color: #1f2937; /* gray-800 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.dark .habit-card {
    background-color: #1f2937;
    border-color: #374151;
}

.habit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.habit-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.habit-title-section .habit-icon {
    font-size: 1.25rem; /* text-xl */
    color: #0ea5e9; /* sky-500 */
}

.habit-title-section .habit-name {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
}

.habit-title-section .habit-target {
    font-size: 0.875rem; /* text-sm */
    color: #9ca3af; /* gray-400 */
}

.habit-percentage {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #d1d5db; /* gray-300 */
}

/* --- Commit Grid --- */
.commit-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr); /* 52 weeks */
    grid-template-rows: repeat(7, 1fr); /* 7 days */
    grid-auto-flow: column; /* Fill columns first */
    gap: 3px;
    width: 100%;
    aspect-ratio: 52 / 7; /* Maintain aspect ratio */
}

.commit-square {
    width: 100%;
    height: 100%;
    background-color: #374151; /* Default empty color (gray-700) */
    border-radius: 2px;
    transition: background-color 0.2s;
    cursor: pointer; /* Make it obvious it's clickable */
}

/* --- MODIFICATION START: New Completion Levels --- */
.commit-square.level-0 { background-color: #374151; } /* gray-700 */
.commit-square.level-1 { background-color: #0c4a6e; } /* sky-900 */
.commit-square.level-2 { background-color: #075985; } /* sky-800 */
.commit-square.level-3 { background-color: #0369a1; } /* sky-700 */
.commit-square.level-4 { background-color: #0284c7; } /* sky-600 */
.commit-square.level-5 { background-color: #0ea5e9; } /* sky-500 - Fully Complete */
/* --- MODIFICATION END --- */

/* Style for the "today" square */
.commit-square.today {
    border: 1px solid #f59e0b; /* amber-500 */
}



/* ===== MODAL STYLES (for Habit Tracker & others) ===== */
.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1f2937; /* gray-800 */
    margin: auto;
    padding: 2rem;
    border: 1px solid #4b5563; /* gray-600 */
    width: 90%;
    max-width: 500px;
    border-radius: 0.75rem; /* rounded-xl */
    position: relative;
    color: #d1d5db; /* gray-300 */
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles inside Modal */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"], /* MODIFICATION: Style for number input */
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #374151; /* gray-700 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.375rem; /* rounded-md */
    color: white;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-primary {
    background-color: #4f46e5; /* indigo-600 */
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
}
.button-danger {
    background-color: #dc2626; /* red-600 */
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
}


/* --- Edit Button on Habit Card --- */
.habit-card .habit-edit-btn {
    position: absolute;
    top: 0.75rem; /* 12px */
    right: 0.75rem; /* 12px */
    background-color: #374151; /* gray-700 */
    color: #9ca3af; /* gray-400 */
    border: none;
    border-radius: 9999px; /* rounded-full */
    width: 2rem;  /* w-8 */
    height: 2rem; /* h-8 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Show button on card hover */
.habit-card:hover .habit-edit-btn {
    opacity: 1;
}

.habit-card .habit-edit-btn:hover {
    background-color: #4b5563; /* gray-600 */
    color: white;
}


/* ======================================= */
/* ===== POMODORO TIMER STYLES (NEW) ===== */
/* ======================================= */

/* --- Session Tabs --- */
.pomodoro-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 600;
    color: #9ca3af; /* gray-400 */
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.pomodoro-tab:hover {
    color: white;
}

.pomodoro-tab.active {
    background-color: #4f46e5; /* indigo-600 */
    color: white;
}

/* --- Start Button --- */
.button-start {
    background-color: white;
    color: #111827; /* gray-900 */
    font-weight: 700;
    font-size: 1.125rem; /* text-lg */
    padding: 0.75rem 3rem;
    border-radius: 0.5rem; /* rounded-lg */
    border: none;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    letter-spacing: 0.1em; /* Add some letter spacing */
}

.button-start:hover {
    background-color: #f3f4f6; /* gray-100 */
}

.button-start:active {
    transform: scale(0.98);
}

/* --- Secondary Icon Button (for reset) --- */
.button-icon-secondary {
    background-color: #374151; /* gray-700 */
    color: #9ca3af; /* gray-400 */
    border-radius: 0.5rem; /* rounded-lg */
    width: 3.25rem; /* A bit larger than the header icon buttons */
    height: 3.25rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.button-icon-secondary:hover {
    background-color: #4b5563; /* gray-600 */
    color: white;
}


/* --- Pomodoro Settings Modal --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates a 2-column grid */
    gap: 1rem;
}

.settings-input {
    width: 100%;
    padding: 0.75rem;
    background-color: #374151; /* gray-700 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.375rem; /* rounded-md */
    color: white;
    font-size: 1rem;
}

/* Find these existing rules and replace them */

.settings-input::-webkit-outer-spin-button,
.settings-input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* For older browsers */
    appearance: none;         /* Standard property for modern browsers */
    margin: 0;
}

.settings-input[type=number] {
    -moz-appearance: textfield; /* For Firefox */
    appearance: textfield;      /* Standard property for modern browsers */
}

/* ===== NEW STYLES FOR CALENDAR ===== */
.today-marker .calendar-day-number {
    background-color: #0ea5e9; /* sky-500 */
    color: white;
    border-radius: 9999px; /* rounded-full */
    width: 1.75rem; /* w-7 */
    height: 1.75rem; /* h-7 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.holiday-pill {
    font-size: 0.75rem; /* text-xs */
    padding: 0.25rem;
    border-radius: 0.25rem;
    background-color: #166534; /* green-800 */
    color: #dcfce7; /* green-100 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

/* ===== NEW STYLES FOR NOTES APP RICH TEXT EDITOR ===== */
.rich-text-btn {
    background-color: #4b5563; /* gray-600 */
    color: #d1d5db; /* gray-300 */
    border: none;
    border-radius: 0.375rem; /* rounded-md */
    width: 2.25rem; /* w-9 */
    height: 2.25rem; /* h-9 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.rich-text-btn:hover {
    background-color: #6b7280; /* gray-500 */
}
.rich-text-btn.active {
    background-color: #0ea5e9; /* sky-500 */
    color: white;
}
#noteContentEditable:focus {
    outline: none;
}

#noteContentEditable b, #noteContentEditable strong {
    font-weight: 900; /* Make bold text much bolder */
}

#noteContentEditable ul, #noteContentEditable ol {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
}
#noteContentEditable ol {
    list-style-type: decimal;
}

.color-palette {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #374151; /* gray-700 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.color-swatch {
    width: 1.5rem; /* w-6 */
    height: 1.5rem; /* h-6 */
    border-radius: 9999px; /* rounded-full */
    cursor: pointer;
    border: 2px solid #4b5563; /* gray-600 */
}
.color-swatch:hover {
    border-color: #9ca3af; /* gray-400 */
}
.color-swatch.no-color {
    background-image: linear-gradient(to top right, transparent 48%, red 48%, red 52%, transparent 52%);
    background-color: white;
}

#noteContentEditable .note-color-red { color: #ef4444; }
#noteContentEditable .note-color-yellow { color: #f59e0b; }
#noteContentEditable .note-color-green { color: #10b981; }
#noteContentEditable .note-color-blue { color: #3b82f6; }

/* ===== NEW STYLES FOR NOTE PINNING AND COLOR BORDERS ===== */
.note-pin-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem; /* Moved to the right */
    color: #6b7280; /* gray-500 */
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: all 0.2s ease-in-out;
}
.note-item:hover .note-pin-btn,
.note-pin-btn.pinned {
    opacity: 1;
}
.note-pin-btn.pinned {
    color: #ef4444; /* red-500 */
    transform: rotate(0deg); /* Keep it straight */
}

.note-item.note-color-border-red { border-left-color: #ef4444; }
.note-item.note-color-border-yellow { border-left-color: #f59e0b; }
.note-item.note-color-border-green { border-left-color: #10b981; }
.note-item.note-color-border-blue { border-left-color: #3b82f6; }


/* ===== NEW STYLES FOR TIME TRACKER REDESIGN ===== */
/* Custom scrollbar for a cleaner look in dark mode */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a7588;
}

/* ===== NEW BIRTHDAY STYLE FOR CALENDAR MODAL ===== */
.birthday-background {
    background-image: url('./images/birthday-bg.avif');
    background-size: cover; /* This makes the image cover the entire modal */
    background-position: center; /* This centers the image in the modal */
    background-repeat: no-repeat; /* This prevents the image from tiling */
}

/* Adds a semi-transparent overlay so text is easier to read */
.birthday-background > * {
    background-color: rgba(40, 40, 70, 0.7); /* Slightly darker for better readability */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1.5rem; /* Match the modal's padding */
    margin: -1.5rem; /* Match the modal's padding */
}

/* ===== NEW STYLE FOR PAST CALENDAR EVENTS ===== */
.past-event {
    opacity: 0.5;
    filter: grayscale(50%); /* Makes the color a bit duller */
}

/* ===== NEW STYLES FOR CALENDAR "MORE" LINK ===== */
.calendar-more-link {
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* semibold */
    color: #94a3b8; /* slate-400 */
    padding: 0.125rem 0.25rem; /* py-0.5 px-1 */
    margin-top: 0.25rem; /* mt-1 */
    border-radius: 0.25rem; /* rounded-sm */
    transition: background-color 0.2s, color 0.2s;
}

.calendar-more-link:hover {
    background-color: #334155; /* slate-700 */
    color: #e2e8f0; /* slate-200 */
}