:root {
    --primary: #00695c;
    --primary-dark: #004d40;
    --primary-light: #e0f2f1;
    --accent: #00897b;
    --blue: #1565c0;
    --blue-light: #e3f2fd;
    --green: #2e7d32;
    --green-light: #e8f5e9;
    --purple: #6a1b9a;
    --purple-light: #f3e5f5;
    --orange: #e65100;
    --orange-light: #fff3e0;
    --text: #1a1a2e;
    --text-secondary: #5a5a7a;
    --text-light: #8a8aaa;
    --bg: #f5f7fa;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.page { display: none; }
.page.active { display: block; }
.section { display: none; }
.section.active { display: block; }

/* LOGIN PAGE */
.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.login-branding {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 480px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.logo-icon { width: 48px; height: 48px; }

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo-subtitle {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 400;
}

.login-hero-text h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.login-hero-text p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.7;
}

.login-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; opacity: 0.75; margin-top: 2px; }

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--white);
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    padding-left: 42px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { width: 16px; height: 16px; }

.login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.login-divider span {
    background: white;
    padding: 0 16px;
    color: var(--text-light);
    font-size: 13px;
    position: relative;
}

.login-footer-text {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

.login-footer-text a {
    color: var(--primary);
    text-decoration: none;
}

.login-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.login-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* TOP NAV */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.nav-brand {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-dark);
}

.nav-brand-sub {
    font-weight: 400;
    color: var(--text-light);
    font-size: 14px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--bg);
    color: var(--text);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-right { position: relative; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-user:hover { background: var(--bg); }

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 180px;
    overflow: hidden;
    z-index: 200;
}

.user-dropdown.show { display: block; }

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}

.user-dropdown a:hover { background: var(--bg); }

/* MAIN CONTENT */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    min-height: calc(100vh - 64px - 60px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-group select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--white);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon svg { width: 24px; height: 24px; }

.stat-card-icon.blue { background: var(--blue-light); color: var(--blue); }
.stat-card-icon.green { background: var(--green-light); color: var(--green); }
.stat-card-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-card-icon.orange { background: var(--orange-light); color: var(--orange); }

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    display: block;
    letter-spacing: -0.5px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* CARDS */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.card-link:hover { text-decoration: underline; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ACTIVITY LIST */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.approved { background: var(--green); }
.activity-dot.pending { background: var(--orange); }

.activity-info { flex: 1; }

.activity-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.activity-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-hours {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    white-space: nowrap;
}

/* ANNOUNCEMENTS */
.announcements-list { display: flex; flex-direction: column; gap: 16px; }

.announcement-item {
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.announcement-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.announcement-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.announcement-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
    display: block;
}

.announcement-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.announcement-badge.new {
    background: var(--green-light);
    color: var(--green);
}

/* REPORT FORM */
.report-card { max-width: 800px; }

.hours-display {
    padding: 11px 14px;
    background: var(--primary-light);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mood-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 10px 20px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.mood-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.mood-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* TABLE */
.table-container { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table tbody tr:hover { background: var(--bg); }

.data-table .comment-cell {
    max-width: 250px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-approved { background: var(--green-light); color: var(--green); }
.badge-pending { background: var(--orange-light); color: var(--orange); }
.badge-active { background: var(--primary-light); color: var(--primary); }

.table-empty {
    text-align: center;
    padding: 48px;
    color: var(--text-light);
}

.table-empty svg { width: 48px; height: 48px; margin-bottom: 12px; }
.table-empty p { margin-bottom: 16px; }

/* PROFILE */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.profile-header h3 { font-size: 20px; margin-bottom: 4px; }
.profile-id { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }

.profile-details { display: flex; flex-direction: column; gap: 14px; }

.profile-actions { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--border); }

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-label { color: var(--text-secondary); }
.detail-value { font-weight: 500; }

/* MILESTONES */
.milestones-list { display: flex; flex-direction: column; gap: 18px; }

.milestone {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.milestone-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: var(--bg);
    color: var(--text-light);
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.milestone.completed .milestone-icon {
    background: var(--green-light);
    color: var(--green);
    border-color: var(--green);
}

.milestone.active .milestone-icon {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.milestone strong { display: block; font-size: 14px; }
.milestone span { font-size: 13px; color: var(--text-secondary); }

.milestones-edit-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.milestone-edit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
}

.milestone-edit-item input { max-width: 100px; margin-bottom: 0; }
.milestone-edit-item .me-name { flex: 1; font-size: 14px; font-weight: 500; }
.milestone-edit-item .me-hours { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }

.milestone-edit-item .btn-delete {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.15s;
}

.milestone-edit-item .btn-delete:hover { color: #e53935; background: #ffebee; }

.milestone-add { padding-top: 12px; border-top: 1px solid var(--border); }

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* FOOTER */
.main-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 32px;
}

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

.footer-content p { font-size: 13px; color: var(--text-light); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover { color: var(--primary); }

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

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

.modal-icon { margin-bottom: 16px; }
.modal-icon svg { width: 56px; height: 56px; }
.modal-icon.success { color: var(--green); }
.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .login-container { flex-direction: column; }
    .login-left { padding: 32px; min-height: auto; }
    .login-hero-text h2 { font-size: 28px; }
    .login-stats { gap: 20px; }
    .login-right { padding: 32px; }
    .top-nav { padding: 0 16px; }
    .nav-links { display: none; }
    .main-content { padding: 20px 16px; }
    .form-row { flex-direction: column; gap: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .header-actions { flex-wrap: wrap; }
    .footer-content { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-stats { flex-direction: column; gap: 16px; }
    .mood-selector { flex-direction: column; }
}
