/* AIR 369 - JEE Study App Styles */
/* Nature-based theme with green, earth tones, and calming colors */

:root {
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --primary-dark: #1b4332;
    --secondary: #d8f3dc;
    --accent: #f4a261;
    --accent-light: #e9c46a;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-dark: #1a1a2e;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #74b9ff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --gradient-nature: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #52b788 100%);
    --gradient-sunset: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    --gradient-leaf: linear-gradient(135deg, #2d6a4f 0%, #74c69d 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-nature);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.splash-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.logo-circle i {
    font-size: 3rem;
    color: white;
}

.app-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.nature-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.leaf-1 { top: 10%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 20%; right: 15%; animation-delay: 2s; }
.leaf-3 { bottom: 20%; left: 20%; animation-delay: 4s; }

.sun {
    position: absolute;
    top: 5%;
    right: 10%;
    font-size: 3rem;
    opacity: 0.4;
    animation: rotate 20s linear infinite;
}

.thought-bubble {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.thought-bubble p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
}

.enter-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.enter-btn i {
    transition: transform 0.3s ease;
}

.enter-btn:hover i {
    transform: translateX(5px);
}

/* Main App Layout */
.main-app {
    display: flex;
    min-height: 100vh;
}

.main-app.hidden {
    display: none;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.app-logo i {
    font-size: 2rem;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--secondary);
    color: var(--primary);
}

.nav-item.active {
    background: var(--secondary);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.daily-thought {
    background: var(--gradient-leaf);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.daily-thought i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.daily-thought p {
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.study-streak, .screen-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: 20px;
    font-weight: 500;
    color: var(--primary);
}

.study-streak i {
    color: var(--accent);
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-lg);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.full-width {
    width: 100%;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.welcome-card {
    grid-column: span 2;
    background: var(--gradient-nature);
    color: white;
}

.welcome-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-card p {
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.progress-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

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

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

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

.progress-text span {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.progress-text small {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Stats Card */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-item label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Quick Actions */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--secondary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1.5rem;
}

.action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Targets Card */
.target-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.target-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 10px;
}

.target-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.target-checkbox.checked {
    background: var(--primary);
    color: white;
}

.target-text {
    flex: 1;
    font-size: 0.9rem;
}

.target-text.completed {
    text-decoration: line-through;
    color: var(--text-light);
}

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Clock Section */
.clock-card {
    text-align: center;
}

.analog-clock {
    width: 200px;
    height: 200px;
    margin: 1.5rem auto;
    position: relative;
}

.clock-face {
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: 50%;
    position: relative;
    background: var(--bg-primary);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
}

.hour {
    width: 6px;
    height: 50px;
    background: var(--text-primary);
    margin-left: -3px;
}

.minute {
    width: 4px;
    height: 70px;
    background: var(--text-secondary);
    margin-left: -2px;
}

.second {
    width: 2px;
    height: 80px;
    background: var(--danger);
    margin-left: -1px;
}

.center-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.digital-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

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

/* Alarm Section */
.alarm-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.alarm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
}

.alarm-info {
    display: flex;
    flex-direction: column;
}

.alarm-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.alarm-days {
    font-size: 0.75rem;
    color: var(--text-light);
}

.alarm-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-alarm {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
}

.add-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: var(--primary-dark);
}

/* Timer Section */
.timer-card, .stopwatch-card {
    text-align: center;
}

.timer-display, .stopwatch-display, .pomodoro-timer {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
}

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

.btn-primary, .btn-secondary, .btn-danger, .btn-info {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

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

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

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

.laps-list {
    margin-top: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tasks Section */
.task-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.task-input-area {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.task-input-area input,
.task-input-area select {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
}

.task-input-area input {
    flex: 1;
    min-width: 200px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: var(--secondary);
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: var(--primary);
    color: white;
}

.task-content {
    flex: 1;
}

.task-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.task-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.task-category {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.task-category.physics { background: #e3f2fd; color: #1976d2; }
.task-category.chemistry { background: #f3e5f5; color: #7b1fa2; }
.task-category.maths { background: #e8f5e9; color: #388e3c; }
.task-category.other { background: #fff3e0; color: #f57c00; }

.task-priority {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.task-priority.high { background: #ffebee; color: #c62828; }
.task-priority.medium { background: #fff8e1; color: #f9a825; }
.task-priority.low { background: #e8f5e9; color: #2e7d32; }

.delete-task {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Diary Section */
.diary-input-card textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
}

.diary-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mood-selector {
    margin-bottom: 1rem;
}

.mood-selector span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.mood-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-btn:hover, .mood-btn.selected {
    background: var(--primary);
    color: white;
}

.diary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.diary-entry {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.diary-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.diary-entry-date {
    font-weight: 500;
    color: var(--text-primary);
}

.diary-entry-mood {
    font-size: 1.2rem;
}

.diary-entry-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* AIR 369 Section */
.manifestation-card {
    text-align: center;
}

.manifestation-info {
    background: var(--secondary);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.manifestation-info p {
    font-style: italic;
    color: var(--primary);
}

.manifestation-input {
    margin-bottom: 1.5rem;
}

.manifestation-input input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
}

.manifestation-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.counter-box {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.counter-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.counter-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.counter-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Goals Section */
.goal-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.goal-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
}

.goal-input select {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
}

.goal-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.goal-checkbox.checked {
    background: var(--primary);
    color: white;
}

.goal-text {
    flex: 1;
}

.goal-text.completed {
    text-decoration: line-through;
    color: var(--text-light);
}

.goal-timeline {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 4px;
}

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

.pomodoro-card {
    text-align: center;
}

.pomodoro-modes {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mode-btn.active, .mode-btn:hover {
    background: var(--primary);
    color: white;
}

.pomodoro-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-nature);
    border-radius: 4px;
    transition: width 1s linear;
    width: 100%;
}

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

.pomodoro-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.pomodoro-stats .stat {
    text-align: center;
}

.pomodoro-stats span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.pomodoro-stats label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Calculator Section */
.calculator-container {
    max-width: 400px;
    margin: 0 auto;
}

.calculator-card {
    padding: 1.5rem;
}

.calc-display {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: right;
}

.calc-history {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 20px;
    margin-bottom: 0.5rem;
}

.calc-input {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.calc-btn {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.calc-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.calc-btn.operator {
    background: var(--accent);
    color: white;
}

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

.calc-btn.equals {
    background: var(--primary);
    color: white;
    grid-column: span 2;
}

.calc-btn.zero {
    grid-column: span 2;
}

.scientific-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.calc-btn.sci {
    font-size: 0.9rem;
    background: var(--secondary);
    color: var(--primary);
}

/* App Blocker Section */
.blocker-status {
    text-align: center;
}

.status-indicator {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.status-indicator i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.status-indicator span {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-indicator.active {
    background: #ffebee;
    color: var(--danger);
}

.status-indicator.inactive {
    background: #e8f5e9;
    color: var(--success);
}

.screen-time-stats {
    text-align: left;
}

.screen-time-stats h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.time-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
}

.time-label {
    color: var(--text-secondary);
}

.time-value {
    font-weight: 600;
    color: var(--text-primary);
}

.blocked-apps {
    text-align: center;
}

.blocker-controls {
    margin-bottom: 1.5rem;
}

.time-setting {
    margin-bottom: 1rem;
}

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

.time-setting input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.apps-list {
    text-align: left;
}

.apps-list h4 {
    margin-bottom: 1rem;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.app-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
}

.app-item span {
    flex: 1;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

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

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

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

/* Syllabus Section */
.subject-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
}

.syllabus-content {
    display: none;
}

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

.syllabus-header {
    margin-bottom: 1.5rem;
}

.syllabus-header h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.thought-text {
    font-style: italic;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--secondary);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.chapter-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.chapter-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.chapter-card.high-weightage {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.chapter-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.chapter-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chapter-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.weightage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.weightage-badge.high {
    background: var(--accent);
}

/* Reminders Section */
.reminder-form .form-group {
    margin-bottom: 1rem;
}

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

.reminder-form input,
.reminder-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.reminders-list {
    max-height: 500px;
    overflow-y: auto;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
}

.reminder-item.study { border-left-color: #1976d2; }
.reminder-item.break { border-left-color: var(--success); }
.reminder-item.exam { border-left-color: var(--danger); }
.reminder-item.other { border-left-color: var(--text-secondary); }

.reminder-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--primary);
}

.reminder-info {
    flex: 1;
}

.reminder-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.delete-reminder {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reminder-item:hover .delete-reminder {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.repeat-days {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.day-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.day-btn.active, .day-btn:hover {
    background: var(--primary);
    color: white;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .welcome-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .manifestation-counters {
        grid-template-columns: 1fr;
    }
    
    .timer-display, .stopwatch-display, .pomodoro-timer {
        font-size: 2.5rem;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-right {
        display: none;
    }
    
    .task-input-area {
        flex-direction: column;
    }
    
    .task-input-area input,
    .task-input-area select {
        width: 100%;
    }
    
    .timer-controls {
        flex-direction: column;
    }
    
    .timer-controls button {
        width: 100%;
    }
}

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

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

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

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

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}