* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Slideshow */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slideshow .slide.active {
    opacity: 1;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 60, 0.6);
    z-index: 1;
}

/* Auth Page */
.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    width: 100%;
    max-width: 460px;
    max-height: 95vh;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.portal-header {
    text-align: center;
    margin-bottom: 20px;
}

.college-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 8px;
}

.portal-header h1 {
    font-size: 22px;
    color: #1A3A6B;
    font-weight: 700;
    margin-bottom: 6px;
}

.portal-header p {
    font-size: 13px;
    color: #888;
}

h2 {
    font-size: 18px;
    color: #1A3A6B;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Form */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E5FA3;
    background: white;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1A3A6B, #2E5FA3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    padding: 10px 24px;
    background: white;
    color: #2E5FA3;
    border: 1.5px solid #2E5FA3;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #2E5FA3;
    color: white;
}

.btn-danger {
    padding: 10px 24px;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Messages */
.error-msg {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 18px;
}

.success-msg {
    color: #27ae60;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 18px;
}

.switch-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

.switch-text span {
    color: #2E5FA3;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f0f4f8;
    overflow-x: hidden;
}
/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1A3A6B 0%, #2E5FA3 100%);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo h2 {
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.sidebar-logo p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.sidebar-menu {
    padding: 16px 0;
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left: 3px solid #F0C060;
    padding-left: 21px;
}

.sidebar-menu li a .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 0;
    min-height: 100vh;
    width: calc(100% - 260px);
    overflow-y: auto;
}

/* Top Bar */
.topbar {
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar h3 {
    color: #1A3A6B;
    font-size: 18px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #1A3A6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* Page Content */
.page-content {
    padding: 32px;
    overflow-y: auto;
    height: calc(100vh - 60px);
}
/* Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #2E5FA3;
}

.stat-card h3 {
    font-size: 28px;
    color: #1A3A6B;
    font-weight: 700;
}

.stat-card p {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.card h3 {
    font-size: 16px;
    color: #1A3A6B;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending { background: #FFF3CD; color: #856404; }
.badge-verified { background: #D4EDDA; color: #155724; }
.badge-rejected { background: #F8D7DA; color: #721C24; }
.badge-approved { background: #D4EDDA; color: #155724; }
.badge-review { background: #D1ECF1; color: #0C5460; }

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f0f4f8;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1A3A6B;
    font-size: 13px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f4f8;
    color: #444;
}

.data-table tr:hover td {
    background: #fafcff;
}

/* Steps */
.steps {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.step {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #999;
    border-bottom: 3px solid #eee;
    font-weight: 500;
}

.step.active {
    color: #1A3A6B;
    border-bottom: 3px solid #2E5FA3;
    font-weight: 700;
}

.step.done {
    color: #27ae60;
    border-bottom: 3px solid #27ae60;
}

/* Progress Bar */
.progress-bar {
    background: #eee;
    border-radius: 20px;
    height: 8px;
    margin-bottom: 24px;
}

.progress-fill {
    height: 8px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1A3A6B, #2E5FA3);
    transition: width 0.3s;
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-info { background: #D1ECF1; color: #0C5460; border-left: 4px solid #17a2b8; }
.alert-success { background: #D4EDDA; color: #155724; border-left: 4px solid #28a745; }
.alert-warning { background: #FFF3CD; color: #856404; border-left: 4px solid #ffc107; }
.alert-danger { background: #F8D7DA; color: #721C24; border-left: 4px solid #dc3545; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 100%; height: auto; position: relative; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f0f4f8;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #dde6f5;
    color: #1A3A6B;
}

.tab-btn.active {
    background: linear-gradient(135deg, #1A3A6B, #2E5FA3);
    color: white;
}
.step.rejected {
    color: #c0392b;
    border-bottom: 3px solid #c0392b;
    font-weight: 700;
}