:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --accent: #06b6d4;
    --accent-purple: #8b5cf6;
    --dark-bg: #090d16;
    --dark-card: #111827;
    --border-dark: #1f293d;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-light: #ffffff;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
}

* {
    box-sizing: border-box;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Top Sticky Glassmorphic Navbar */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
}

.nav-btn-logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
    color: #ffffff;
}

.btn-glow {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(6, 182, 212, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-dark {
    background: #111827;
    color: #ffffff;
}

.btn-dark:hover {
    background: #1f2937;
}

/* Common Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px;
}

.card {
    background: var(--card-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid #edf2f7;
    margin-bottom: 24px;
}

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

/* Badges & Tags */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 999px;
}

/* Alerts */
.alert {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error, .alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: #334155; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: #ffffff;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-help { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #e2e8f0; }

/* Modern Footer */
footer.site-footer {
    background: #090d16;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    max-width: 1240px;
    margin: 20px auto 0;
    font-size: 0.85rem;
    text-align: center;
    color: #64748b;
}

@media (max-width: 768px) {
    .nav-wrapper { flex-direction: column; gap: 14px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
}

/* ==========================================================================
   Profile Edit Form Layout Styles
   ========================================================================== */

.profile-edit-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.profile-edit-card {
    background: var(--card-light);
    border-radius: var(--radius-lg);
    padding: 34px 38px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid #edf2f7;
    margin-bottom: 24px;
}

.profile-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-edit-header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.profile-edit-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-section-divider {
    margin-top: 26px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-error-msg {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.file-attachment-preview {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.file-attachment-preview a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.file-attachment-preview a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .profile-edit-card {
        padding: 24px 18px;
    }
    .profile-grid-2 {
        grid-template-columns: 1fr;
    }
    .profile-edit-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

