/*
 * Theme Name: Daily Reflection
 * Description: A mobile-first daily reflection and goal tracking app
 * Version: 1.2.5
 * Author: TickPulse
*/

/* Reset and Base Styles */

/* CSS Variables for Theme System */
:root {
    --bg-primary: #1a181e;           /* dark charcoal */
    --bg-secondary: #232234;         /* deep indigo */
    --bg-tertiary: #2a2a3a;          /* very dark navy */
	--bg-textarea: #21202d;
    --bg-toast-error: #dc3545;       
    --bg-toast-warning: #ffc107;       
    --bg-toast-info: #17a2b8;       
	--bg-app-header: #1c1b2a;
	--text-main: #fff;       
    --text-primary: #f0f0f5;         /* off-white with slight blue tint */
    --text-secondary: #a3a8c2;       /* soft periwinkle-grey */
    --text-tertiary: #ffd700;        /* gold */
	--text-muted-primary: #c1c8e4;   /* muted periwinkle-blue */
	--text-muted-secondary: #d3d9f0; /* lighter muted lavender-blue */
	--text-muted-tertiary: #9696a4;	 /* light text */
	--text-highlight: #bdc1d7;
	--text-day-number: #7d81b4;
	--text-toast: #212529; 
    --accent-primary: #c1c8e4;       /* muted periwinkle-blue */
    --accent-secondary: #353356;     /* lighter muted violet */
    --accent-tertiary: #3b3f58;      /* deep muted slate blue */
    --accent-quaternary: #7a7f9c;    /* muted slate blue */
    --accent-quinary: #1b1b27;
	--accent-highlight: #373b5a;
    --accent-senary: #000;
    --border-color: #373855;         /* slate blue */
	--border-secondary: #15111b;
    --shadow-color: rgba(0,0,0,0.3);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #eee;				 
    --bg-secondary: #f8f9fa;         /* very light blue-grey */
    --bg-tertiary: #c1c8e4;          /* soft periwinkle blue */
	--bg-textarea: #b8c0df;
	--bg-app-header: #f8f9fa;
	--text-main: #999;       
    --text-primary: #1a1a1a;         /* very dark slate */
    --text-secondary: #5a5f72;       /* muted blue-grey */
    --text-tertiary: #2a2a3f;		 /* dark muted navy blue */
	--text-muted-primary: #3b3f58;   /* deep muted slate blue */
	--text-muted-secondary: #717891; /* muted steel blue */
    --accent-primary: #007bff;       /* bootstrap blue */
    --accent-secondary: #0056b3;     /* darker bootstrap blue */
    --accent-tertiary: #717891;   	 /* muted steel blue */
    --accent-quaternary: #888ea8; 	 /* muted lavender-grey */
    --accent-quinary: #ececec;
    --accent-senary: #eee;
    --border-color: #dee2e6;         /* light grey-blue */
	--border-secondary: #ececec;
    --shadow-color: rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
	text-decoration: none;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    background: var(--bg-app-header);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    min-height: 60px;
}

.header-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-title .month-nav-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title .month-nav-btn:hover {
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.header-nav {
    display: flex;
    gap: 16px;
}

.header-nav button {
    background: none;
    border: none;
    color: var(--text-muted-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    min-width: 40px;
    min-height: 40px;
}

.header-nav button:hover {
    /* background-color: rgba(255,255,255,0.1); */
    background-color: var(--bg-tertiary);
}

/* Single Day Header Layout */
.single-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.single-day-header .header-nav:first-child {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-width: 60px;
}

.single-day-header .header-title {
    flex: 1;
    text-align: center;
    margin: 0 10px;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.single-day-header .header-nav:last-child {
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-header {
        padding: 8px 12px;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .header-nav button {
        padding: 6px;
        font-size: 16px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .header-title {
        font-size: 16px;
    }
    
    .single-day-header .header-nav:first-child {
        min-width: 50px;
    }
    
    .single-day-header .header-nav:last-child {
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 6px 8px;
    }
    
    .header-nav {
        gap: 4px;
    }
    
    .header-nav button {
        padding: 4px;
        font-size: 14px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .header-title {
        font-size: 14px;
        margin: 0 4px;
    }
    
    .single-day-header .header-nav:first-child {
        min-width: 40px;
    }
    
    .single-day-header .header-nav:last-child {
        min-width: 75px;
    }
}

/* Header Navigation Buttons */
.header-nav-btn {
    background: none !important;
    border: none !important;
    color: var(--text-main) !important;
    font-size: 18px !important;
    margin: 0 8px !important;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.header-nav-btn:hover {
    opacity: 0.7;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

/* Timeline Styles */
.timeline-container {
    background: var(--bg-primary);
}

/* Calendar Header - when expanded */
.calendar-header {
    background: var(--bg-primary);
    padding: 0;
}

.calendar-grid {
    display: none !important; /* Force hidden by default */
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--bg-app-header);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 280px;
    background: var(--bg-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.calendar-grid.show {
    display: block !important;
    max-height: 400px; /* Approximate height for 6 weeks */
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-collapse: collapse;
}

.calendar-day-header {
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    color: var(--accent-quaternary);
    background: var(--bg-primary);
    border-bottom: 1px solid #333;
}

.calendar-day-cell {
    padding: 12px 8px;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid #333;
    border-width: 0 1px 1px 0;
    cursor: pointer;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day-cell:hover {
    background: var(--bg-tertiary);
}

.calendar-day-cell.today {
    background: var(--accent-primary);
    color: white;
    margin: 2px;
}

.calendar-day-cell.other-month {
    color: var(--accent-quaternary);
}

/* Timeline Entries - Match exact layout from images */
.timeline-entries {
    background: var(--bg-primary);
}

.day-entry {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.day-entry:hover {
    background: var(--bg-tertiary);
}

.day-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 60px;
}

.day-name {
    font-size: 12px;
    color: var(--accent-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-number {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-day-number);
}

.entry-preview {
    flex: 1;
    color: var(--accent-quaternary);
    font-size: 16px;
}

.entry-preview.has-content {
    color: var(--text-main);
}

/* Calendar View - Match Image 2 */
.calendar-container {
    background: var(--bg-primary);
    padding: 0;
}

.calendar-months {
    background: var(--bg-primary);
}

.calendar-month {
    margin-bottom: 40px;
}

.calendar-month-title {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
    padding: 20px 0;
    background: var(--bg-primary);
}

.calendar-month-grid {
    background: var(--bg-primary);
}

/* Single Day View - Match Image 3 */
.single-day-container {
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Questions Container */
.questions-container {
    background: var(--bg-primary);
    padding-bottom: 120px;
}

.question-section {
    margin-bottom: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.question-header {
    background: var(--accent-secondary);
    padding: 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-secondary);
}

.question-textarea {
    width: 100%;
    background: var(--bg-primary);
    border: none;
    border-bottom: 1px solid #333;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    margin: 15px;
    padding: 20px;
    resize: none;
    min-height: 120px;
    outline: none;
}

.question-textarea::placeholder {
    color: var(--accent-quaternary);
    font-style: italic;
}

.question-textarea:focus {
    background: var(--bg-tertiary);
}

/* Ensure textareas are always interactive unless explicitly disabled */
.question-textarea:not([disabled]):not([readonly]) {
    pointer-events: auto !important;
    user-select: text !important;
    cursor: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.question-textarea[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

/* Bottom Status Bar - Match Image 3 */
.entry-status-bar {
    position: fixed;
    bottom: 83px;
    left: 0;
    right: 0;
    background: var(--accent-secondary);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted-tertiary);
    z-index: 98;
}

/* Bottom Action Bar - Match Image 3 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 12px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 97;
    border-top: 1px solid #333;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--accent-quaternary);
    text-decoration: none;
    font-size: 11px;
    cursor: pointer;
    padding: 8px;
}

.action-btn:hover {
    color: var(--text-highlight);
}

.action-icon {
    font-size: 20px;
}

/* Floating Add Button */
.floating-add {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
}

.floating-add:hover {
    background: var(--accent-secondary);
}

/* Login Page */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    text-align: center;
    background: var(--bg-primary);
}

.login-logo {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-main);
}

.get-started-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 200px;
}

.get-started-btn:hover {
    background: var(--accent-secondary);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 24px;
    overflow-y: auto;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.sidebar::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    list-style: none;
    margin-top: 48px;
}

.sidebar-menu a.active {
    background: var(--accent-highlight);
    color: var(--text-primary);
}

.sidebar-menu li {
    margin-bottom: 16px;
}

.sidebar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 16px;
    display: block;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.sidebar-menu a:hover {
    background: var(--accent-highlight);
    color: var(--text-main);
}

/* Sidebar Profile */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-profile-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-quaternary);
    font-size: 18px;
}

.sidebar-welcome h2 {
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
}

.sidebar-welcome p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted-primary);
}

/* Hide elements not in mockups */
.month-header {
    display: none;
}

.category-tabs {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .day-entry {
        padding: 14px 16px;
    }
    
    .question-header {
        padding: 16px;
        font-size: 15px;
    }
    
    .question-textarea {
        padding: 16px;
        min-height: 100px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 400;
}

.modal-content p {
    color: var(--text-muted-primary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid #444;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 16px;
}

.modal-content input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: var(--accent-quaternary);
    color: white;
}

.cancel-btn:hover {
    background: var(--accent-primary);
}

.danger-btn {
    background: #d32f2f;
    color: white;
}

.danger-btn:hover {
    background: #b71c1c;
}

.save-btn {
    background: var(--accent-tertiary);
    color: white;
}

.save-btn:hover {
    background: #45a049;
}

/* Export Modal Specific Styles */
.export-option {
    margin-bottom: 20px;
}

.export-option label {
    display: block;
    color: var(--text-muted-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.export-option select {
    width: 100%;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid #444;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 14px;
}

.export-option select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Rating Stars */
.rating-section {
    margin-bottom: 20px;
}

.rating-section label {
    display: block;
    color: var(--text-muted-primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 24px;
    color: var(--accent-primary);
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: var(--text-tertiary);
}

/* Settings Page Styles */
.settings-container {
    padding: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: calc(100vh - 60px);
    max-width: 600px;
    margin: 0 auto;
}

.settings-header {
    text-align: center;
    margin-bottom: 30px;
}

.settings-header h2 {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 8px;
}

.settings-header p {
    color: var(--accent-quaternary);
    font-size: 16px;
}

.success-message {
    background: #2d5a27;
    color: #4caf50;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-form {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.settings-section {
    padding: 24px;
    border-bottom: 1px solid #333;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 20px;
}

.setting-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    color: var(--text-muted-primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.setting-item select {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid #444;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 16px;
}
.setting-item select,
.setting-item input {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 2px solid #444;
    border-radius: 4px;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 4px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.export-btn {
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.export-btn:hover {
    background: var(--accent-secondary);
}

.setting-description {
    color: var(--accent-quaternary);
    font-size: 12px;
    margin-top: 8px;
}

.settings-actions {
    padding: 24px;
}

.settings-actions .save-btn {
    width: 100%;
    justify-content: center;
    display: flex;
}

/* Calendar Modal Styles */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.calendar-modal-content {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

#calendar-title {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 400;
    margin: 0;
}

.calendar-day-label {
    background: var(--bg-primary);
    color: var(--accent-quaternary);
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
}

.calendar-day {
    background: var(--bg-primary);
    color: var(--text-main);
    text-align: center;
    padding: 12px 4px;
    cursor: pointer;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
}

.calendar-day.today {
    background: var(--accent-primary);
    color: var(--text-main);
}

.calendar-day.other-month {
    color: var(--accent-quaternary);
}

.calendar-day.has-entry::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-tertiary);
    border-radius: 50%;
}

.close-calendar-btn {
    width: 100%;
    background: var(--accent-quaternary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-calendar-btn:hover {
    background: var(--accent-primary);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    min-width: 200px;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--text-main);
}

.dropdown-menu i {
    width: 16px;
    text-align: center;
}

/* Category Tabs Styles */
.category-tabs {
    background: var(--bg-secondary);
    border-bottom: 1px solid #333;
    padding: 0 20px;
}

.tab-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--accent-quaternary);
    padding: 16px 20px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Position dropdown relative to header */
.single-day-header {
    position: relative;
}

.single-day-header .header-nav {
    position: relative;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    min-width: 200px;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

/* Profile Page Styles */
.profile-container {
    padding: 20px;
    background: var(--bg-primary);
    min-height: calc(100vh - 60px);
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-header h2 {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 8px;
}

.profile-header p {
    color: var(--accent-quaternary);
    font-size: 16px;
}

.profile-form {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.profile-section {
    padding: 24px;
    border-bottom: 1px solid #333;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 20px;
}

.profile-picture-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-primary);
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder {
    color: var(--accent-quaternary);
    font-size: 24px;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.upload-btn:hover {
    background: var(--accent-secondary);
}

.profile-actions {
    padding: 24px;
}

.profile-actions .save-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Tags Page Styles */
.tags-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tags-header {
    text-align: center;
    margin-bottom: 30px;
}

.tags-header h2 {
    color: var(--text-main);
    font-size: 28px;
    margin-bottom: 8px;
}

.tags-header p {
    color: var(--accent-quaternary);
    font-size: 16px;
}

.no-tags {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.no-tags-icon {
    font-size: 64px;
    color: var(--accent-quaternary);
    margin-bottom: 20px;
}

.no-tags h3 {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 12px;
}

.no-tags p {
    color: var(--accent-quaternary);
    font-size: 16px;
    margin-bottom: 30px;
}

.add-tags-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s;
}

.add-tags-btn:hover {
    background: var(--accent-secondary);
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tag-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    transition: all 0.2s;
}

.tag-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.tag-name {
    color: var(--accent-primary);
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-name::before {
    content: "#";
    color: var(--accent-quaternary);
}

.tag-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-stats span {
    color: var(--accent-quaternary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-stats i {
    width: 14px;
    text-align: center;
}

.view-entries-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.view-entries-btn:hover {
    background: var(--accent-secondary);
}

.tags-summary {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--accent-quaternary);
    font-size: 14px;
}

/* Media Attachments Styles */
.media-attachments {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
}

.media-header h4 {
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 500;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.media-item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.media-item img.media-preview {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.media-item audio.media-preview {
    width: 100%;
    height: 32px;
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    text-align: center;
}

.file-preview i {
    font-size: 24px;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.file-preview span {
    font-size: 12px;
    color: var(--text-muted-primary);
    word-break: break-word;
}

.media-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.media-item:hover .media-actions {
    opacity: 1;
}

.delete-media {
    background: rgba(255, 0, 0, 0.8);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
}

.delete-media:hover {
    background: rgba(255, 0, 0, 1);
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-app-header);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: var(--bg-tertiary);
}

.toast-error {
    background: var(--bg-toast-error);
}

.toast-warning {
    background: var(--bg-toast-warning);
    color: var(--text-toast);
}

.toast-info {
    background: var(--bg-toast-info);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-content i {
    font-size: 16px;
}

/* Page Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-quaternary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary);
}

/* Pro Upgrade Button Styles */
.pro-upgrade-btn {
    background: linear-gradient(135deg, var(--text-tertiary), #FFA500) !important;
    color: var(--accent-senary) !important;
    border: none !important;
    padding: 8px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

.pro-upgrade-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00) !important;
    transform: scale(1.1) !important;
}

.upgrade-menu-item {
    background: linear-gradient(135deg, var(--text-tertiary), #FFA500) !important;
    color: var(--accent-senary) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
}

.upgrade-menu-item:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00) !important;
    transform: translateX(4px) !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--accent-tertiary);
}

.dropdown-menu a.danger-item {
    color: #ff6b6b;
}

.dropdown-menu a.danger-item:hover {
    background: rgba(255, 107, 107, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--accent-primary);
    margin: 8px 0;
}

/* Upgrade Page Styles */
.upgrade-container {
    background: var(--bg-primary);
    color: var(--text-main);
    padding: 0;
    max-width: 100%;
}

.upgrade-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.upgrade-icon {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.upgrade-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-tertiary), #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upgrade-subtitle {
    font-size: 18px;
    color: var(--text-muted-primary);
    max-width: 600px;
    margin: 0 auto;
}

.upgrade-features {
    padding: 40px 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted-primary);
    line-height: 1.6;
}

.upgrade-pricing {
    padding: 40px 20px;
    background: var(--bg-secondary);
    text-align: center;
}

.pricing-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    border: 2px solid var(--accent-primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--text-tertiary), var(--text-seconday));
    color: var(--accent-senary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 24px;
}

.currency {
    font-size: 24px;
    color: var(--text-muted-primary);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
}

.period {
    font-size: 18px;
    color: var(--text-muted-primary);
}

.pricing-features {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-muted-primary);
}

.pricing-features i {
    color: #28a745;
    font-size: 16px;
}

.upgrade-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.upgrade-btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), #2968a3);
    transform: translateY(-2px);
}

.trial-info {
    color: #888;
    font-size: 14px;
    margin-top: 12px;
}

.upgrade-testimonials {
    padding: 40px 20px;
}

.upgrade-testimonials h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text-main);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted-primary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--accent-primary);
    font-weight: 600;
}

.upgrade-faq {
    padding: 40px 20px;
    background: var(--bg-secondary);
}

.upgrade-faq h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text-main);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #444;
    margin-bottom: 16px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    padding: 16px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 16px 0;
    color: var(--text-muted-primary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .upgrade-hero h1 {
        font-size: 28px;
    }
    
    .upgrade-subtitle {
        font-size: 16px;
    }
}

/* Settings Toast Notification */
.settings-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.settings-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.settings-toast.toast-success {
    border-left: 4px solid #28a745;
}

.settings-toast.toast-error {
    border-left: 4px solid var(--bg-toast-error);
}

.settings-toast.toast-warning {
    border-left: 4px solid var(--bg-toast-warning);
}

.settings-toast.toast-info {
    border-left: 4px solid var(--bg-toast-info);
}

/* Refresh button functionality */
.refresh-btn {
    position: relative;
    overflow: hidden;
}

.refresh-btn.loading {
    pointer-events: none;
}

.refresh-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced button styles for settings */
.settings-actions {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.save-btn, .export-btn, .danger-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-btn {
    background: var(--accent-primary);
    color: white;
}

.save-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.export-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.export-btn:hover {
    background: var(--bg-secondary);
}

.danger-btn {
    background: var(--bg-toast-error);
    color: white;
}

.danger-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.upgrade-btn {
    background: linear-gradient(135deg, var(--text-tertiary), #FFA500) !important;
    color: var(--accent-senary) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00) !important;
    transform: translateY(-1px) !important;
}


/* Tags Display Styles */
.tags-display {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--border-primary);
}

.tags-header h4 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.tag-item {
    background: var(--bg-tag);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-secondary);
    display: inline-block;
}

.tag-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* Month Navigation Styles */
.month-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 60px;
    z-index: 10;
}

.month-nav-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-nav-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.month-nav-btn:active {
    transform: scale(0.95);
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    flex: 1;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .month-navigation {
        padding: 12px 16px;
    }
    
    .current-month {
        font-size: 16px;
    }
    
    .month-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* Month Navigation Styles */
.month-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 60px;
    z-index: 10;
}

.month-nav-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-nav-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.month-nav-btn:active {
    transform: scale(0.95);
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    flex: 1;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .month-navigation {
        padding: 12px 16px;
    }
    
    .current-month {
        font-size: 16px;
    }
    
    .month-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* Pro Theme Styles */
.pro-notice {
    background: var(--bg-warning);
    color: var(--text-warning);
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid var(--border-warning);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-notice i {
    color: #FFD700;
}

.pro-notice a {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
}

.pro-notice a:hover {
    color: var(--accent-secondary);
}

select option.pro-theme:disabled {
    color: #666;
    background: #f0f0f0;
}

select optgroup[label*="Pro"] {
    font-style: italic;
    color: #888;
}

/* Color Theme Preview */
.color-theme-preview {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid var(--border-secondary);
    vertical-align: middle;
}

.color-theme-preview.default { background: var(--accent-primary); }
.color-theme-preview.forest-green { background: #228B22; }
.color-theme-preview.sunset-orange { background: #FF8C00; }
.color-theme-preview.royal-purple { background: #663399; }  
.color-theme-preview.rose-gold { background: #E8B4B8; }
.color-theme-preview.cherry-pink { background: #DE3163; }
.color-theme-preview.forest-moss { background: #8FBC8F; }
.color-theme-preview.midnight-royal-burgundy { background: #722F37; }
.color-theme-preview.classic-red-gold { background: #B7410E; }
.color-theme-preview.bright-and-colorful { background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4); }
.color-theme-preview.amoled-black { background: #000000; }
.color-theme-preview.soft-beach { background: #87CEEB; }
.color-theme-preview.bright-power { background: #FF1493; }
.color-theme-preview.terracotta-teal { background: #E2725B; }
.color-theme-preview.intense-gbr { background: linear-gradient(45deg, #00FF00, #0000FF, #FF0000); }
.color-theme-preview.tan-purple-yellow { background: linear-gradient(45deg, #D2B48C, #800080, #FFFF00); }
.color-theme-preview.photographic-memory { background: linear-gradient(45deg, #2C3E50, #BDC3C7); }

/* Color Theme Variations */

/* Cherry Pink Theme */
body[data-color-theme="cherry-pink"] {
    --accent-primary: #DE3163;
    --accent-secondary: #C41E3A;
    --accent-tertiary: #8B0000;
    --text-tertiary: #FFB6C1;
    --border-color: #CD5C5C;
}

/* Forest Moss Theme */
body[data-color-theme="forest-moss"] {
    --accent-primary: #8FBC8F;
    --accent-secondary: #556B2F;
    --accent-tertiary: #228B22;
    --text-tertiary: #98FB98;
    --border-color: #6B8E23;
}

/* Midnight Royal Burgundy Theme */
body[data-color-theme="midnight-royal-burgundy"] {
    --accent-primary: #722F37;
    --accent-secondary: #4A0E4E;
    --accent-tertiary: #301934;
    --text-tertiary: #DA70D6;
    --border-color: #5D2E57;
}

/* Classic Red Gold Theme */
body[data-color-theme="classic-red-gold"] {
    --accent-primary: #B7410E;
    --accent-secondary: #FFD700;
    --accent-tertiary: #8B0000;
    --text-tertiary: #F4A460;
    --border-color: #CD853F;
}

/* Bright and Colorful Theme */
body[data-color-theme="bright-and-colorful"] {
    --accent-primary: #FF6B6B;
    --accent-secondary: #4ECDC4;
    --accent-tertiary: #45B7D1;
    --text-tertiary: #96CEB4;
    --border-color: #FF8E8E;
}

/* AMOLED Black Theme */
body[data-color-theme="amoled-black"] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --accent-primary: #FFFFFF;
    --accent-secondary: #888888;
    --accent-tertiary: #444444;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --border-color: #333333;
}

/* Soft Beach Theme */
body[data-color-theme="soft-beach"] {
    --accent-primary: #87CEEB;
    --accent-secondary: #F0F8FF;
    --accent-tertiary: #4682B4;
    --text-tertiary: #B0E0E6;
    --border-color: #ADD8E6;
}

/* Bright Power Theme */
body[data-color-theme="bright-power"] {
    --accent-primary: #FF1493;
    --accent-secondary: #FF69B4;
    --accent-tertiary: #DC143C;
    --text-tertiary: #FFB6C1;
    --border-color: #FF20B2;
}

/* Terracotta Teal Theme */
body[data-color-theme="terracotta-teal"] {
    --accent-primary: #E2725B;
    --accent-secondary: #008080;
    --accent-tertiary: #CD853F;
    --text-tertiary: #48D1CC;
    --border-color: #D2691E;
}

/* Intense GBR Theme */
body[data-color-theme="intense-gbr"] {
    --accent-primary: #00FF00;
    --accent-secondary: #0000FF;
    --accent-tertiary: #FF0000;
    --text-tertiary: #FFFF00;
    --border-color: #FF00FF;
}

/* Tan Purple Yellow Theme */
body[data-color-theme="tan-purple-yellow"] {
    --accent-primary: #D2B48C;
    --accent-secondary: #800080;
    --accent-tertiary: #FFFF00;
    --text-tertiary: #DDA0DD;
    --border-color: #BC8F8F;
}

/* Photographic Memory Theme */
body[data-color-theme="photographic-memory"] {
    --accent-primary: #2C3E50;
    --accent-secondary: #BDC3C7;
    --accent-tertiary: #34495E;
    --text-tertiary: #ECF0F1;
    --border-color: #7F8C8D;
}

/* Default theme overrides for other free themes */
body[data-color-theme="forest-green"] {
    --accent-primary: #228B22;
    --accent-secondary: #32CD32;
    --text-tertiary: #90EE90;
}

body[data-color-theme="sunset-orange"] {
    --accent-primary: #FF8C00;
    --accent-secondary: #FF4500;
    --text-tertiary: #FFD700;
}

body[data-color-theme="royal-purple"] {
    --accent-primary: #663399;
    --accent-secondary: #9932CC;
    --text-tertiary: #DDA0DD;
}

body[data-color-theme="rose-gold"] {
    --accent-primary: #E8B4B8;
    --accent-secondary: #CD919E;
    --text-tertiary: #F5DEB3;
}
