/* ============================================
   KCOHST PORTAL - Core Institutional Design Framework
   Kadaurijin College of Health, Science & Technology
   ============================================ */

:root {
    --primary: #1a5f2a;
    --primary-dark: #124a1f;
    --primary-light: #2d8a42;
    --primary-lighter: #e8f5e9;
    --secondary: #c41e3a;
    --secondary-light: #e63950;
    --accent: #f4a261;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 12px -2px rgba(0,0,0,0.1), 0 3px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: #f0f2f5;
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.auth-card.wide { max-width: 720px; }

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

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px 30px 35px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 0; right: 0;
    height: 40px;
    background: var(--white);
    border-radius: 50% 50% 0 0;
}

.college-logo {
    width: 85px; height: 85px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 4px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 2.5rem;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-header .subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 400;
}

.auth-header .address {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 8px;
}

.auth-body { padding: 30px 35px 35px; }

/* User Type Selector */
.user-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.type-btn {
    flex: 1;
    padding: 14px 8px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.type-btn i { font-size: 1.4rem; transition: var(--transition); }

.type-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.type-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.type-btn.active i { transform: scale(1.1); }

/* Form Elements */
.form-group { margin-bottom: 20px; position: relative; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group { position: relative; }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    font-family: var(--font-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 95, 42, 0.1);
}

.form-control:focus + .input-icon,
.input-group:focus-within .input-icon { color: var(--primary); }

.form-control::placeholder { color: #adb5bd; }

select.form-control {
    padding-left: 15px;
    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='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea.form-control {
    padding-left: 45px;
    padding-top: 12px;
    min-height: 80px;
    resize: vertical;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray);
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
}

.password-toggle:hover { color: var(--primary); }

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--gray-light);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-weak { background: var(--danger); width: 33%; }
.strength-medium { background: var(--warning); width: 66%; }
.strength-strong { background: var(--success); width: 100%; }

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check-input {
    width: 18px; height: 18px;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
    user-select: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after { width: 300px; height: 300px; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 95, 42, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 42, 0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover { background: #dee2e6; transform: translateY(-1px); }

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

.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); }

.btn-danger {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    margin-top: 20px;
}

.auth-footer p { color: var(--gray); font-size: 0.9rem; }

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover { color: var(--primary-light); text-decoration: underline; }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--gray);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-light);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.4s ease-out;
    border-left: 4px solid transparent;
}

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

.alert i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

.alert-success { background: #d4edda; color: #155724; border-left-color: var(--success); }
.alert-danger { background: #f8d7da; color: #721c24; border-left-color: var(--danger); }
.alert-warning { background: #fff3cd; color: #856404; border-left-color: var(--warning); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left-color: var(--info); }

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Step Indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 30px;
}

.step { display: flex; align-items: center; gap: 8px; }

.step-number {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 95, 42, 0.2);
}

.step.completed .step-number { background: var(--success); color: var(--white); }

.step-label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
    display: none;
}

.step.active .step-label,
.step.completed .step-label { color: var(--primary); }

.step-line {
    width: 40px; height: 2px;
    background: var(--gray-light);
    margin: 0 8px;
    transition: var(--transition);
}

.step.completed + .step-line { background: var(--success); }

@media (min-width: 480px) { .step-label { display: block; } }

/* Step Content */
.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.4s ease-out; }

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

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.form-navigation .btn { width: auto; flex: 1; }

/* Two Column Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Section Title */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { font-size: 1rem; color: var(--primary-light); }

/* Type-specific fields */
.type-fields { animation: fadeIn 0.3s ease-out; }
.type-fields.hidden { display: none; }

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    width: 65px; height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(26, 95, 42, 0.4);
}

.sidebar-header h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.sidebar-header p { font-size: 0.8rem; opacity: 0.7; color: rgba(255,255,255,0.8); }

.nav-menu { list-style: none; padding: 15px 0; }
.nav-item { margin: 2px 12px; }

.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin: 2px 8px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 95, 42, 0.3);
}

.nav-link i { font-size: 1.1rem; width: 24px; text-align: center; }

.nav-link .badge-count {
    margin-left: auto;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 270px;
    background: #f0f2f5;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left h2 { font-size: 1.25rem; color: var(--dark); font-weight: 700; }
.top-bar-left p { color: var(--gray); font-size: 0.85rem; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info { text-align: right; }
.user-info .name { font-weight: 600; color: var(--dark); font-size: 0.95rem; }
.user-info .role { font-size: 0.8rem; color: var(--gray); }

.user-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.user-avatar.admin { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); }
.user-avatar.staff { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }

/* Page Content */
.page-content { padding: 25px 30px; }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i { color: var(--primary); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

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

.stat-icon {
    width: 55px; height: 55px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-icon.green { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.stat-icon.blue { background: rgba(23, 162, 184, 0.1); color: var(--info); }
.stat-icon.orange { background: rgba(244, 162, 97, 0.1); color: #e67e22; }
.stat-icon.red { background: rgba(220, 53, 69, 0.1); color: var(--danger); }
.stat-icon.purple { background: rgba(108, 92, 231, 0.1); color: #6c5ce7; }

.stat-card:hover .stat-icon { transform: scale(1.1); }

.stat-info h3 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1; }
.stat-info p { font-size: 0.85rem; color: var(--gray); font-weight: 500; }

/* Tables */
.table-container { overflow-x: auto; border-radius: var(--radius-sm); }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.data-table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    background: #f8f9fa;
    white-space: nowrap;
}

.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: #f8f9fa; }
.data-table td { font-size: 0.9rem; color: var(--dark); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.badge-warning { background: rgba(255, 193, 7, 0.1); color: #856404; }
.badge-danger { background: rgba(220, 53, 69, 0.1); color: var(--danger); }
.badge-info { background: rgba(23, 162, 184, 0.1); color: var(--info); }
.badge-primary { background: rgba(26, 95, 42, 0.1); color: var(--primary); }
.badge-secondary { background: rgba(108, 117, 125, 0.1); color: var(--gray); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.5s ease-out; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-light); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark); }

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-gray { color: var(--gray); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .top-bar { padding: 12px 15px; }
    .page-content { padding: 15px; }
    .auth-card { max-width: 100%; border-radius: 0; }
    .auth-card.wide { max-width: 100%; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-header { padding: 30px 20px 25px; }
    .auth-body { padding: 20px; }
    .user-type-selector { flex-direction: column; }
    .type-btn { flex-direction: row; justify-content: center; padding: 12px; }
    .form-navigation { flex-direction: column; }
    .form-navigation .btn { width: 100%; }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) { .menu-toggle { display: block; } }

/* Print Styles */
@media print {
    .sidebar, .top-bar, .menu-toggle, .btn { display: none !important; }
    .main-content { margin-left: 0; }
    .card { box-shadow: none; border: 1px solid var(--gray-light); }
}


.student-profile-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #198754; /* Beautiful FPN Green Theme border accents */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dashboard-passport {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-meta h2 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: #212529;
}

.student-meta p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
/* ==========================================================================
   STUDENT PORTAL - BIO DATA & PROFILE EDIT UNIFIED STYLES
   ========================================================================== */

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --card-bg: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

/* Page Layout Container */
.portal-container {
    padding: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
}

.portal-header {
    margin-bottom: 25px;
}

.portal-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 5px 0;
}

.portal-header .text-muted {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

/* Master View Cards */
.portal-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.02);
}

/* Integrated Profile Header Component */
.profile-view-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 25px;
}

.profile-view-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.profile-view-header h3 {
    font-size: 22px;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.profile-view-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* Grid Layout Architecture */
.info-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-field-group {
    display: flex;
    flex-direction: column;
}

.info-field-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-field-value {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
    padding: 4px 0;
}

/* Structural Dividers */
.section-divider {
    font-size: 16px;
    color: var(--primary-color);
    margin: 35px 0 20px 0;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Interactive Forms Input Styles */
.form-control-group {
    margin-bottom: 20px;
}

.form-control-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.portal-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.portal-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.portal-input:disabled {
    background-color: #e9ecef;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Primary Form Submission Actions */
.btn-portal-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-portal-submit:hover {
    background-color: var(--primary-hover);
}

.btn-portal-submit:active {
    transform: scale(0.98);
}

/* Responsive Structural Media Viewports */
@media (max-width: 768px) {
    .profile-view-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .info-display-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}