:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #64748b;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}


[data-theme="dark"] {
    --primary-color: #818cf8;
    --card-bg: #2d3748;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --light-bg: #111827;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-block;
    animation: logoFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
}

.ipl-letter {
    background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }
    50% {
        transform: scale(1.15) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* Aligns to right side to prevent overflow on mobile */
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dropdown-content.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Task Input */
.task-input-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-input,
.habit-input,
.search-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.task-input:focus,
.habit-input:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.priority-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: white;
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.full-width {
    width: 100%;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
}

/* Tasks Container */
.tasks-container {
    display: grid;
    gap: 1rem;
}

.task-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.task-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.task-card.completed {
    opacity: 0.7;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.task-card.completed .task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.task-priority.High {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.task-priority.Medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.task-priority.Low {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.task-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.task-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.task-btn:hover {
    transform: scale(1.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

/* Weekly Planner */
.weekly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.week-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#weekDisplay {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 200px;
    text-align: center;
}

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.day-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.day-header {
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.day-tasks {
    flex: 1;
    overflow-y: auto;
}

.day-task {
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all 0.2s ease;
}

.day-task:hover {
    box-shadow: var(--shadow);
}

.day-task.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Habits */
.habits-header {
    margin-bottom: 2rem;
}

.habit-input-section {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 1rem;
    margin-top: 1.5rem;
}

.habits-container {
    display: grid;
    gap: 1rem;
}

.habit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.habit-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.habit-streak {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #f59e0b;
    font-size: 1.2rem;
}

.habit-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.habit-day {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    background: var(--light-bg);
}

.habit-day:hover {
    transform: scale(1.1);
}

.habit-day.completed {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.habit-day.missed {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Pomodoro */
.pomodoro-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.timer-display {
    margin: 3rem 0;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 282.6;
    stroke-dashoffset: 282.6;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-text #timerDisplay {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    font-family: 'Courier New', monospace;
}

.timer-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.timer-controls .btn {
    min-width: 100px;
}

.timer-settings {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.timer-settings label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.timer-settings input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--light-bg);
    color: var(--text-primary);
}

.sessions-log {
    text-align: left;
    margin-top: 2rem;
}

.sessions-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.session-item {
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.empty-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
}

/* Analytics */
.analytics-container {
    width: 100%;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.chart-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.score-display {
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    color: white;
    font-weight: 700;
}

.score-circle span:first-child {
    font-size: 2.5rem;
}

.score-label {
    font-size: 1.2rem;
}

.score-description {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.time-display,
.habit-stats {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Settings */
.settings-container {
    max-width: 1000px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.settings-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.setting-item label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Color Picker */
#colorPicker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Storage Info */
.storage-info {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.storage-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.storage-info p:last-child {
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.close {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input[type="text"],
.modal-form textarea,
.modal-form select,
.modal-form input[type="date"] {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-form textarea {
    font-family: inherit;
    resize: vertical;
}

.tags-input input {
    width: 100%;
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons .btn-danger {
    grid-column: 2;
}

.modal-buttons .modal-close {
    grid-column: 1 / -1;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;

    }

    .main-content {
        padding: 1rem;
    }
    .nav-menu {
        display: flex;
        flex-direction: row; /* Ensure items are in a row */
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
      width: 100%;
        justify-content: space-around;
    }

    .weekly-grid {
        grid-template-columns: 1fr;
    }

    .timer-circle {
        width: 200px;
        height: 200px;
    }

    .timer-text #timerDisplay {
        font-size: 2rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    .notification-container {
        right: 10px;
        left: 10px;
    }

    .notification {
        min-width: auto;
    }

    .settings-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .task-card {
        flex-wrap: wrap;
    }

    .task-actions {
        width: 100%;
        justify-content: flex-end;

    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        width: 100%;
    }

    .week-nav {
        flex-direction: column;
        width: 100%;
    }

    #weekDisplay {
        width: 100%;
    }

    .timer-controls {
        flex-direction: column;
    }

    .timer-controls .btn {
        width: 100%;
    }

    .timer-settings {
        grid-template-columns: 1fr;
    }

    .settings-card .btn {
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-buttons {
        grid-template-columns: 1fr;
    }

    .modal-buttons .btn-danger,
    .modal-buttons .modal-close {
        grid-column: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-menu,
    .btn,
    .modal,
    .notification-container,
    .timer-controls {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .task-card,
    .habit-card,
    .chart-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }    
}

/* Tablets and larger phones */
@media (max-width: 992px) {
    .dashboard-stats {
        flex-direction: column;
    }

    .stat {
        width: 100%;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .weekly-grid {
        grid-template-columns: 1fr;
    }

    .habit-input-section {
        grid-template-columns: 1fr;
    }
}


/* Medium screens (landscape tablets, large phones) */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .main-content {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* very small screens */
@media (max-width: 375px) {
    .logo h1 {
        font-size: 1.25rem;
    }

    .dashboard-header h2 {
        font-size: 1.5rem;
    }

    .dashboard-stats {
        flex-direction: column;
    }

    .stat {
        width: 100%;
    }

    .input-group {
        grid-template-columns: 1fr;
    }
}

/* SEO Landing Page Styles */
.text-center {
    text-align: center;
}

.hero-section.text-center {
    padding: 4rem 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.content-section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-article {
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.feature-article:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

/* --- LUXURY WEEKLY PLANNER STYLES --- */
:root {
    --planner-font-heading: 'Playfair Display', serif;
    --planner-font-body: 'Poppins', sans-serif;
    --planner-bg: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --planner-card-bg: #ffffff;
    --planner-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --planner-border: 1px solid rgba(0,0,0,0.05);
}

#weekly {
    background: var(--planner-bg);
    min-height: 100vh;
}

.weekly-planner-container {
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--planner-font-body);
}

.weekly-planner-header {
    text-align: center;
    margin-bottom: 2rem;
}

.weekly-planner-header h1 {
    font-family: var(--planner-font-heading);
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.weekly-planner-header .subtitle {
    color: var(--text-secondary);
    font-style: italic;
}

.week-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.week-controls h2 {
    font-family: var(--planner-font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.icon-btn:hover { color: var(--primary-color); }

.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto;
    border-radius: 2px;
}

.planner-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.planner-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.day-card {
    background: var(--planner-card-bg);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--planner-shadow);
    border: var(--planner-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.day-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

.day-card-header h3 {
    font-family: var(--planner-font-heading);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-card-task-list {
    flex: 1;
    list-style: none;
    margin-bottom: 1rem;
}

.day-input-area input {
    width: 100%;
    padding: 0.6rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: #f9f9f9;
}

.widget-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--planner-shadow);
    margin-bottom: 1.5rem;
}

.widget-card h3 {
    font-family: var(--planner-font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.widget-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.mood-selector {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    cursor: pointer;
}

.notebook-area textarea {
    width: 100%;
    height: 120px;
    border: none;
    background-image: linear-gradient(#f1f1f1 1px, transparent 1px);
    background-size: 100% 2em;
    line-height: 2em;
    padding: 0.5rem;
    font-family: cursive;
}

@media (max-width: 900px) {
    .planner-layout { grid-template-columns: 1fr; }
}

.feature-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.highlight-section {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 4rem auto;
    text-align: center;
    border: 1px solid var(--border-color);
    max-width: 800px;
}

.faq-section dt {
    margin-top: 1.5rem;
}

.page-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}
