/* ============================================
   S.N. Sen B.V. PG College - Admission Portal
   Custom Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a237e;
    --primary-dark: #0d1047;
    --primary-light: #3949ab;
    --secondary: #e65100;
    --secondary-dark: #bf360c;
    --secondary-light: #ff9800;
    --accent: #ff6f00;
    --success: #2e7d32;
    --warning: #f9a825;
    --danger: #c62828;
    --info: #0277bd;
    --light-bg: #f5f5f5;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.12);
    --header-gradient: linear-gradient(135deg, #1a237e 0%, #283593 50%, #303f9f 100%);
    --sidebar-gradient: linear-gradient(180deg, #e8eaf6 0%, #c5cae9 100%);
    --font-hindi: 'Noto Sans Devanagari', sans-serif;
    --font-english: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Global Reset ---------- */
* { box-sizing: border-box; }

body {
    font-family: var(--font-english);
    background-color: var(--light-bg);
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.hindi-text {
    font-family: var(--font-hindi);
}

/* ---------- College Header ---------- */
.college-header {
    background: var(--header-gradient);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 100;
}

.college-header .logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.college-header .college-logo {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 12px;
    text-align: center;
    border: 3px solid #c5cae9;
    flex-shrink: 0;
}

.college-header .college-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.college-header .college-info .tagline {
    font-size: 12px;
    opacity: 0.9;
    margin: 2px 0;
}

.college-header .badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.college-header .badge-item {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ---------- Instruction Banner ---------- */
.instruction-banner {
    background: linear-gradient(90deg, #e65100 0%, #ff8f00 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---------- Navigation Tabs ---------- */
.nav-tabs-section {
    background: #fff;
    padding: 12px 0;
    border-bottom: 2px solid #e0e0e0;
}

.nav-tabs-section .nav-btn {
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 4px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.nav-btn.btn-green { background: #2e7d32; }
.nav-btn.btn-blue { background: #1565c0; }
.nav-btn.btn-red { background: #c62828; }
.nav-btn.btn-orange { background: #e65100; }
.nav-btn.btn-purple { background: #6a1b9a; }
.nav-btn.btn-teal { background: #00695c; }
.nav-btn.btn-brown { background: #4e342e; }

/* ---------- Notice Section ---------- */
.notice-section {
    margin: 15px 0;
}

.notice-card {
    border-left: 5px solid;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 12px;
    position: relative;
    background: #fff;
    box-shadow: var(--card-shadow);
}

.notice-card.notice-red {
    border-left-color: #c62828;
    background: linear-gradient(90deg, #ffebee, #fff);
}

.notice-card.notice-green {
    border-left-color: #2e7d32;
    background: linear-gradient(90deg, #e8f5e9, #fff);
}

.notice-card.notice-blue {
    border-left-color: #1565c0;
    background: linear-gradient(90deg, #e3f2fd, #fff);
}

.notice-card.notice-orange {
    border-left-color: #e65100;
    background: linear-gradient(90deg, #fff3e0, #fff);
}

.notice-card .notice-icon {
    font-size: 16px;
    margin-right: 8px;
}

.notice-card .notice-title {
    font-weight: 700;
    color: inherit;
    font-size: 14px;
}

.notice-card .notice-text {
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.6;
}

.notice-card .badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e65100;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.seat-full-notice {
    background: linear-gradient(90deg, #1a237e, #283593);
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--card-shadow);
}

/* ---------- Right Sidebar ---------- */
.right-sidebar {
    position: sticky;
    top: 20px;
}

.login-card {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
}

.login-card .btn-login {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    width: 100%;
}

.login-card .btn-login:hover {
    background: #c5cae9;
    transform: scale(1.03);
}

.sms-card {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
    color: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
}

.sms-card .btn-sms {
    background: #fff;
    color: var(--secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.helpline-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--secondary);
}

.helpline-card h5 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 15px;
}

.helpline-card .helpline-group {
    margin-bottom: 12px;
}

.helpline-card .helpline-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 4px;
}

.helpline-card .helpline-number {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

/* ---------- PDF Viewer ---------- */
.pdf-viewer-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-top: 15px;
}

.pdf-viewer-section iframe {
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1a237e;
    color: #b0bec5;
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    margin-top: 30px;
}

.site-footer a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 12px;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer .powered-by {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.7;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8eaf6 0%, #fff3e0 100%);
    padding: 30px 15px;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

.login-box .login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-box .login-header h3 {
    color: var(--primary);
    font-weight: 700;
}

.login-box .login-header p {
    color: #777;
    font-size: 13px;
}

.login-box .form-label {
    font-weight: 600;
    color: #444;
    font-size: 13px;
}

.login-box .btn-primary-custom {
    background: var(--primary);
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.login-box .btn-primary-custom:hover {
    background: var(--primary-dark);
}

/* ============================================
   MULTI-STEP FORM
   ============================================ */

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.step-item .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.step-item .step-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26,35,126,0.3);
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-item.completed .step-number {
    background: var(--success);
    color: #fff;
}

.step-item.completed .step-label {
    color: var(--success);
}

.step-connector {
    width: 40px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 4px;
    border-radius: 2px;
    transition: background 0.3s;
}

.step-connector.active {
    background: var(--success);
}

/* Form Container */
.form-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Section Cards */
.form-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.form-section .section-header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section .section-header.blue-header {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.form-section .section-header.green-header {
    background: linear-gradient(90deg, var(--success) 0%, #43a047 100%);
}

.form-section .section-header.orange-header {
    background: linear-gradient(90deg, var(--accent) 0%, #ff8f00 100%);
}

.form-section .section-body {
    padding: 20px;
}

/* Form Fields */
.form-section .form-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
}

.form-section .form-label .required {
    color: #c62828;
    margin-left: 2px;
}

.form-section .form-control,
.form-section .form-select {
    font-size: 13px;
    border-radius: 6px;
    border: 1.5px solid #ccc;
    padding: 8px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.form-section .form-control.is-invalid {
    border-color: #c62828;
}

.form-section .invalid-feedback {
    font-size: 12px;
    color: #c62828;
}

/* Photo Upload */
.photo-upload-area {
    width: 150px;
    height: 180px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.photo-upload-area:hover {
    border-color: var(--primary);
    background: #e8eaf6;
}

.photo-upload-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-upload-area .upload-icon {
    font-size: 32px;
    color: #bbb;
}

.photo-upload-area .upload-text {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    text-align: center;
}

/* Address Same-as checkbox */
.same-address-check {
    background: #e8f5e9;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.same-address-check label {
    font-weight: 600;
    color: var(--success);
    cursor: pointer;
}

/* ---------- Academic Entry Card ---------- */
.academic-entry-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.academic-entry-card .entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.academic-entry-card .entry-title {
    font-weight: 700;
    color: var(--secondary);
    font-size: 15px;
}

.academic-entry-card .btn-remove-entry {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.academic-entry-card .btn-remove-entry:hover {
    background: #ffebee;
}

/* Marks Table */
.marks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.marks-table th {
    background: #e3f2fd;
    padding: 8px 10px;
    font-weight: 600;
    color: #333;
    border: 1px solid #bbdefb;
    font-size: 12px;
}

.marks-table td {
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
}

.marks-table td input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
}

.marks-table .btn-add-row {
    background: none;
    border: 1px dashed var(--secondary);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.marks-table .btn-add-row:hover {
    background: #e3f2fd;
}

/* ---------- Subject Selection ---------- */
.subject-category-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.subject-category-card .cat-header {
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-category-card .cat-header.major { background: #e8eaf6; color: #283593; border-bottom: 2px solid #3f51b5; }
.subject-category-card .cat-header.minor { background: #e0f2f1; color: #004d40; border-bottom: 2px solid #009688; }
.subject-category-card .cat-header.vocational { background: #fff3e0; color: #e65100; border-bottom: 2px solid #ff9800; }
.subject-category-card .cat-header.cocurricular { background: #fce4ec; color: #880e4f; border-bottom: 2px solid #e91e63; }

.subject-category-card .cat-body {
    padding: 15px;
}

.subject-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.subject-option:hover {
    background: #f5f5f5;
}

.subject-option.mandatory {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.subject-option.mandatory .form-check-input {
    pointer-events: none;
}

.subject-option .badge-mandatory {
    background: #2e7d32;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.subject-option .badge-optional {
    background: #1565c0;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.subject-counter {
    font-size: 13px;
    font-weight: 600;
}

.subject-counter .current { color: var(--primary); }
.subject-counter .limit { color: #666; }

/* ---------- Document Upload ---------- */
.document-upload-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.document-upload-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.document-upload-card .doc-icon {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--secondary);
    flex-shrink: 0;
}

.document-upload-card .doc-info {
    flex: 1;
}

.document-upload-card .doc-name {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.document-upload-card .doc-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.document-upload-card .doc-status {
    font-size: 12px;
    margin-top: 4px;
}

.document-upload-card .doc-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.doc-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.doc-status-badge.pending { background: #fff3e0; color: #e65100; }
.doc-status-badge.uploaded { background: #e3f2fd; color: #1565c0; }
.doc-status-badge.verified { background: #e8f5e9; color: #2e7d32; }
.doc-status-badge.rejected { background: #ffebee; color: #c62828; }

/* ---------- Preview Section ---------- */
.preview-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.preview-section .preview-header {
    background: #f5f5f5;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.preview-section .preview-header h6 {
    margin: 0;
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

.preview-section .btn-edit-section {
    background: none;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.preview-section .btn-edit-section:hover {
    background: var(--secondary);
    color: #fff;
}

.preview-section .preview-body {
    padding: 20px;
}

.preview-table {
    width: 100%;
    font-size: 13px;
}

.preview-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.preview-table td:last-child {
    color: #222;
}

/* Fee Breakdown */
.fee-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fee-breakdown-table th,
.fee-breakdown-table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
}

.fee-breakdown-table th {
    background: #f5f5f5;
    font-weight: 700;
}

.fee-breakdown-table .total-row {
    background: #e8f5e9;
    font-weight: 700;
    font-size: 16px;
}

.fee-breakdown-table .total-row td {
    color: var(--success);
}

/* ---------- Button Styles ---------- */
.btn-step {
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-step-next {
    background: var(--primary);
    color: #fff;
}

.btn-step-next:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-step-prev {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.btn-step-prev:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.btn-step-save {
    background: var(--success);
    color: #fff;
}

.btn-step-save:hover {
    background: #1b5e20;
    color: #fff;
}

.btn-final-submit {
    background: linear-gradient(135deg, var(--success) 0%, #1b5e20 100%);
    color: #fff;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46,125,50,0.3);
    transition: all 0.3s;
}

.btn-final-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,125,50,0.4);
}

.btn-final-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Declaration ---------- */
.declaration-box {
    background: #fffde7;
    border: 2px solid #f9a825;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.declaration-box h6 {
    color: #f57f17;
    font-weight: 700;
    margin-bottom: 10px;
}

.declaration-box .declaration-text {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   STUDENT DASHBOARD
   ============================================ */
.dashboard-wrapper {
    padding: 20px 0;
}

.dashboard-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.dashboard-sidebar .student-profile {
    background: var(--header-gradient);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.dashboard-sidebar .student-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: 3px solid rgba(255,255,255,0.3);
}

.dashboard-sidebar .student-name {
    font-size: 16px;
    font-weight: 700;
}

.dashboard-sidebar .student-id {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.dashboard-nav li a:hover,
.dashboard-nav li a.active {
    background: #e8eaf6;
    color: var(--primary);
    font-weight: 600;
}

.dashboard-nav li a i {
    width: 20px;
    text-align: center;
}

/* Status Cards */
.status-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.status-card .status-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.status-card .status-icon.bg-primary { background: #e8eaf6; color: var(--primary); }
.status-card .status-icon.bg-success { background: #e8f5e9; color: var(--success); }
.status-card .status-icon.bg-warning { background: #fff3e0; color: var(--accent); }
.status-card .status-icon.bg-info { background: #e3f2fd; color: var(--info); }

.status-card .status-info h6 {
    font-size: 12px;
    color: #888;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
}

.status-card .status-info .status-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #fff;
}

.timeline-item.completed::before { background: var(--success); }
.timeline-item.active::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(26,35,126,0.2); }
.timeline-item.pending::before { background: #bdbdbd; }

.timeline-item .timeline-date {
    font-size: 11px;
    color: #999;
}

.timeline-item .timeline-content {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* ============================================
   TOKEN PURCHASE MODAL
   ============================================ */
.token-purchase-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.course-type-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.course-type-option:hover {
    border-color: var(--primary);
    background: #e8eaf6;
}

.course-type-option.selected {
    border-color: var(--primary);
    background: #e8eaf6;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.course-type-option h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.course-type-option p {
    font-size: 12px;
    color: #777;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---------- Tablet (max 992px) ---------- */
@media (max-width: 992px) {
    .college-header .college-info h1 {
        font-size: 18px;
    }

    .step-item .step-label {
        display: none;
    }

    .step-connector {
        width: 20px;
    }

    /* Dashboard sidebar stacks above content on tablet */
    .dashboard-wrapper .col-lg-3 {
        margin-bottom: 20px;
    }

    /* Preview tables scroll horizontally */
    .preview-table,
    .fee-breakdown-table,
    .marks-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---------- Mobile landscape / small tablet (max 768px) ---------- */
@media (max-width: 768px) {
    .college-header {
        padding: 6px 0 !important;
    }

    .college-header .college-info h1 {
        font-size: 16px !important;
    }

    .college-header .college-info .tagline {
        font-size: 11px !important;
    }

    .college-header .college-logo {
        width: 42px !important;
        height: 42px !important;
        font-size: 9px !important;
    }

    .college-header .badges {
        display: none;
    }

    /* Compact header: stack logo + nav vertically */
    .college-header .container > .d-flex {
        flex-wrap: wrap;
        gap: 8px;
    }

    .college-header .logo-section {
        flex: 1 1 100%;
    }

    /* Header action badges/buttons wrap */
    .college-header .container > .d-flex > .d-flex {
        flex-wrap: wrap;
        gap: 6px !important;
        width: 100%;
        justify-content: flex-start;
    }

    .college-header .container > .d-flex > .d-flex .badge {
        font-size: 10px;
    }

    .college-header .container > .d-flex > .d-flex .btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Nav tabs wrap on mobile */
    .nav-tabs-section .nav-btn {
        font-size: 11px;
        padding: 6px 12px;
        margin: 3px;
    }

    .nav-tabs-section .container {
        text-align: left !important;
    }

    /* Form sections */
    .form-section .section-body {
        padding: 15px;
    }

    .form-section .section-header {
        font-size: 13px;
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Document upload cards stack */
    .document-upload-card {
        flex-direction: column;
        text-align: center;
    }

    .document-upload-card .doc-actions {
        margin-top: 10px;
    }

    /* Step buttons stack */
    .form-step > .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }

    .form-step > .d-flex.justify-content-between .d-flex.gap-2 {
        justify-content: flex-end;
    }

    .btn-step {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Status cards: 2 per row instead of 4 */
    .status-card {
        padding: 15px;
    }

    .status-card .status-info .status-value {
        font-size: 15px;
    }

    /* Timeline */
    .timeline {
        padding-left: 25px;
    }

    .timeline-item {
        padding-left: 15px;
    }

    /* Login page */
    .login-page-wrapper {
        padding: 20px 10px;
    }

    .login-box {
        padding: 25px 20px;
    }

    /* Right sidebar cards */
    .right-sidebar {
        position: static;
    }

    /* Helpline card */
    .helpline-card {
        padding: 15px;
    }

    /* Photo upload area */
    .photo-upload-area {
        width: 120px;
        height: 150px;
    }

    /* Academic entry cards */
    .academic-entry-card {
        padding: 15px;
    }

    .academic-entry-card .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Subject cards */
    .subject-category-card .cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
    }

    /* Preview sections */
    .preview-section .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Dashboard nav horizontal scroll option */
    .dashboard-sidebar .student-profile {
        padding: 20px 15px;
    }

    .dashboard-nav li a {
        padding: 10px 15px;
        font-size: 12px;
    }

    /* Quick action buttons in dashboard */
    .dashboard-wrapper .btn {
        font-size: 12px;
        padding: 10px 8px !important;
    }

    /* Marks table inputs */
    .marks-table td input,
    .marks-table td select {
        min-width: 80px;
    }

    /* Notice cards */
    .notice-card {
        padding: 12px 15px;
    }

    /* Course type options in modal */
    .course-type-option {
        padding: 15px;
    }

    /* PDF viewer */
    .pdf-viewer-section {
        padding: 15px;
    }

    /* Info & warning alerts */
    .info-alert,
    .warning-alert {
        font-size: 12px;
        padding: 10px 12px;
    }

    /* Declaration box */
    .declaration-box {
        padding: 15px;
    }

    .declaration-box .declaration-text {
        font-size: 12px;
    }

    /* Seat full notice */
    .seat-full-notice {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* ---------- Mobile portrait (max 576px) ---------- */
@media (max-width: 576px) {
    body {
        font-size: 13px;
    }

    .college-header .college-logo {
        width: 40px !important;
        height: 40px !important;
        font-size: 9px !important;
    }

    .college-header .college-info h1 {
        font-size: 13px !important;
    }

    .college-header .college-info .tagline {
        font-size: 10px !important;
    }

    /* Override inline header padding */
    .college-header {
        padding: 6px 0 !important;
    }

    .college-header .logo-section {
        gap: 10px;
    }

    /* Hide token/course badges on small phones */
    .college-header .container > .d-flex > .d-flex .badge {
        display: none;
    }

    /* Step indicator: even more compact */
    .step-indicator {
        padding: 15px 5px;
        gap: 0;
    }

    .step-item {
        padding: 6px 8px;
    }

    .step-item .step-number {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .step-connector {
        width: 12px;
        height: 2px;
    }

    /* Login box */
    .login-box {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .login-box .login-header h3 {
        font-size: 18px;
    }

    .login-box .btn-primary-custom {
        font-size: 14px;
        padding: 10px;
    }

    /* Form container full width */
    .form-container {
        padding: 0 10px;
    }

    .form-section .section-body {
        padding: 12px;
    }

    .form-section .section-header {
        font-size: 12px;
        padding: 8px 12px;
    }

    .form-section .form-label {
        font-size: 12px;
    }

    .form-section .form-control,
    .form-section .form-select {
        font-size: 12px;
        padding: 7px 10px;
    }

    /* Photo upload smaller */
    .photo-upload-area {
        width: 100px;
        height: 130px;
    }

    .photo-upload-area .upload-icon {
        font-size: 24px;
    }

    .photo-upload-area .upload-text {
        font-size: 9px;
    }

    /* Navigation buttons full width */
    .btn-step {
        padding: 8px 16px;
        font-size: 12px;
    }

    .btn-final-submit {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Index page: sidebar below main */
    .col-lg-9,
    .col-lg-3 {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Login card */
    .login-card {
        padding: 15px;
    }

    .login-card .btn-login {
        padding: 10px 20px;
        font-size: 14px;
    }

    .sms-card {
        padding: 12px;
    }

    /* Nav tabs: scroll horizontally */
    .nav-tabs-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 10px 0;
    }

    .nav-tabs-section .container {
        display: inline-flex;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 0 10px;
    }

    .nav-tabs-section .nav-btn {
        font-size: 10px;
        padding: 5px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Dashboard: compact status cards */
    .status-card {
        padding: 12px;
        gap: 10px;
    }

    .status-card .status-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 8px;
    }

    .status-card .status-info h6 {
        font-size: 10px;
    }

    .status-card .status-info .status-value {
        font-size: 14px;
    }

    /* Academic entry */
    .academic-entry-card {
        padding: 12px;
    }

    .academic-entry-card .entry-title {
        font-size: 13px;
    }

    /* Marks table: horizontal scroll */
    .marks-table {
        font-size: 11px;
    }

    .marks-table th {
        font-size: 10px;
        padding: 6px 4px;
    }

    .marks-table td {
        padding: 4px;
    }

    .marks-table td input,
    .marks-table td select {
        font-size: 11px;
        min-width: 70px;
        padding: 4px 6px;
    }

    /* Subject options */
    .subject-option {
        padding: 6px 10px;
    }

    /* Document upload cards */
    .document-upload-card {
        padding: 12px;
        gap: 10px;
    }

    .document-upload-card .doc-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .document-upload-card .doc-name {
        font-size: 13px;
    }

    /* Preview photo box - override inline 120x150px */
    .preview-section div[style*="width:120px"] {
        width: 90px !important;
        height: 110px !important;
    }

    /* Marks table column widths - override inline % widths */
    .marks-table th[style*="width:"] {
        width: auto !important;
    }

    /* Preview table */
    .preview-table td {
        padding: 5px 8px;
        font-size: 12px;
    }

    .preview-table td:first-child {
        width: 45%;
    }

    /* Fee breakdown */
    .fee-breakdown-table th,
    .fee-breakdown-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .fee-breakdown-table .total-row {
        font-size: 14px;
    }

    /* Footer */
    .site-footer {
        padding: 12px 0;
        font-size: 11px;
    }

    .site-footer a {
        margin: 0 6px;
        font-size: 11px;
    }

    /* Modals */
    .modal-dialog {
        margin: 10px;
    }

    /* Dashboard quick action primary button */
    .dashboard-wrapper a.btn.w-100 {
        font-size: 14px !important;
    }

    /* Instruction banner */
    .instruction-banner {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Notice badge */
    .notice-card .badge-new {
        font-size: 9px;
        padding: 2px 6px;
    }

    .notice-card .notice-title {
        font-size: 13px;
    }

    .notice-card .notice-text {
        font-size: 12px;
    }
}

/* ---------- Extra small (max 400px) ---------- */
@media (max-width: 400px) {
    .college-header .college-logo {
        width: 35px !important;
        height: 35px !important;
        font-size: 8px !important;
    }

    .college-header .college-info h1 {
        font-size: 12px !important;
    }

    .college-header {
        padding: 5px 0 !important;
    }

    .college-header .container > .d-flex > .d-flex .btn {
        font-size: 10px;
        padding: 3px 8px;
    }

    .step-item .step-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .step-item {
        padding: 4px 5px;
    }

    .step-connector {
        width: 8px;
    }

    .form-section .section-header {
        font-size: 11px;
        padding: 8px 10px;
    }

    .btn-step {
        padding: 7px 12px;
        font-size: 11px;
    }

    .login-box {
        padding: 15px 12px;
    }

    .login-box .login-header h3 {
        font-size: 16px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-light-custom { background: var(--light-bg) !important; }
.border-primary-custom { border-color: var(--primary) !important; }

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

.info-alert {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1565c0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-alert {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #e65100;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
    .form-section { box-shadow: none; border: 1px solid #ddd; }
}
