/* ============================================
   GLOBAL STYLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar removed */

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.header-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.header-brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.header-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 6px;
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #4a6fa5;
    background-color: #f8f9fa;
}

.nav-link.active {
    color: #4a6fa5;
    background-color: #e8f0fe;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background-color: #4a6fa5;
    border-radius: 1px;
}

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

.user-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffd700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.user-name-header {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.logout-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #4a6fa5;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 200px);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 260px;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-toggle {
    position: absolute;
    top: 1rem;
    right: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sidebar-toggle i {
    font-size: 0.75rem;
    color: #666;
}

.sidebar-content {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-logo-img {
    height: 35px;
    width: auto;
}

.sidebar-brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-nav-item:hover {
    background-color: #f8f9fa;
    color: #4a6fa5;
}

.sidebar-nav-item.active {
    background-color: #e8f0fe;
    color: #4a6fa5;
    font-weight: 500;
}

.sidebar-study-time {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.study-time-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.study-time-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a6fa5;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.main-content.with-sidebar {
    margin-left: 0;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */
.dashboard-container {
    max-width: 100%;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease-in-out infinite;
    filter: hue-rotate(0deg);
}

@keyframes gradientShift {
    0% {
        filter: hue-rotate(0deg);
        box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
    }
    25% {
        filter: hue-rotate(90deg);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    }
    50% {
        filter: hue-rotate(180deg);
        box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
    }
    75% {
        filter: hue-rotate(270deg);
        box-shadow: 0 4px 12px rgba(253, 116, 108, 0.3);
    }
    100% {
        filter: hue-rotate(360deg);
        box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
    }
}

/* Cloud Background */
.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    box-shadow:
        150px 50px 0 rgba(255, 255, 255, 0.25),
        300px 30px 0 rgba(255, 255, 255, 0.2),
        450px 70px 0 rgba(255, 255, 255, 0.25),
        600px 40px 0 rgba(255, 255, 255, 0.2),
        750px 60px 0 rgba(255, 255, 255, 0.25);
    animation: cloudMove 20s infinite linear;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -30px;
    width: 150px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    box-shadow:
        200px 30px 0 rgba(255, 255, 255, 0.2),
        400px 50px 0 rgba(255, 255, 255, 0.25);
    animation: cloudMove 25s infinite linear reverse;
}

@keyframes cloudMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100px);
    }
}

.welcome-banner > * {
    position: relative;
    z-index: 1;
}

.welcome-content {
    flex: 1;
}

.welcome-greeting {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.95;
}

.welcome-actions {
    display: flex;
    align-items: center;
}

.btn-signin {
    background-color: white;
    color: #4682B4;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background-color: #f8f9fa;
}

.checkin-status-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255,255,255,0.3);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.checkin-status-banner i {
    color: #4ade80;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.feature-card-icon.task-icon {
    background-color: #e8f0fe;
    color: #4a6fa5;
}

.feature-card-icon.focus-icon {
    background-color: #fee2e2;
    color: #ef4444;
}

.feature-card-icon.report-icon {
    background-color: #dcfce7;
    color: #22c55e;
}

.feature-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Dashboard Main Content - Two Column Layout */
.dashboard-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.task-progress-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background-color: #4a6fa5;
    transition: width 0.3s;
}

.progress-text-mini {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

/* Task List */
.task-list-container {
    margin-bottom: 1rem;
}

.task-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s;
}

.task-item-modern:hover {
    background-color: #f8f9fa;
}

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

.task-item-modern.task-completed .task-title-modern {
    text-decoration: line-through;
}

.task-checkbox-modern {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.task-content {
    flex: 1;
}

.task-title-modern {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-subject {
    font-size: 0.85rem;
    color: #666;
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.task-time-modern {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.priority-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.priority-badge.priority-high {
    background-color: #fee2e2;
    color: #dc2626;
}

.priority-badge.priority-medium {
    background-color: #fef3c7;
    color: #d97706;
}

.priority-badge.priority-low {
    background-color: #e0e7ff;
    color: #6366f1;
}

.empty-state-modern {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-icon-modern {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.view-all-link-modern {
    display: block;
    text-align: center;
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.view-all-link-modern:hover {
    color: #1e3a8a;
}

/* Learning Statistics */
.stats-content {
    display: flex;
flex-direction: column;
    gap: 2rem;
}

.main-stat {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.stat-icon-large {
    width: 60px;
    height: 60px;
    background-color: #e8f0fe;
    color: #4a6fa5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.stat-value-large {
    font-size: 2rem;
font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 0.75rem;
}

.stat-message {
display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.stat-message.positive {
    color: #22c55e;
}

.stat-message i {
    font-size: 0.75rem;
}
.recent-activity {
    padding-top: 1.5rem;
border-top: 1px solid #f0f0f0;
}

.activity-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.activity-list {
    color: #999;
    font-size: 0.9rem;
}

.activity-empty {
    color: #999;
    font-style: italic;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    background-color: #4a6fa5;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group.half {
flex: 1;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    background-color: #3a5a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #4a6fa5;
    color: #4a6fa5;
}

.btn-outline:hover {
background-color: #4a6fa5;
    color: white;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.75rem;
    text-align: center;
}

.auth-card .form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.1);
}

.auth-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(90deg, #4a6fa5, #1e3a8a);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-card .btn:hover {
    background: linear-gradient(90deg, #3a5a8a, #15326e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.3);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.auth-links a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.auth-links a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* ============================================
   FOCUS PAGE STYLES
   ============================================ */
.focus-page-container {
    max-width: 100%;
}

.focus-page-header {
    margin-bottom: 2rem;
}

.focus-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.focus-page-subtitle {
    font-size: 1rem;
    color: #666;
}

.focus-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Focus Main Card */
.focus-main-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.focus-card-header {
    margin-bottom: 2rem;
}

.focus-card-title {
    font-size: 1.5rem;
    font-weight: 600;
color: #333;
    margin-bottom: 0.5rem;
}

.focus-card-subtitle {
font-size: 0.95rem;
    color: #666;
}

/* Timer Circle */
.timer-circle-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.timer-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    position: relative;
}



.timer-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    font-variant-numeric: tabular-nums;
    z-index: 1;
    position: relative;
}

/* Subject Selector */
.subject-selector {
    margin-bottom: 2rem;
}

.subject-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.subject-dropdown {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.subject-dropdown:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* Timer Controls */
.timer-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.btn-start-timer {
    background-color: #333;
    color: white;
border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-start-timer:hover {
    background-color: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-start-timer.paused {
    background-color: #4a6fa5;
}

.btn-start-timer.paused:hover {
    background-color: #3a5a8a;
}

.btn-pause-timer {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-pause-timer:hover {
    background-color: #3a5a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-reset-timer {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-reset-timer:hover {
    border-color: #4a6fa5;
    color: #4a6fa5;
    background-color: #f8f9fa;
}

/* Preset Time Buttons */
.preset-times {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.preset-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #666;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.preset-btn:hover {
    border-color: #4a6fa5;
    color: #4a6fa5;
}

.preset-btn.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

/* Custom Time Section */
.custom-time-section {
    margin-top: 1.5rem;
    width: 100%;
}

/* Custom Time Input */
.custom-time-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

#customMinutes {
    width: 50px;  /* 加长输入框 */
    padding: 0.625rem 0.75rem;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #666;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    flex: 1;  /* 让输入框占据剩余空间 */
}

#customMinutes:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

#customMinutes::placeholder {
    color: #999;
    font-weight: 400;
}

#setCustomTime {
    padding: 0.625rem 1rem;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #666;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

#setCustomTime:hover {
    border-color: #4a6fa5;
    color: #4a6fa5;
    background-color: #f8f9fa;
}

/* Focus Stats Column */
.focus-stats-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.focus-stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.stat-card-content {
    text-align: center;
}

.stat-large-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 0.5rem;
}

.stat-card-description {
    font-size: 0.9rem;
    color: #666;
}

/* How it works */
.how-it-works-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.how-it-works-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e8f0fe;
    color: #4a6fa5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.how-it-works-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-top: 0.25rem;
}

/* ============================================*/
.welcome-greeting {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    animation: typewriterLoop1 12.5s infinite;
    width: 0;
}
.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    overflow: hidden;
    white-space: nowrap;
    animation: typewriterLoop2 12.5s infinite;
    width: 0;
}

@keyframes typewriterLoop1 {
    0%, 20% {
        width: 0;
    }
    20%, 40% {
        width: 100%;
    }
    40%, 99.9% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}
@keyframes typewriterLoop2 {
    0%, 8% {
        width: 0;
    }
    8%, 24% {
        width: 0;
    }
    24%, 44% {
        width: 100%;
    }
    44%, 99.9% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

.welcome-actions {
    display: flex;
    align-items: center;
}
}
   TASKS PAGE STYLES
   ============================================ */
.tasks-page-container {
    max-width: 100%;
}

.tasks-page-header {
    margin-bottom: 2rem;
}

.tasks-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.tasks-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.tasks-page-subtitle {
font-size: 1rem;
    color: #666;
}

.btn-add-task {
    background-color: #333;
color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-add-task:hover {
    background-color: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Filters Section */
.tasks-filters-section {
    margin-bottom: 2rem;
}

.filters-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-dropdown-wrapper {
    flex: 1;
    min-width: 200px;
}

.filter-dropdown {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-dropdown:hover {
    border-color: #4a6fa5;
    background-color: white;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #4a6fa5;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* Tasks List Section */
.tasks-list-section {
    margin-top: 2rem;
}

/* Task Status Sections */
.task-status-section {
    margin-bottom: 2.5rem;
}

.task-status-section:last-child {
    margin-bottom: 0;
}

.task-status-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0e0;
}

.task-status-title i {
    color: #4a6fa5;
}

.task-count-badge {
    background-color: #e8f0fe;
    color: #4a6fa5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: auto;
}

.tasks-list-header {
    margin-bottom: 1.5rem;
}

.tasks-list-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.tasks-list-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Task Card Modern */
.task-card-modern {
    background-color: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s;
}

.task-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.task-checkbox-modern {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

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

.task-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.task-title-modern.completed {
    text-decoration: line-through;
    color: #999;
}

.task-details-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.task-subject-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.subject-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Subject color dots */
.subject-mathematics,
.subject-math {
    background-color: #4a6fa5;
}

.subject-biology,
.subject-bio {
    background-color: #22c55e;
}

.subject-english,
.subject-eng {
    background-color: #a855f7;
}

.subject-physics {
    background-color: #ef4444;
}

.subject-chemistry {
    background-color: #f59e0b;
}

.subject-history {
    background-color: #8b5cf6;
}

/* Default subject dot */
.subject-dot:not([class*="subject-"]) {
    background-color: #94a3b8;
}

.flash-message {
    background-color: #4a6fa5;
    color: white;
}

.flash-message .message-text {
    overflow: hidden;
    white-space: nowrap;
    animation: flashTypewriter 1s steps(25) forwards;
    width: 0;
    display: inline-block;
}

@keyframes flashTypewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.flash-message .message-text {
    overflow: hidden;
    white-space: nowrap;
    animation: flashTypewriter 2s steps(30) forwards;
    width: 0;
    display: inline-block;
}

@keyframes flashTypewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* ============================================
   语言选择器样式
   ============================================ */
.header-language-selector {
    display: flex;
    align-items: center;
    margin-right: 10px;
    position: relative;
}

.header-language-selector i {
    margin-right: 6px;
    color: #4a6fa5;
    font-size: 14px;
}

.language-select {
    padding: 6px 10px;
    padding-right: 28px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a6fa5' d='M3 4l3 3 3-3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 110px;
}

.language-select:hover {
    border-color: #4a6fa5;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    box-shadow: 0 4px 8px rgba(74, 111, 165, 0.15);
    transform: translateY(-1px);
}

.language-select:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.language-select option {
    background: white;
    color: #2d3748;
    font-family: 'Inter', sans-serif;
    padding: 8px 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-language-selector {
        margin-right: 10px;
    }
    
    .language-select {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .header-language-selector i {
        font-size: 14px;
        margin-right: 6px;
    }
}


.task-due-date-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}
.task-due-date-modern.due-today {
    color: #ef4444;
    font-weight: 500;
}
.task-due-date-modern.due-tomorrow {
    color: #4a6fa5;
    font-weight: 500;
}
.task-time-modern {
    color: #666;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.priority-tag-modern {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.priority-tag-modern.priority-high {
    background-color: #fee2e2;
    color: #dc2626;
}

.priority-tag-modern.priority-medium {
    background-color: #fef3c7;
    color: #d97706;
}

.priority-tag-modern.priority-low {
    background-color: #e0e7ff;
    color: #6366f1;
}

.delete-btn-modern {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn-modern:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.edit-btn-modern {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn-modern:hover {
    background-color: #e0f2fe;
    color: #0284c7;
}

.no-tasks-modern {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-tasks-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 2001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-primary {
    background-color: #4a6fa5;
    color: white;
}

.btn-primary:hover {
    background-color: #3a5a8a;
}

/* ============================================
   REPORTS PAGE STYLES
   ============================================ */
.reports-container {
    max-width: 100%;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Stats Grid */
.stats-grid.modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card.stat-card-modern {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card.stat-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.time-icon,
.stat-icon.tasks-icon,
.stat-icon.productivity-icon {
    background-color: #e8f0fe;
    color: #4a6fa5;
}

.stat-icon.streak-icon {
    background-color: #fef3c7;
    color: #f59e0b;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value.highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 0.5rem;
}

.stat-value.streak-value {
    color: #f59e0b;
}

.stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: #22c55e;
}
.stat-change.neutral {
    color: #666;
}

/* Learning Chart */
.learning-chart.card-shadow {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

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

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.chart-placeholder.enhanced-chart {
    padding: 1rem 0;
}

.chart-bars.modern-chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 0.5rem;
    height: 200px;
    padding: 1rem 0;
}

.chart-bar.modern-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.chart-bar .bar {
    width: 100%;
    max-width: 40px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    position: relative;
    cursor: pointer;
}

.bar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.chart-bar:hover .bar-tooltip {
    opacity: 1;
}

.bar-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.checkin-mark {
    position: absolute;
    top: -20px;
    color: #22c55e;
    font-size: 0.875rem;
}

/* Reports Details Grid */
.reports-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.checkin-details.card-shadow,
.completed-tasks.card-shadow {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Check-in Details */
.checkin-dates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkin-date-item.modern-checkin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
}

.checkin-date-item.modern-checkin-item:hover {
    background-color: #f0f0f0;
}

.checkin-date-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkin-day {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.checkin-date {
    font-size: 0.85rem;
    color: #666;
}

.checkin-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.checkin-focus-time {
    font-size: 0.9rem;
    color: #4a6fa5;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkin-badge {
    font-size: 0.85rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Completed Tasks */
.completed-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.completed-task-item.modern-task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
}

.completed-task-item.modern-task-item:hover {
    background-color: #f0f0f0;
}

.task-icon-completed {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #dcfce7;
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-info-completed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.task-title-completed {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.course-tag-completed {
    font-size: 0.85rem;
    color: #666;
    background-color: #e0e7ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.task-completion-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.completion-date {
    font-size: 0.85rem;
    color: #666;
}

.completion-time {
    font-size: 0.8rem;
    color: #999;
}

/* Empty State */
.empty-state.enhanced-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon-container {
    margin-bottom: 1rem;
}

.empty-icon-large {
    font-size: 3rem;
    color: #ccc;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */
.profile-page-container {
    max-width: 100%;
}

.profile-page-header {
    margin-bottom: 2rem;
}

.profile-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-page-subtitle {
    font-size: 1rem;
    color: #666;
}

.profile-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* User Profile Card */
.user-profile-card.card-shadow {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffd700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2.5rem;
    margin: 0 auto;
}

.profile-avatar-large.profile-avatar-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4a6fa5;
    color: white;
    border: 3px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.avatar-edit-btn:hover {
    background-color: #3a5a8a;
    transform: scale(1.05);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-school-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.profile-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.profile-badge.badge-education {
background-color: #e0e7ff;
    color: #6366f1;
}

.profile-badge.badge-checkin {
    background-color: #dcfce7;
    color: #22c55e;
}

.profile-badge.badge-streak {
    background-color: #f3e8ff;
    color: #a855f7;
}

/* Personal Information Section */
.personal-info-section.card-shadow {
background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.btn-edit-section {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-edit-section:hover {
    background-color: #3a5a8a;
}

.info-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 20px;
    color: #4a6fa5;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
}

.info-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Account Security Section */
.account-security-section.card-shadow {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.password-security-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.password-security-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.password-icon {
    color: #4a6fa5;
    font-size: 1.25rem;
}

.password-security-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.password-last-changed {
    font-size: 0.9rem;
    color: #666;
    margin-left: 2rem;
}

.btn-change-password {
    width: 100%;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.btn-change-password:hover {
    background-color: #d0d0d0;
}

.security-tips {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.security-tips-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.security-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.tip-icon {
    color: #22c55e;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Grade Section */
.grade-section.card-shadow {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.grade-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.grade-icon {
    color: #4a6fa5;
    font-size: 1.25rem;
}

.grade-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.grade-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a6fa5;
}

/* Check-in Record Section */
.checkin-record-section.card-shadow {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkin-metrics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.checkin-metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
color: #4a6fa5;
}

.checkin-calendar-container {
    margin-top: 1rem;
}
.checkin-calendar-label {
    font-size: 0.9rem;
/* 修复响应式设计中的task-actions-modern样式 */
@media (max-width: 768px) {
    .task-card-modern {
        flex-wrap: wrap;
    }

    .task-actions-modern {
        width: 100%;
        justify-content: space-between; /* 改为space-between而不是flex-end */
        margin-top: 0.5rem;
    }
}

/* 添加action-buttons样式确保按钮在同一行 */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* 修复按钮样式，确保它们在同一行 */
.edit-btn-modern, .delete-btn-modern {
    padding: 0.5rem; /* 从0.75rem减少到0.5rem */
    border-radius: 6px; /* 从8px减少到6px */
    font-size: 1rem; /* 从1.1rem减少到1rem */
    transition: all 0.2s;
    z-index: 2; /* 确保在侧边条之上 */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.edit-btn-modern {
    color: #4a6fa5;
    background: #eff6ff;
}

.edit-btn-modern:hover {
    background: #4a6fa5;
    color: white;
    transform: scale(1.05);
}

.delete-btn-modern {
    color: #ef4444;
    background: #fef2f2;
}

.delete-btn-modern:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

.priority-tag-modern {
    padding: 0.375rem 0.75rem; /* 从0.5rem 1rem减少 */
    border-radius: 6px; /* 从8px减少到6px */
    font-size: 0.75rem; /* 从0.8rem减少到0.75rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2; /* 确保在侧边条之上 */
    white-space: nowrap;
    flex-shrink: 0;
}

/* 删除重复的task-actions-modern样式定义 */
.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem; /* 从0.75rem减少到0.5rem */
    margin-top: auto;
    padding-top: 0.75rem; /* 从1rem减少到0.75rem */
    border-top: 1px solid #f1f5f9;
    z-index: 2; /* 确保在侧边条之上 */
}

    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.checkin-calendar-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkin-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.checkin-calendar-day.checked-in {
    background-color: #22c55e;
    color: white;
}

.checkin-calendar-day.not-checked-in {
    background-color: #f0f0f0;
    color: #999;
}

.checkin-calendar-day:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkin-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.checked-in {
    background-color: #22c55e;
}

.legend-color.not-checked-in {
    background-color: #f0f0f0;
}

/* Modal Styles for Profile */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    align-items: center;
justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 2001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 2rem;
border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
transition: all 0.2s;
}

.close-modal:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.password-tip {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .dashboard-main-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .top-bar-content,
    .header-content {
        padding: 0 1rem;
    }

    .header-nav-links {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 73px;
        z-index: 999;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        padding: 1rem;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-main-content {
        grid-template-columns: 1fr;
    }

    .focus-content-grid {
        grid-template-columns: 1fr;
    }

    /* 响应式设计 - 移动端适配 */
    @media (max-width: 768px) {
    .timer-circle {
    width: 220px;
    height: 220px;
    }


    
    .timer-display {
    font-size: 2.5rem;
    }
    }
    
    @media (max-width: 480px) {
    .timer-circle {
    width: 180px;
    height: 180px;
    }
    


    
    .timer-display {
    font-size: 2rem;
    }
    }

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

    .reports-details-grid {
        grid-template-columns: 1fr;
    }

    .profile-main-grid {
        grid-template-columns: 1fr;
    }

    .checkin-calendar-grid {
        grid-template-columns: repeat(5, 1fr);
    }

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

    .btn-add-task {
        width: 100%;
    justify-content: center;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-dropdown-wrapper {
        min-width: 100%;
    }

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

    .task-actions-modern {
        width: 100%;
        justify-content: space-between; /* 改为space-between而不是flex-end */
        margin-top: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .header-content {
        max-width: 100%;
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .header-nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
        gap: 0.3rem;
    }
    
    .nav-link i {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.8rem;
    }
    
    .header-nav-links {
        order: 3;
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
        gap: 0.2rem;
    }
    
    .header-language-selector {
        margin-right: 8px;
    }
    
    .language-select {
        min-width: 100px;
        padding: 5px 8px;
        font-size: 12px;
    }
}


    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .header-brand-name {
        display: none;
    }

    .user-name-header {
        display: none;
    }

    .welcome-greeting {
        font-size: 1.5rem;
    }

    .auth-container {
        padding: 1rem;
        background: white;
    }
.auth-card {
        box-shadow: none;
        padding: 1.5rem;
    }
.auth-links {
        flex-direction: column;
        gap: 1rem;
    }

    .auth-links a {
        text-align: center;
    }
}

/* Tasks List Grid Layout - 更紧凑的间距 */
.tasks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem; /* 从1.5rem减少到1rem */
    align-items: start;
}

/* Task Card Modern - 3:4 Aspect Ratio Card Design */
.task-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.25rem; /* 从1.5rem减少到1.25rem */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 从1rem减少到0.75rem */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    min-height: 260px; /* 从280px减少到260px */
    max-height: 340px; /* 从360px减少到340px */
}

/* 侧边颜色条 - 根据优先级显示不同颜色 */
.task-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4a6fa5, #22c55e); /* 默认颜色 */
    z-index: 1;
}

/* 高优先级 - 红色 */
.task-card-modern[data-priority="high"]::before {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
}

/* 中优先级 - 橙黄色 */
.task-card-modern[data-priority="medium"]::before {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
}

/* 低优先级 - 绿色 */
.task-card-modern[data-priority="low"]::before {
    background: linear-gradient(to bottom, #10b981, #059669);
}

/* 悬停动画效果 - 根据优先级显示不同的悬停颜色 */
.task-card-modern:hover::before {
    background: linear-gradient(to bottom, #3a5a8a, #16a34a); /* 默认悬停颜色 */
}

.task-card-modern[data-priority="high"]:hover::before {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
}

.task-card-modern[data-priority="medium"]:hover::before {
    background: linear-gradient(to bottom, #d97706, #b45309);
}

.task-card-modern[data-priority="low"]:hover::before {
    background: linear-gradient(to bottom, #059669, #047857);
}

/* 悬停动画效果 - 重新添加 */
.task-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.task-card-modern:hover::before {
    background: linear-gradient(to bottom, #3a5a8a, #16a34a);
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* 从1rem减少到0.75rem */
}

.task-checkbox-modern {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    background: white;
    position: relative;
    z-index: 2; /* 确保在侧边条之上 */
}

.task-checkbox-modern:checked {
    background-color: #4a6fa5;
    border-color: #4a6fa5;
}

.task-checkbox-modern:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task-title-modern {
    font-size: 1.15rem; /* 稍微减小字体大小 */
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    word-break: break-word;
    z-index: 2; /* 确保在侧边条之上 */
}

.task-description-modern {
    color: #64748b;
    font-size: 0.85rem; /* 稍微减小字体大小 */
    line-height: 1.4;
    margin: 0.25rem 0; /* 减少边距 */
    max-height: 3em; /* 减少最大高度 */
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 改为2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    z-index: 2; /* 确保在侧边条之上 */
}

.task-details-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 从0.75rem减少到0.5rem */
    margin-top: auto;
    z-index: 2; /* 确保在侧边条之上 */
}

/* 清理重复样式，只保留一个.task-detail-item定义 */
.task-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
    justify-content: flex-start;
    width: 100%;
    z-index: 2;
    text-align: left !important;
}

/* 确保所有子元素都左对齐 */
.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
    flex-shrink: 0;
}

/* 图标样式 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* 文字样式 - 确保严格左对齐 */
.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
    text-align: left !important;
    flex: 1; /* 让文字占据剩余空间 */
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
    text-align: left !important;
    flex: 1; /* 让文字占据剩余空间 */
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
    text-align: left !important;
    flex: 1; /* 让文字占据剩余空间 */
}

/* 删除所有重复的样式定义 */
.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

/* 删除.subject-dot样式，因为圆点已经被移除 */
.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
    text-align: left;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
    text-align: left;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
    text-align: left;
}

/* 删除重复的task-actions-modern样式定义，只保留一个 */
.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

.task-detail-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

.task-detail-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

.task-detail-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

.task-detail-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

.task-detail-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

.task-detail-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}

.task-detail-item {
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    z-index: 2;
}
    text-align: left !important;
    justify-content: flex-start !important;
}

.task-detail-item > * {
    text-align: left !important;
    margin-right: auto !important;
}

.task-subject-modern,
.task-due-date-modern,
.task-time-modern {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* 图标和文字严格左对齐 */
.task-detail-item i {
    color: #6b7280;
    width: 14px; /* 稍微减小图标宽度 */
    text-align: center;
    flex-shrink: 0;
}

.subject-dot {
    width: 10px; /* 从12px减少到10px */
    height: 10px; /* 从12px减少到10px */
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,0.8) 100%);
}

.task-subject-modern {
    color: #1e40af;
    font-size: 0.85rem; /* 从0.9rem减少到0.85rem */
    font-weight: 600;
    margin-left: 0;
}

.task-due-date-modern {
    color: #dc2626;
    font-size: 0.85rem; /* 从0.9rem减少到0.85rem */
    font-weight: 600;
    margin-left: 0;
}

.task-time-modern {
    color: #059669;
    font-size: 0.8rem; /* 从0.85rem减少到0.8rem */
    font-weight: 500;
    margin-left: 0;
}

.task-actions-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem; /* 从0.75rem减少到0.5rem */
    margin-top: auto;
    padding-top: 0.75rem; /* 从1rem减少到0.75rem */
    border-top: 1px solid #f1f5f9;
    z-index: 2; /* 确保在侧边条之上 */
}