/* =================================================================
   NAMIBIANCA'S LAW SCHOOL STUDY PLANNER - COMPREHENSIVE STYLES
   Modern, Fashionable, Responsive Design
   ================================================================= */

/* ========================
   CSS VARIABLES & RESET
   ======================== */
:root {
    /* Color Palette - Fashionable & Professional */
    --primary-rose: #E8B4B8;
    --primary-lavender: #B8A9C9;
    --primary-sage: #81C784;
    --primary-navy: #6B4E71;
    --primary-cream: #FAF8F5;
    
    /* Subject Colors */
    --env-green: #81C784;
    --bus-blue: #64B5F6;
    --suc-purple: #BA68C8;
    --hr-gold: #FFB74D;
    --crim-red: #E57373;
    
    /* Neutrals */
    --white: #FFFFFF;
    --light-gray: #F5F5F7;
    --medium-gray: #E0E0E5;
    --dark-gray: #4A4A52;
    --black: #1A1A1D;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E8B4B8, #B8A9C9);
    --gradient-success: linear-gradient(135deg, #81C784, #66BB6A);
    --gradient-info: linear-gradient(135deg, #64B5F6, #42A5F5);
    --gradient-warning: linear-gradient(135deg, #FFB74D, #FFA726);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-body);
    background: var(--primary-cream);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================
   HEADER STYLES
   ======================== */
.main-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header-text h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.header-text p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.exam-countdown-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.2);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.exam-countdown-header i {
    font-size: 1.5rem;
}

.exam-countdown-header span {
    font-size: 1rem;
    font-weight: 600;
}

/* ========================
   NAVIGATION STYLES
   ======================== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--dark-gray);
}

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

.nav-btn span {
    font-size: 0.875rem;
}

.nav-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

/* ========================
   MAIN CONTENT
   ======================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

/* ========================
   DASHBOARD STYLES
   ======================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.dashboard-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dashboard-card h2 i {
    color: var(--primary-rose);
}

/* Master Progress Circle */
.master-progress {
    grid-column: span 2;
}

.progress-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--space-md) 0;
}

.progress-circle {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: var(--light-gray);
    stroke-width: 12;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s ease;
}

.progress-circle-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-percentage {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-label {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-top: -0.5rem;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--space-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* Next Exam Alert */
.next-exam-alert {
    background: var(--gradient-warning);
    color: var(--white);
}

.next-exam-alert h2 {
    color: var(--white);
}

.next-exam-subject {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.next-exam-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.countdown-large {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-large span:first-child {
    font-size: 3rem;
    font-weight: 700;
}

.countdown-unit {
    font-size: 1rem;
    opacity: 0.9;
}

.countdown-time {
    font-size: 1.5rem;
}

.next-exam-date {
    text-align: center;
    font-size: 1rem;
    opacity: 0.95;
}

/* Weekly Summary */
.weekly-summary {
    background: var(--gradient-success);
    color: var(--white);
}

.weekly-summary h2 {
    color: var(--white);
}

.weekly-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.weekly-stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255,255,255,0.2);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.weekly-stat i {
    font-size: 2rem;
}

.weekly-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.weekly-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.current-week-display {
    text-align: center;
    padding: var(--space-sm);
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
}

/* Wellness Score */
.wellness-score {
    background: var(--gradient-info);
    color: var(--white);
}

.wellness-score h2 {
    color: var(--white);
}

.wellness-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.score-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.3);
    stroke-width: 10;
}

.score-ring-fill {
    fill: none;
    stroke: var(--white);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
}

.wellness-breakdown {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.wellness-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.wellness-item i {
    font-size: 1.5rem;
}

/* Subject Progress Overview */
.subjects-overview {
    grid-column: span 2;
}

.subjects-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.subject-progress-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.subject-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-name {
    font-weight: 600;
    font-size: 1rem;
}

.subject-percentage {
    font-weight: 700;
    color: var(--dark-gray);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    transition: width 1s ease;
}

/* Motivational Card */
.motivational-card {
    grid-column: span 2;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
}

.motivation-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.motivation-author {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================
   WEEKLY PLANNER STYLES
   ======================== */
.weekly-planner-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

/* Week Navigator */
.week-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-primary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.week-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-nav-btn:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

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

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

.week-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.week-dates {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.week-phase {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    display: inline-block;
}

/* Week Progress Dots */
.week-progress-container {
    margin-bottom: var(--space-lg);
}

.week-progress-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.week-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 3px solid var(--medium-gray);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.week-dot:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.week-dot.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-rose);
    transform: scale(1.2);
}

.week-dot.completed {
    background: var(--gradient-success);
    color: var(--white);
    border-color: var(--env-green);
}

.week-dot.exam-week {
    background: var(--gradient-warning);
    color: var(--white);
    border-color: var(--hr-gold);
    animation: pulse 2s infinite;
}

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

/* Weekly Content Slider */
.weekly-content-slider {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.week-content {
    display: none;
    animation: slideIn 0.5s ease;
}

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

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

/* Week Content Sections */
.week-section {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.week-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.week-section h3 i {
    color: var(--primary-rose);
}

/* Weekly Goals */
.weekly-goals-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.goal-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.goal-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.goal-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-rose);
}

.goal-item span {
    flex: 1;
    font-weight: 500;
}

.goal-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Weekly Tasks */
.weekly-tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.task-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.task-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--env-green);
}

.task-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Weekly Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: auto repeat(7, 1fr);
    gap: 1px;
    background: var(--medium-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.schedule-header,
.schedule-time,
.schedule-cell {
    background: var(--white);
    padding: var(--space-sm);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-header {
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--white);
}

.schedule-time {
    font-weight: 600;
    background: var(--light-gray);
}

.schedule-cell {
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.schedule-cell:hover {
    background: var(--light-gray);
}

.schedule-cell input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-body);
    padding: 0.5rem;
}

.schedule-cell input:focus {
    outline: 2px solid var(--primary-rose);
    border-radius: var(--radius-sm);
}

/* Daily Study Hours */
.daily-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.day-hours-item {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.day-hours-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.day-hours-item input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.day-hours-item input:focus {
    outline: none;
    border-color: var(--primary-rose);
}

.weekly-total {
    grid-column: 1 / -1;
    background: var(--gradient-success);
    color: var(--white);
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Pomodoro Timer Widget */
.pomodoro-widget {
    background: linear-gradient(135deg, #FFE5E5, #FFF0F5);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 2px solid var(--primary-rose);
    box-shadow: var(--shadow-md);
}

.pomodoro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.pomodoro-header h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pomodoro-settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-rose);
    color: var(--primary-rose);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pomodoro-settings-btn:hover {
    background: var(--primary-rose);
    color: var(--white);
    transform: rotate(90deg);
}

.pomodoro-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.pomodoro-timer-circle {
    position: relative;
    width: 160px;
    height: 160px;
}

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

.pomodoro-circle-bg {
    fill: none;
    stroke: var(--medium-gray);
    stroke-width: 8;
}

.pomodoro-circle-progress {
    fill: none;
    stroke: var(--primary-rose);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 0.5s ease;
}

.pomodoro-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    font-family: var(--font-body);
}

.pomodoro-mode {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pomodoro-controls {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.pomodoro-btn {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.pomodoro-start {
    background: var(--gradient-success);
    color: var(--white);
}

.pomodoro-start:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pomodoro-pause {
    background: var(--gradient-warning);
    color: var(--white);
}

.pomodoro-pause:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pomodoro-reset {
    background: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--medium-gray);
}

.pomodoro-reset:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pomodoro-session-count {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-top: var(--space-sm);
}

.pomodoro-session-count span {
    font-weight: 700;
    color: var(--primary-rose);
}

/* Pomodoro Settings Panel */
.pomodoro-settings {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    border: 2px solid var(--medium-gray);
}

.pomodoro-settings h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
}

.pomodoro-setting-item {
    margin-bottom: var(--space-md);
}

.pomodoro-setting-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.pomodoro-setting-item input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.pomodoro-setting-item input:focus {
    outline: none;
    border-color: var(--primary-rose);
}

.pomodoro-apply-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.pomodoro-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Weekly Reflection */
.weekly-reflection textarea {
    width: 100%;
    min-height: 150px;
    padding: var(--space-md);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    transition: all var(--transition-fast);
}

.weekly-reflection textarea:focus {
    outline: none;
    border-color: var(--primary-rose);
}

/* Quick Week Jump */
.quick-week-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

.quick-week-jump label {
    font-weight: 600;
    color: var(--primary-navy);
}

.quick-week-jump select {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-week-jump select:focus {
    outline: none;
    border-color: var(--primary-rose);
}

/* ========================
   SUBJECTS STYLES
   ======================== */
.subjects-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.subject-nav {
    display: flex;
    background: var(--light-gray);
    padding: var(--space-sm);
    gap: var(--space-sm);
    overflow-x: auto;
}

.subject-nav-btn {
    flex: 1;
    min-width: 150px;
    padding: var(--space-md);
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: var(--font-body);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.subject-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.subject-content {
    display: none;
}

.subject-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.subject-header {
    padding: var(--space-xl);
    color: var(--white);
    text-align: center;
}

.subject-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.subject-progress-header {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.progress-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.subject-exam-date {
    font-size: 1rem;
    opacity: 0.95;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.subject-card {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.subject-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.subject-card.full-width {
    grid-column: 1 / -1;
}

/* Topics, Cases, Papers Lists */
.topics-list,
.cases-list,
.papers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.topic-item,
.case-item,
.paper-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topic-item:hover,
.case-item:hover,
.paper-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.topic-item input,
.case-item input,
.paper-item input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-rose);
}

.topic-item input:checked + span,
.case-item input:checked + span,
.paper-item input:checked + span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Confidence Section */
.confidence-section {
    margin-bottom: var(--space-lg);
}

.confidence-section label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--primary-navy);
}

.confidence-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
}

.confidence-btn {
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: var(--font-body);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.confidence-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.confidence-btn.active {
    background: var(--gradient-success);
    color: var(--white);
    border-color: var(--env-green);
}

/* Notes Section */
.notes-section label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--primary-navy);
}

.subject-notes {
    width: 100%;
    min-height: 150px;
    padding: var(--space-md);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    transition: all var(--transition-fast);
}

.subject-notes:focus {
    outline: none;
    border-color: var(--primary-rose);
}

/* ========================
   WELLNESS STYLES
   ======================== */
.wellness-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.wellness-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.wellness-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.wellness-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.wellness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.wellness-card {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium);
}

.wellness-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.wellness-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.wellness-card.full-width {
    grid-column: 1 / -1;
}

.wellness-score-card {
    grid-column: span 2;
    background: var(--gradient-info);
    color: var(--white);
}

.wellness-score-card h3 {
    color: var(--white);
}

.score-ring-large {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.score-value-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
}

.wellness-status {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 1.1rem;
}

/* Tracker Content */
.tracker-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tracker-content label {
    font-weight: 600;
    color: var(--primary-navy);
}

.tracker-content input[type="number"] {
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.tracker-content input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-rose);
}

.tracker-tip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.tracker-tip i {
    color: var(--hr-gold);
}

/* Water Glasses */
.water-glasses {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.glass-btn {
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 2rem;
    color: var(--medium-gray);
}

.glass-btn:hover {
    transform: scale(1.1);
}

.glass-btn.filled {
    background: var(--gradient-info);
    color: var(--white);
    border-color: var(--bus-blue);
}

/* Meal Checkboxes */
.meal-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.meal-checkbox:hover {
    box-shadow: var(--shadow-sm);
}

.meal-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--env-green);
}

.meal-checkbox span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

/* Timer */
.timer-content {
    text-align: center;
}

.timer-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: var(--space-md) 0;
}

.timer-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.timer-btn {
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: var(--font-body);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.timer-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Stress Buttons */
.stress-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.stress-btn {
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stress-btn i {
    font-size: 2rem;
}

.stress-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stress-btn.active {
    background: var(--gradient-warning);
    color: var(--white);
    border-color: var(--hr-gold);
}

.stress-tips {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.stress-tips ul {
    list-style-position: inside;
    color: var(--dark-gray);
}

/* Wellness Tips Grid */
.wellness-tips-card {
    background: var(--gradient-success);
    color: var(--white);
}

.wellness-tips-card h3 {
    color: var(--white);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.tip-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255,255,255,0.2);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.tip-item i {
    font-size: 1.5rem;
}

/* ========================
   EXAMS STYLES
   ======================== */
.exams-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.exams-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.exams-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.exams-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.exam-card {
    background: var(--light-gray);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium);
    border-left: 5px solid transparent;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.exam-card.urgent {
    border-left-color: var(--crim-red);
    background: linear-gradient(135deg, rgba(229,115,115,0.1), rgba(239,83,80,0.1));
}

.exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.exam-subject {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-navy);
}

.exam-code {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 0.25rem;
}

.exam-countdown-badge {
    background: var(--gradient-warning);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
}

.exam-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.exam-detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.exam-detail-item i {
    color: var(--primary-rose);
    width: 20px;
}

/* Exam Checklist */
.exam-checklist-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.exam-checklist-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255,255,255,0.2);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checklist-item:hover {
    background: rgba(255,255,255,0.3);
}

.checklist-item input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ========================
   FOOTER STYLES
   ======================== */
.main-footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: var(--space-lg);
    text-align: center;
    margin-top: var(--space-xl);
}

.footer-content p {
    margin: 0.5rem 0;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .master-progress,
    .subjects-overview,
    .motivational-card {
        grid-column: span 1;
    }
    
    .wellness-score-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        top: 60px;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 150px;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .week-navigator {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .subject-nav {
        flex-direction: column;
    }
    
    .schedule-grid {
        display: flex;
        flex-direction: column;
    }
    
    .confidence-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pomodoro-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .pomodoro-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: var(--space-sm);
    }
    
    .header-text h1 {
        font-size: 1.3rem;
    }
    
    .nav-btn span {
        font-size: 0.75rem;
    }
    
    .dashboard-card {
        padding: var(--space-md);
    }
    
    .weekly-planner-container,
    .subjects-container,
    .wellness-container,
    .exams-container {
        padding: var(--space-md);
    }
}

/* ========================
   MOTIVATIONAL QUOTES STYLES
   ======================== */

.motivational-quote-display {
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.1), rgba(184, 169, 201, 0.1));
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-rose);
    margin: var(--space-md) 0;
    position: relative;
    animation: fadeIn 1s ease;
}

.quote-icon-small {
    font-size: 1.2rem;
    color: var(--primary-rose);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.quote-text-small {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--primary-navy);
    margin: 0.5rem 0;
    line-height: 1.6;
}

.quote-author-small {
    font-size: 0.85rem;
    color: var(--dark-gray);
    text-align: right;
    margin-top: 0.5rem;
    font-weight: 500;
}

.section-quote {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1), rgba(102, 187, 106, 0.1));
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--env-green);
    margin: var(--space-sm) 0;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--primary-navy);
}

.page-top-quote {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.page-top-quote .quote-text-small {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
}

.page-top-quote .quote-author-small {
    color: rgba(255,255,255,0.9);
    margin-top: 0.5rem;
}

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

/* ========================
   PRINT STYLES
   ======================== */
@media print {
    .main-header,
    .main-nav,
    .main-footer,
    .week-navigator,
    .week-progress-container,
    .quick-week-jump {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .dashboard-card,
    .subject-card,
    .wellness-card,
    .exam-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--medium-gray);
    }
}
/* ========================
   RESOURCES PAGE STYLES
   ======================== */
.resources-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

.resources-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.resources-header h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
}

.resources-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.resource-category {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.resource-category:hover {
    box-shadow: var(--shadow-lg);
}

.resource-category h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.resource-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--primary-navy);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.resource-link:hover {
    background: var(--primary-rose);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resource-link i {
    font-size: 1.2rem;
}

.resource-link span {
    font-weight: 600;
    font-size: 1.1rem;
}

.resource-link small {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========================
   EDIT MODE STYLES
   ======================== */
.btn-edit-mode {
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.3s ease;
}

.btn-edit-mode:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-edit-mode.active {
    background: var(--gradient-success);
}

.btn-add-resource,
.btn-add-category {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-info);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.3s ease;
}

.btn-add-resource:hover,
.btn-add-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Edit Mode Active State */
body.edit-mode .resource-link[data-editable],
body.edit-mode [data-editable] {
    border: 2px dashed var(--primary-lavender);
    cursor: pointer;
    position: relative;
}

body.edit-mode .resource-link[data-editable]:hover {
    border-color: var(--primary-rose);
    background: rgba(232, 180, 184, 0.1);
}

body.edit-mode .btn-add-resource,
body.edit-mode .add-category-section {
    display: block !important;
}

/* Edit Controls */
.edit-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

body.edit-mode .resource-link[data-editable]:hover .edit-controls,
body.edit-mode [data-editable]:hover .edit-controls {
    display: flex;
}

.btn-edit,
.btn-delete {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-edit {
    background: var(--bus-blue);
    color: var(--white);
}

.btn-edit:hover {
    background: #42A5F5;
}

.btn-delete {
    background: var(--crim-red);
    color: var(--white);
}

.btn-delete:hover {
    background: #D32F2F;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.modal-header h3 {
    color: var(--primary-navy);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--crim-red);
}

.modal-body {
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

.btn-modal-cancel,
.btn-modal-save {
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

.btn-modal-cancel:hover {
    background: var(--dark-gray);
    color: var(--white);
}

.btn-modal-save {
    background: var(--gradient-success);
    color: var(--white);
}

.btn-modal-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .resource-links {
        grid-template-columns: 1fr;
    }
    
    .resources-header h2 {
        font-size: 1.5rem;
    }
    
    .resource-category h3 {
        font-size: 1.25rem;
    }
}

/* Add edit indicator */
body.edit-mode::before {
    content: 'Edit Mode Active - Click items to edit';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-warning);
    color: var(--primary-navy);
    padding: var(--space-sm);
    text-align: center;
    font-weight: 700;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

body.edit-mode .main-content {
    padding-top: calc(var(--space-xl) + 40px);
}

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

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

.notification {
    animation: slideIn 0.3s ease;
}

/* PAGE HEADER WITH EDIT BUTTON */
.page-header-with-edit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.page-title {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.page-title i {
    font-size: 1.5rem;
}

/* UNIVERSAL EDIT MODE STYLES FOR ALL PAGES */

/* Dashboard Edit Mode */
body.dashboard-edit-mode .dashboard-card {
    border: 2px dashed var(--primary-lavender);
    cursor: pointer;
    position: relative;
}

body.dashboard-edit-mode .dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 104, 200, 0.3);
}

body.dashboard-edit-mode .dashboard-card::after {
    content: '✏️ Click to customize';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-lavender);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

body.dashboard-edit-mode .dashboard-card:hover::after {
    opacity: 1;
}

/* Weekly Planner Edit Mode */
body.weekly-edit-mode .goal-item,
body.weekly-edit-mode .task-item {
    border-left: 3px solid var(--primary-lavender);
    padding-left: var(--space-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.weekly-edit-mode .goal-item:hover,
body.weekly-edit-mode .task-item:hover {
    background: rgba(186, 104, 200, 0.1);
    transform: translateX(4px);
}

body.weekly-edit-mode .schedule-input,
body.weekly-edit-mode .daily-hour-input,
body.weekly-edit-mode .reflection-textarea {
    border: 2px solid var(--primary-lavender);
    background: rgba(186, 104, 200, 0.05);
}

/* Subjects Edit Mode */
body.subjects-edit-mode .topic-item,
body.subjects-edit-mode .case-item,
body.subjects-edit-mode .paper-item {
    border-left: 3px solid var(--primary-lavender);
    padding-left: var(--space-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.subjects-edit-mode .topic-item:hover,
body.subjects-edit-mode .case-item:hover,
body.subjects-edit-mode .paper-item:hover {
    background: rgba(186, 104, 200, 0.1);
    transform: translateX(4px);
}

body.subjects-edit-mode .subject-notes {
    border: 2px solid var(--primary-lavender);
    background: rgba(186, 104, 200, 0.05);
}

body.subjects-edit-mode .confidence-btn {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

body.subjects-edit-mode .confidence-btn:hover {
    border-color: var(--primary-lavender);
    transform: scale(1.05);
}

/* Wellness Edit Mode */
body.wellness-edit-mode .wellness-card {
    border: 2px dashed var(--primary-lavender);
    cursor: pointer;
    position: relative;
}

body.wellness-edit-mode .wellness-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 104, 200, 0.3);
}

body.wellness-edit-mode .wellness-card::after {
    content: '✏️ Customize';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-lavender);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

body.wellness-edit-mode .wellness-card:hover::after {
    opacity: 1;
}

/* Exams Edit Mode */
body.exams-edit-mode .exam-card {
    border: 2px dashed var(--primary-lavender);
    cursor: pointer;
    position: relative;
}

body.exams-edit-mode .exam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 104, 200, 0.3);
}

body.exams-edit-mode .exam-card::after {
    content: '✏️ Edit exam details';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-lavender);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

body.exams-edit-mode .exam-card:hover::after {
    opacity: 1;
}

body.exams-edit-mode .checklist-item {
    border-left: 3px solid var(--primary-lavender);
    padding-left: var(--space-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.exams-edit-mode .checklist-item:hover {
    background: rgba(186, 104, 200, 0.1);
    transform: translateX(4px);
}

/* Edit Mode Banner for all pages */
body.dashboard-edit-mode::before,
body.weekly-edit-mode::before,
body.subjects-edit-mode::before,
body.wellness-edit-mode::before,
body.exams-edit-mode::before {
    content: '🎨 Edit Mode Active - Click items to customize';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #BA68C8, #E8B4B8);
    color: var(--white);
    padding: var(--space-sm);
    text-align: center;
    font-weight: 700;
    z-index: 999;
    animation: fadeIn 0.3s ease;
    box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header-with-edit {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .btn-edit-mode {
        width: 100%;
    }
}
