/* Daily Planner Styles - Orbites Dark Theme */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-image: url('../branding/login-background.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
}

/* ===== AUTH LOADING ===== */
.auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-loading.hidden {
    display: none;
}

.auth-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-loading-logo {
    width: 70px;
    height: 70px;
    animation: pulse 2s ease-in-out infinite;
}

.auth-loading-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* ===== TOP NAVIGATION ===== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.back-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: #4ecdc4;
    color: #1a1a2e;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

#userName {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== MAIN CONTAINER ===== */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 20px 40px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== TABS ===== */
.tabs-container {
    display: flex;
    background: rgba(37, 37, 66, 0.8);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: #00d9ff;
    color: #1a1a2e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== DATE NAVIGATION ===== */
.date-navigation {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.3);
    color: #fff;
}

.nav-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.calendar-btn {
    background: #00d9ff;
    color: #1a1a2e;
    border-color: #00d9ff;
    font-weight: 600;
}

.calendar-btn:hover {
    background: #00c4e6;
    border-color: #00c4e6;
    color: #1a1a2e;
}

.date-picker-container {
    flex: 1;
    text-align: center;
    position: relative;
}

.date-picker-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.date-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.date-display:hover {
    background: rgba(0, 217, 255, 0.1);
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.progress-icon {
    font-size: 24px;
}

.progress-label {
    font-weight: 600;
    color: #fff;
}

.progress-text {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

/* ===== CONGRATULATIONS MESSAGE ===== */
.congrats-message {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 217, 255, 0.2) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    animation: celebrateIn 0.5s ease-out;
}

.congrats-message.hidden {
    display: none;
}

@keyframes celebrateIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.congrats-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.congrats-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ff88;
    display: block;
}

.congrats-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== TASKS SECTION ===== */
.tasks-section,
.notes-section {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-emoji {
    font-size: 1.3rem;
}

/* ===== TASKS LIST ===== */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* ===== TASK ITEM ===== */
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.task-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.2);
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== COMPLETION BUTTON ===== */
.task-checkbox {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.task-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.task-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s;
}

.task-checkbox input:hover + .checkmark {
    border-color: #00d9ff;
}

.task-checkbox input:checked + .checkmark {
    background: #00ff88;
    border-color: #00ff88;
}

.task-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid #1a1a2e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-checkbox input:checked + .checkmark::after {
    display: block;
}

/* ===== ROCKET ANIMATION ===== */
.rocket-animation {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    animation: rocketLaunch 800ms ease-out forwards;
    z-index: 100;
}

@keyframes rocketLaunch {
    0% {
        transform: translateY(0) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) rotate(-45deg);
        opacity: 0;
    }
}

/* ===== TASK TEXT ===== */
.task-text {
    flex: 1;
    font-size: 0.95rem;
    color: #fff;
    word-break: break-word;
}

/* ===== TASK ACTIONS ===== */
.task-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.task-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.task-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.task-action-btn.delete:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
}

.task-action-btn.move:hover {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
}

/* ===== ADD TASK/NOTE CONTAINER ===== */
.add-task-container,
.add-note-container {
    display: flex;
    gap: 8px;
}

.add-task-input,
.add-note-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #fff;
    transition: all 0.2s;
}

.add-task-input::placeholder,
.add-note-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.add-task-input:focus,
.add-note-input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.05);
}

.add-task-btn,
.add-note-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: #00d9ff;
    color: #1a1a2e;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.add-task-btn:hover,
.add-note-btn:hover {
    background: #00c4e6;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ===== NOTES LIST ===== */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* ===== NOTE ITEM ===== */
.note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 255, 136, 0.08);
    border-radius: 8px;
    border-left: 3px solid #00ff88;
    transition: all 0.2s;
}

.note-item:hover {
    background: rgba(0, 255, 136, 0.12);
}

.note-text {
    flex: 1;
    font-size: 0.95rem;
    color: #fff;
    word-break: break-word;
    white-space: pre-wrap;
}

.note-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.note-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.note-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.note-action-btn.delete:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
}

/* ===== DATE RANGE SECTION ===== */
.date-range-section {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.date-range-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.date-range-inputs input {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.date-range-inputs input:focus {
    outline: none;
    border-color: #00d9ff;
}

.date-range-inputs span {
    color: rgba(255, 255, 255, 0.5);
}

.date-range-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.date-range-day {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.date-range-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.date-range-day-title {
    font-weight: 600;
    color: #00d9ff;
}

.date-range-day-stats {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.date-range-tasks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-range-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.9rem;
}

.date-range-task.completed {
    opacity: 0.6;
}

.date-range-task.completed .date-range-task-text {
    text-decoration: line-through;
}

.date-range-task-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.date-range-task.completed .date-range-task-check {
    background: #00ff88;
    border-color: #00ff88;
}

.date-range-task.completed .date-range-task-check::after {
    content: '✓';
    color: #1a1a2e;
    font-size: 10px;
    font-weight: bold;
}

.date-range-task-text {
    color: rgba(255, 255, 255, 0.9);
}

.date-range-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== STATISTICS TAB ===== */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-filters {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-filter-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stats-period-btns {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.stats-period-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.stats-period-btn:hover {
    color: #fff;
}

.stats-period-btn.active {
    background: #00d9ff;
    color: #1a1a2e;
}

.stats-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.stats-date-range input {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stats-card {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stats-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00d9ff;
    margin-bottom: 4px;
}

.stats-card-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.stats-card.success .stats-card-value {
    color: #00ff88;
}

.stats-card.warning .stats-card-value {
    color: #ffaa00;
}

.stats-chart-section {
    background: rgba(37, 37, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.stats-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 10px;
}

.stats-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stats-bar {
    width: 100%;
    max-width: 50px;
    background: linear-gradient(180deg, #00d9ff, #00ff88);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease-out;
    min-height: 4px;
}

.stats-bar-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.stats-bar-value {
    font-size: 0.8rem;
    color: #00d9ff;
    font-weight: 600;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(37, 37, 66, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.edit-task-input,
.edit-note-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #fff;
    resize: vertical;
}

.edit-task-input:focus,
.edit-note-input:focus {
    outline: none;
    border-color: #00d9ff;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #00d9ff;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #00c4e6;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #ff4d4d;
    color: #fff;
}

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

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .top-nav {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-brand {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .back-link {
        font-size: 0.9rem;
    }

    #userName {
        display: none;
    }

    .app-container {
        padding: 80px 12px 24px;
    }

    .date-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .nav-btn-text {
        display: none;
    }

    .nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .calendar-btn {
        flex: 1;
        justify-content: center;
    }

    .date-display {
        font-size: 1rem;
    }

    .task-actions,
    .note-actions {
        opacity: 1;
    }

    .tabs-container {
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-date-range {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* ===== FLATPICKR DARK THEME ===== */
.flatpickr-calendar {
    background: rgba(37, 37, 66, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.flatpickr-months {
    background: transparent !important;
}

.flatpickr-month {
    color: #fff !important;
}

.flatpickr-current-month {
    color: #fff !important;
}

.flatpickr-monthDropdown-months {
    background: rgba(37, 37, 66, 0.95) !important;
    color: #fff !important;
}

.flatpickr-weekdays {
    background: transparent !important;
}

.flatpickr-weekday {
    color: rgba(255, 255, 255, 0.5) !important;
}

.flatpickr-day {
    color: #fff !important;
    border-radius: 6px !important;
}

.flatpickr-day:hover {
    background: rgba(0, 217, 255, 0.2) !important;
    border-color: transparent !important;
}

.flatpickr-day.selected {
    background: #00d9ff !important;
    border-color: #00d9ff !important;
    color: #1a1a2e !important;
}

.flatpickr-day.today {
    border-color: #00d9ff !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255, 255, 255, 0.3) !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #fff !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: #00d9ff !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
