/* Student Enrollment System - Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #005B3D;
    --primary-dark: #00422c;
    --primary-light: #007a52;
    --primary-lighter: #f0f7f4;
    --hover: #005B3D;
    --secondary: #0070f3;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #e11d48;
    --warning: #f59e0b;
    --info: #3b82f6;
    --text-dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #005B3D, #00835a);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9, #06b6d4);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --purple: #5E2E5E;
    --purple-hover: #5E2E5E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hover);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-md {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: var(--purple) !important;
    color: white !important;
    border-color: var(--purple) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--purple-hover) !important;
    color: white !important;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--gradient-accent);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--purple) !important;
    color: white !important;
    border-color: var(--purple) !important;
}

.btn-ghost {
    background: var(--primary-lighter);
    color: var(--primary);
}

.btn-ghost:hover {
    background: var(--purple) !important;
    color: white !important;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 91, 61, 0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Validation Highlight */
.form-control:invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.form-control.invalid {
    border-color: var(--danger) !important;
    background-color: #fff1f2 !important;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Alerts / Flash Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* Navigation - Student */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--primary);
    padding: 0 24px;
    height: 140px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Document Checklist */
.doc-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.doc-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.doc-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.doc-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.doc-status-icon.uploaded {
    background: rgba(0, 91, 61, 0.1) !important;
    color: #00422c !important;
    /* Dark brand green */
}

.doc-status-icon.missing {
    background: #f8fafc;
    color: var(--text-muted);
}

.doc-status-icon.rejected {
    background: #fff1f2;
    color: var(--danger);
}

.doc-info {
    flex: 1;
}

.doc-label {
    font-weight: 800;
    color: #005B3D !important;
    /* Branded dark green */
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.doc-required {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger);
    text-transform: uppercase;
}

.doc-completed {
    font-size: 0.75rem;
    font-weight: 800;
    color: #005B3D;
    /* Branded green */
    text-transform: uppercase;
}

.doc-optional {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.doc-item .fas.fa-check-circle {
    color: #00422c !important;
    /* Dark green branded tick */
}

/* Review Headers */
.review-heading {
    color: #008000;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.navbar-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.navbar-nav a:hover {
    background: var(--hover-bg);
    color: var(--hover);
}

.navbar-nav a.active {
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 700;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}

.navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

/* Admin Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 2px solid var(--primary);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand h2 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.sidebar-brand .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.sidebar-nav {
    padding: 0 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-nav a:hover {
    background: var(--hover-bg);
    color: var(--hover);
}

.sidebar-nav a.active {
    background: var(--gradient-primary);
    color: white;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-nav .nav-section {
    padding: 16px 16px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-body {
    padding: 32px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Table */
.table-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 700;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--primary-lighter);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
    background: var(--gradient-primary);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps / Timeline */
.steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 32px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--border);
    color: var(--text-light);
    transition: var(--transition);
    flex-shrink: 0;
}



.step.active .step-number {
    background: var(--gradient-accent);
    /* Yellow/Amber for process */
    color: white;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.step.completed .step-number {
    background: var(--success);
    /* Green for completed */
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step.completed .step-label {
    color: var(--success);
}

.step-line {
    width: 30px;
    height: 2px;
    background: var(--border);
}

.step.completed+.step-line,
.step.active+.step-line {
    background: var(--primary);
}

/* Pipeline Board */
.pipeline {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    overflow-x: auto;
    min-width: 100%;
    align-items: flex-start;
}

.pipeline-column {
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 340px;
    min-width: 340px;
    min-height: 500px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
}

.pipeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.pipeline-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.pipeline-count {
    background: var(--white);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.pipeline-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: block;
    text-decoration: none;
    border-left: 5px solid var(--primary);
    position: relative;
}

.pipeline-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
    z-index: 10;
}

.pipeline-card .name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
    word-break: break-word;
}

.pipeline-card .course {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.pipeline-card .time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pipeline-card .time::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 0.7rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    border: 1px solid var(--border);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.modal-close:hover {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
    transform: rotate(90deg);
}

/* File Upload */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

.upload-zone i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    transition: var(--transition);
    padding-top: 17px;
}

.upload-zone:hover i {
    transform: translateY(-5px);
}

.upload-zone p {
    color: var(--text-light);
    margin-bottom: 0;
}

.upload-zone .main-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.3s ease;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-item:hover {
    border-color: rgba(0, 91, 61, 0.2);
    box-shadow: 0 4px 12px rgba(0, 91, 61, 0.08);
    transform: translateY(-1px);
}

.file-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 91, 61, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.file-item:hover .file-icon {
    background: var(--primary);
    color: white;
}

.file-info {
    flex: 1;
    min-width: 0;
    /* Ensures text truncation works if needed */
}

.file-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.file-remove {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #fff5f5 !important;
    border: none !important;
    color: #ff4d4f !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin-left: 8px;
}

.file-remove i {
    color: #ff4d4f !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.file-remove:hover {
    background: #ff4d4f !important;
    color: #ffffff !important;
}

.file-remove:hover i {
    color: #ffffff !important;
}

.change-selection-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    text-align: center;
    margin-top: 16px;
    display: inline-block;
    font-weight: 700;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.change-selection-link:hover {
    color: var(--hover);
    border-bottom-color: var(--hover);
}

.file-remove:hover {
    background: #fff1f2;
    transform: scale(1.1);
}

/* Linked document items (List style) */
.linked-doc-item {
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.linked-doc-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    background: var(--primary-lighter) !important;
}

/* Timeline (Activity Log) */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-action {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.timeline-details {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Search & Filters */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
}

.search-bar:focus-within {
    border-color: var(--primary);
}

.search-bar i {
    color: var(--text-muted);
}

.search-bar input {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    outline: none;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #f0f9ff 60%, #fdf4ff 100%);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 91, 61, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(128, 0, 128, 0.04) 0%, transparent 50%);
    animation: bgFloat 15s ease-in-out infinite;
}

@keyframes bgFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

.auth-card {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--primary);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.auth-logo h1 {
    font-size: 1.5rem;
    margin-top: 12px;
    color: var(--text-dark);
}

.auth-logo p {
    color: var(--text-light);
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--hover);
}

/* Documents Checklist */
.doc-checklist {
    display: grid;
    gap: 12px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.doc-status-icon {
    font-size: 1.3rem;
}

.doc-status-icon.uploaded {
    color: var(--success);
}

.doc-status-icon.missing {
    color: var(--danger);
}

.doc-status-icon.approved {
    color: var(--success);
}

.doc-status-icon.rejected {
    color: var(--warning);
}

.doc-info {
    flex: 1;
}

.doc-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.doc-required {
    font-size: 0.75rem;
    color: var(--danger);
}

.doc-optional {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .sidebar.open {
        width: 280px;
    }

    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .navbar-nav {
        display: none;
    }

    .admin-body {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pipeline {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-line {
        display: none;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* Notification dot */
.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    position: absolute;
    top: -2px;
    right: -2px;
    animation: pulse 2s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border: none;
    background: none;
}

.tab:hover {
    background: var(--purple);
    color: white;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 100;
}

/* Footer */
.footer {
    background: #fdfdfd;
    border-top: 2px solid var(--primary);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-section img {
    max-width: 220px;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 350px;
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--text-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer {
        padding: 40px 0 20px;
    }
}