/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables & Reset */
:root {
    --bg-color: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --accent: #0891b2;
    --accent-glow: rgba(8, 145, 178, 0.15);
    --success: #059669;
    --success-glow: rgba(5, 150, 105, 0.15);
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.1);
    --transition-speed: 0.3s;
    --radius-lg: 16px;
    --radius-md: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

/* Glowing Background Blobs */
.background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    animation: float 20s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent);
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* Glass Card Container */
.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 680px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 
                0 0 50px -10px var(--primary-glow);
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-container:hover {
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.1), 
                0 0 60px -5px var(--primary-glow);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #1e293b, #4f46e5, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-info a:hover {
    color: #0891b2;
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Progress Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-50%);
    z-index: 1;
}

.step-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateY(-50%);
    z-index: 2;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80px;
}

.step-number {
    width: 38px;
    height: 38px;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s ease;
}

.step.active .step-number {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.step.completed .step-number {
    border-color: var(--success);
    color: white;
    background: var(--success);
    box-shadow: 0 0 15px var(--success-glow);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s ease;
}

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

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

/* Multi-step Form Content */
.form-step {
    display: none;
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
}

/* Form Fields Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

label span.required {
    color: var(--danger);
    margin-left: 0.2rem;
}

/* TextInput, Date, Select Styles */
.input-control {
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-speed);
}

.input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.15), 
                inset 0 0 5px rgba(79, 70, 229, 0.05);
    background: white;
}

.input-control::placeholder {
    color: var(--text-muted);
}

textarea.input-control {
    resize: vertical;
    min-height: 100px;
}

/* Date Input Fix for Light Mode */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-speed);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Custom Radio / Options Layout */
.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.option-card {
    position: relative;
    flex: 1 1 120px;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
    user-select: none;
}

.option-label:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: white;
}

.option-card input[type="radio"]:checked + .option-label {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.15);
    font-weight: 600;
}

/* Inline Checkbox Style (Declaration / Consent) */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    transition: all var(--transition-speed);
}

.checkbox-group:hover .checkbox-custom {
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.checkbox-custom::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom::after {
    display: block;
}

.checkbox-label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.checkbox-group input[type="checkbox"]:checked ~ .checkbox-label {
    color: var(--text-primary);
}

/* Buttons and Navigation */
.button-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 1rem;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    flex-grow: 1;
}

@media (min-width: 600px) {
    .btn-primary {
        flex-grow: 0;
        min-width: 160px;
    }
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Inline Input Validation Styles */
.form-group.invalid .input-control {
    border-color: var(--danger);
    box-shadow: 0 0 10px var(--danger-glow);
}

.form-group.invalid .option-label {
    border-color: var(--danger);
}

.form-group.invalid .checkbox-custom {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.4rem;
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.form-group.invalid .error-message {
    display: flex;
}

/* Success State Screen */
.success-screen {
    display: none;
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    padding: 1rem 0;
}

.success-screen.active {
    display: block;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 20px var(--success-glow);
}

.checkmark-icon {
    width: 30px;
    height: 18px;
    border-left: 4px solid var(--success);
    border-bottom: 4px solid var(--success);
    transform: rotate(-45deg);
    margin-bottom: 5px;
}

.success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 2rem auto;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Spinner Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 244, 246, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Company Logo Styling */
.company-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Payment Section Styling */
.subsection-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
}

/* Company Footer Styling */
.company-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    width: 100%;
    margin-bottom: 1.5rem;
}

.company-footer .contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    border: none;
    padding-bottom: 0;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Admin Dashboard Container */
.admin-container {
    max-width: 1200px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .admin-controls {
        width: auto;
    }
}

.search-input {
    min-width: 240px;
    flex-grow: 1;
}

.filter-select {
    min-width: 150px;
}

/* Table Design */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: rgba(79, 70, 229, 0.01);
}

/* Payment Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706; /* amber-600 */
}

.badge-approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.email-cell,
.college-cell,
.course-cell {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action button designs */
.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

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

/* View/Edit Modal overlay and contents */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    border: none;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
    .modal-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-item {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-primary);
}

.detail-value-full {
    grid-column: 1 / -1;
}

.screenshot-preview {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    display: block;
}

.screenshot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.screenshot-link:hover {
    text-decoration: underline;
}

/* Edit Status Row */
.edit-status-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Sidebar & Dashboard Layout */
body.admin-body {
    display: block;
    padding: 0;
    overflow-y: auto;
    background: #f4f5f7;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-logo {
    margin-bottom: 2.5rem;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-speed);
}

.menu-item a:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.menu-item.active a {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
    font-weight: 600;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.main-content {
    padding: 2.5rem;
    width: 100%;
    overflow-y: auto;
}

.admin-panel {
    display: none;
    animation: fadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-panel.active {
    display: block;
}

/* Stats Cards styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.stat-card.pending::before { background: #d97706; }
.stat-card.approved::before { background: var(--success); }
.stat-card.rejected::before { background: var(--danger); }

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Dashboard Panel Layout */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .dashboard-row {
        grid-template-columns: 2fr 1fr;
    }
}

.dashboard-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.dashboard-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding-bottom: 0.75rem;
}

.recent-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-student-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.recent-student-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.recent-activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Course Distribution List */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.course-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.course-count {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sidebar responsive behaviour for tablets and mobiles */
@media (max-width: 992px) {
    .admin-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        height: auto;
        position: relative;
        padding: 1.25rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-logo {
        margin-bottom: 0;
    }
    
    .sidebar-logo img {
        max-width: 130px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        gap: 0.5rem;
        flex-grow: 0;
    }
    
    .menu-item a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .sidebar-footer {
        padding-top: 0;
        border-top: none;
    }
    
    .sidebar-footer a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .sidebar-menu {
        justify-content: center;
    }
    
    .sidebar-footer {
        text-align: center;
    }
}


