/* ===== GLOBAL STYLING ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top left, #dbeafe 0%, #eff6ff 45%, #f8fbff 100%);
}

.app-shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem 1rem 6rem;
    position: relative;
}

.app-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.16), rgba(37, 99, 235, 0.08) 45%, transparent 100%);
    border-radius: 32px;
    z-index: -1;
}

html, body {
    height: 100%;
}

body {
    background: linear-gradient(135deg, #0f4c81 0%, #1d4ed8 100%);
    color: #1d2939;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

main {
    min-height: 100vh;
    padding: 1rem;
    padding-bottom: 100px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NAVBAR/HEADER ===== */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0.7rem 1rem !important;
}

.navbar-brand {
    color: #343a40 !important;
    font-weight: 700;
    font-size: 1.3rem !important;
}

.nav-link {
    color: #6c757d !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, #0f4c81 0%, #1d4ed8 45%, #2563eb 100%);
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.2rem;
}

.login-card {
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    width: 100%;
    max-width: 430px;
    backdrop-filter: blur(10px);
}

.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.login-card h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
    text-align: center;
    font-weight: 800;
}

.login-card p {
    text-align: center;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.login-btn {
    background: linear-gradient(135deg, #16a34a 0%, #0f766e 100%);
    color: white;
    border: none;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.login-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.login-demo {
    margin-top: 1.3rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.9rem;
}

.login-demo span {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: #334155;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    border-color: #1c7ed6;
    box-shadow: 0 0 0 3px rgba(28, 126, 214, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
}

.login-card .btn {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* ===== APP HEADER ===== */
.app-header {
    background: #ffffff;
    color: #343a40;
    padding: 0.75rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.3rem;
    color: #ffffff;
    background: #007bff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.brand-block h1 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 800;
}

.brand-block p {
    font-size: 0.75rem;
    margin: 0;
    color: #6c757d;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.45rem 0.75rem;
    border-radius: 0.3rem;
    font-size: 0.84rem;
    font-weight: 600;
}

/* ===== DASHBOARD & PANELS ===== */
.hero-banner {
    background: linear-gradient(135deg, #16a34a 0%, #0f766e 55%, #1d4ed8 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    box-shadow: 0 18px 40px rgba(37,99,235,0.2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.18);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-copy h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.hero-copy p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

.hero-ornament {
    font-size: 2rem;
    opacity: 0.9;
}

.overview-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.overview-item {
    background: white;
    border-radius: 16px;
    padding: 0.8rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226,232,240,0.8);
}

.overview-label {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.overview-item strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.modern-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid rgba(191,219,254,0.9);
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
}

.dashboard-card {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 251, 0.9) 100%);
    border: 1px solid rgba(28, 126, 214, 0.15);
    padding: 1.2rem;
    min-height: 100px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.dashboard-card:hover::before {
    left: 100%;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(28, 126, 214, 0.15);
    border-color: rgba(28, 126, 214, 0.3);
}

.dashboard-card .label {
    font-size: 0.85rem;
    color: #667084;
    margin-bottom: 0.5rem;
}

.dashboard-card .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1c7ed6;
}

.attendance-panel,
.history-panel,
.assessment-panel,
.briefing-panel,
.profile-panel {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.attendance-panel:hover,
.history-panel:hover,
.assessment-panel:hover,
.briefing-panel:hover,
.profile-panel:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(28, 126, 214, 0.2);
}

.attendance-panel h2,
.history-panel h2,
.assessment-panel h2,
.briefing-panel h2,
.profile-panel h2 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: #1d2939;
    font-weight: 700;
}

.attendance-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #e7f5ff 0%, #d1e7f5 100%);
    color: #1864ab;
    border-radius: 20px;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(24, 100, 171, 0.15);
    border: 1px solid rgba(28, 126, 214, 0.2);
}

.attendance-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.5rem;
}

.info-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 8px 16px rgba(28, 126, 214, 0.12);
    border-color: rgba(28, 126, 214, 0.2);
    transform: translateY(-3px);
}

.info-card .title {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.info-card .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d2939;
}

.attendance-action {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.attendance-action .btn {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attendance-action .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.attendance-action .btn:active::before {
    width: 300px;
    height: 300px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #1c7ed6 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1971c2 0%, #2e5f9f 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(28, 126, 214, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #6b7280;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* ===== FORMS ===== */
.form-group label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.6rem;
    display: block;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #1c7ed6;
    box-shadow: 0 0 0 3px rgba(28, 126, 214, 0.1);
}

/* ===== TABLES ===== */
.history-panel table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.history-panel th,
.admin-table th {
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9rem;
}

.history-panel td,
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
}

.history-panel tbody tr:hover {
    background: #f9fafb;
}

/* ===== STATUS BADGES ===== */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill.Duty { background: #e6f4ff; color: #1864ab; }
.status-pill.OffShift { background: #f2f4ff; color: #4c51bf; }
.status-pill.Cuti { background: #fff4e6; color: #d97706; }
.status-pill.Izin { background: #f3f0ff; color: #7c3aed; }
.status-pill.Sakit { background: #ffe4e6; color: #dc2626; }

.badge-success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== ASSESSMENT/BRIEFING ===== */
.assessment-panel {
    text-align: center;
}

.question-text {
    font-size: 1.15rem;
    margin: 1.5rem 0;
    color: #1d2939;
    font-weight: 600;
}

.options-list {
    text-align: left;
    margin: 1.5rem 0;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    margin: 0.8rem 0;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.option-item:hover {
    border-color: #1c7ed6;
    background: linear-gradient(135deg, #f0f7ff 0%, #e7f5ff 100%);
    box-shadow: 0 6px 16px rgba(28, 126, 214, 0.15);
    transform: translateX(4px);
}

.option-item input {
    margin-right: 1rem;
    cursor: pointer;
    accent-color: #1c7ed6;
}

.option-item.selected {
    border-color: #1c7ed6;
    background: linear-gradient(135deg, #e7f5ff 0%, #d1e7f5 100%);
    box-shadow: 0 6px 20px rgba(28, 126, 214, 0.25);
    border-width: 2px;
}

/* ===== PROFILE PANEL ===== */
.profile-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1c7ed6 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #ffffff;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d2939;
    margin-bottom: 0.5rem;
}

.profile-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    margin: 1.5rem 0;
}

.profile-info p {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.profile-info p:last-child {
    border-bottom: none;
}

.profile-info .label {
    font-weight: 600;
    color: #6b7280;
}

.profile-info .value {
    color: #1d2939;
}

/* ===== CLOCK IN BUTTON PROMINENT STYLING ===== */
form[asp-action="ClockIn"] button[type="submit"] {
    min-height: 60px !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.35), inset 0 2px 8px rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
}

form[asp-action="ClockIn"] button[type="submit"]:not(:disabled):hover {
    background: linear-gradient(135deg, #ff6b7a 0%, #ff8fa3 100%) !important;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(255, 71, 87, 0.45), inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

form[asp-action="ClockIn"] button[type="submit"]:not(:disabled):active {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 71, 87, 0.35), inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

form[asp-action="ClockIn"] button[type="submit"]:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%) !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== SECTION HEADERS WITH VISUAL HIERARCHY ===== */
h3:not(.profile-name) {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-left: 12px;
}

h3:not(.profile-name)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, #1c7ed6 0%, #3b82f6 100%);
    border-radius: 2px;
}

/* ===== STATUS CARD IMPROVEMENTS ===== */
.attendance-status {
    animation: pulse-status 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-status {
    0%, 100% { box-shadow: 0 4px 12px rgba(24, 100, 171, 0.15); }
    50% { box-shadow: 0 6px 16px rgba(24, 100, 171, 0.25); }
}

/* ===== TAB STYLING ===== */
.tab-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-btn.active {
    color: #1c7ed6 !important;
    border-bottom-color: #1c7ed6 !important;
}

.tab-btn:hover:not(.active) {
    color: #1971c2;
    background: rgba(28, 126, 214, 0.05);
}

.tab-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOOTER ===== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226,232,240,0.9);
    padding: 0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.06);
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.6rem 0;
    gap: 0;
}

.footer-link {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.4rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 14px;
    margin: 0 0.25rem;
}

.footer-link:hover,
.footer-link.active {
    color: #15803d;
    background: #ecfdf3;
    transform: translateY(-2px);
}

.footer-link i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.footer-label {
    font-size: 0.72rem;
    display: block;
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    main {
        padding: 0.75rem;
        padding-bottom: 80px;
    }

    .dashboard-cards,
    .attendance-row {
        grid-template-columns: 1fr;
    }

    .attendance-panel,
    .history-panel,
    .assessment-panel,
    .briefing-panel,
    .profile-panel {
        border-radius: 16px;
        padding: 1.2rem;
    }

    .app-header {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .app-header .user-info {
        text-align: center;
    }

    .attendance-action {
        flex-direction: column;
    }

    .attendance-action .btn {
        width: 100%;
    }

    form[asp-action="ClockIn"] button[type="submit"] {
        min-height: 56px !important;
        font-size: 1.1rem !important;
    }

    .history-panel table {
        font-size: 0.9rem;
    }

    .history-panel th,
    .history-panel td {
        padding: 0.75rem 0.5rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .app-footer {
        height: 70px;
    }

    .footer-link {
        padding: 0.6rem;
    }

    .footer-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .app-header h1 {
        font-size: 1.1rem;
    }

    .attendance-row {
        gap: 0.8rem;
    }

    .info-card {
        padding: 0.8rem;
    }

    .attendance-panel h2,
    .assessment-panel h2,
    .briefing-panel h2 {
        font-size: 1.1rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .login-card {
        padding: 1.5rem 1.2rem;
    }
}

@media (min-width: 1200px) {
    .app-shell {
        max-width: 1200px;
        margin: 0 auto;
    }

    main {
        padding: 2rem;
    }
}

/* ===== HOME LAYOUT STYLES ===== */

/* Home Layout */
.home-main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.home-main-content.sidebar-open {
    margin-left: 280px;
}

/* Top Navigation Bar */
.home-top-bar {
    background: white;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-home {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s;
}

.breadcrumb-home:hover {
    color: #5a67d8;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: #1a1a1a;
    font-weight: 600;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Notifications */
.notification-bell {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.notification-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.1rem 0.4rem;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.notification-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.notification-link:hover {
    color: #5a67d8;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(102, 126, 234, 0.05);
    transition: all 0.2s;
}

.notification-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.notification-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #999;
}

.notification-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.user-dropdown-info {
    flex: 1;
}

.user-dropdown-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.user-dropdown-role {
    font-size: 0.85rem;
    color: #666;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(102, 126, 234, 0.1);
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
    color: #667eea;
}

.user-dropdown-item.logout {
    color: #ef4444;
}

.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}

/* Page Content */
.home-page-content {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Footer */
.home-footer {
    background: white;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-top-bar {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .breadcrumb {
        display: none;
    }

    .top-bar-right {
        gap: 0.5rem;
    }

    .notification-dropdown {
        width: 280px;
        right: -1rem;
    }

    .user-dropdown {
        width: 200px;
        right: -1rem;
    }

    .home-page-content {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-bottom {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 240px;
    }

    .user-dropdown {
        width: 180px;
    }

    .notification-item {
        padding: 0.75rem 1rem;
    }

    .user-dropdown-item {
        padding: 0.5rem 1rem;
    }
}
