/* Matching Management Theme */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #a3bffa;
    --secondary: #f093fb;
    --accent: #764ba2;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --card-bg: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: all 0.2s ease;
}

.admission-home-container {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

/* User Application Status Alerts */
.user-applications-status {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.status-alert:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.status-alert.draft {
    border-left-color: var(--warning);
    background: linear-gradient(90deg, rgba(237, 137, 54, 0.05), var(--white));
}

.status-alert.rejected {
    border-left-color: var(--danger);
    background: linear-gradient(90deg, rgba(245, 101, 101, 0.05), var(--white));
}

.status-alert .alert-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}

.status-alert.draft .alert-icon {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning);
}

.status-alert.rejected .alert-icon {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger);
}

.status-alert .alert-content {
    flex: 1;
}

.status-alert .alert-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.status-alert .alert-message {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
}

.status-alert .alert-action {
    flex-shrink: 0;
}

/* Compact Header - Matching Management Theme */
.admission-header {
    background: var(--light);
    color: var(--dark);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--light-gray);
}

.admission-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admission-header .subtitle {
    margin: 2px 0 0 0;
    font-size: 11px;
    opacity: 0.9;
}

.admission-header .header-actions {
    display: flex;
    gap: 8px;
}

.admission-header .btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.admission-header .btn-primary {
    background: var(--primary);
    color: var(--dark);
    border: 1px solid var(--primary);
}

.admission-header .btn-primary:hover {
    background: var(--primary-dark);
    color: var(--dark);
    border-color: var(--primary-dark);
}

/* Compact Statistics Grid */
.admission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

/* Compact Program Navigation */
.program-nav {
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.nav-container {
    display: flex;
    gap: 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    flex: 1;
}

.nav-tab:hover {
    color: var(--primary);
    background: #f8f9fa;
}

.nav-tab.active {
    color: var(--primary);
    background: #f8f9fa;
    border-bottom-color: var(--primary);
}

.nav-tab i {
    font-size: 10px;
}

.tab-badge {
    background: var(--primary);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
}

/* Programs Section */
.programs-section {
    display: none;
}

.programs-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.section-subtitle {
    color: var(--gray);
    font-size: 11px;
    margin: 2px 0 0 0;
}

.header-actions {
    display: flex;
    gap: 6px;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.program-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.program-card.online-card {
    border-left: 3px solid var(--primary);
}

.program-card.session-card {
    border-left: 3px solid var(--warning);
}

/* Program Card Content */
.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.program-type-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
}

.program-type-badge.online {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.program-type-badge.session {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning);
}

.program-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.open {
    background: #fef3c7;
    color: #d97706;
}

.program-content {
    margin-bottom: 8px;
    flex: 1;
}

.program-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.program-department {
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    margin: 0 0 6px 0;
    padding: 2px 4px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 3px;
    display: inline-block;
}

/* Program Meta and Actions */
.program-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--gray);
    padding: 3px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 3px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.meta-item i {
    color: var(--primary);
    width: 8px;
    font-size: 8px;
}

.meta-item.duration {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-dark);
    font-weight: 600;
}

.program-description {
    margin-bottom: 6px;
    padding: 4px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 3px;
    border-left: 2px solid var(--primary-light);
    flex: 1;
}

.program-description p {
    color: var(--gray);
    font-size: 9px;
    line-height: 1.3;
    margin: 0;
}

.session-progress {
    margin-bottom: 6px;
    padding: 4px;
    background: rgba(255, 248, 240, 0.5);
    border-radius: 3px;
    border: 1px solid rgba(255, 228, 204, 0.3);
    flex-shrink: 0;
}

.progress-container {
    width: 100%;
    height: 3px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 8px;
    color: var(--gray);
    font-weight: 600;
}

.program-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.program-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 4px 6px;
    font-size: 9px;
    min-width: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 24px 12px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 32px;
    color: var(--gray);
    margin-bottom: 8px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.4;
}

/* Button Size Variants */
.btn-sm {
    padding: 4px 8px;
    font-size: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .admission-header .d-flex {
        flex-direction: column;
        gap: 12px;
    }
    
    .admission-header h1 {
        font-size: 16px;
    }
    
    .admission-header .subtitle {
        font-size: 10px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .status-alert {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    
    .status-alert .alert-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .status-alert .alert-title {
        font-size: 12px;
    }
    
    .status-alert .alert-message {
        font-size: 10px;
    }
    
    .status-alert .alert-action {
        width: 100%;
    }
    
    .status-alert .alert-action .btn {
        width: 100%;
    }
    
    .admission-header {
        padding: 10px 12px;
    }
    
    .nav-container {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav-tab {
        flex: 1;
        min-width: 120px;
        font-size: 11px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .section-subtitle {
        font-size: 10px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .program-card {
        padding: 10px;
    }
    
    .program-title {
        font-size: 13px;
    }
    
    .program-department {
        font-size: 10px;
    }
    
    .program-meta {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .meta-item {
        font-size: 10px;
        padding: 4px;
    }
    
    .program-description p {
        font-size: 10px;
    }
    
    .program-actions {
        flex-direction: row;
        gap: 6px;
    }
    
    .program-actions .btn {
        flex: 1;
        font-size: 10px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .admission-header {
        padding: 8px 10px;
    }
    
    .admission-header h1 {
        font-size: 14px;
    }
    
    .admission-header .subtitle {
        font-size: 9px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .status-alert {
        padding: 8px;
    }
    
    .program-card {
        padding: 8px;
    }
    
    .program-title {
        font-size: 12px;
    }
    
    .program-meta {
        gap: 4px;
    }
    
    .meta-item {
        font-size: 9px;
        padding: 3px;
    }
    
    .program-actions .btn {
        font-size: 9px;
        padding: 5px 6px;
    }
    
    .section-header {
        padding: 8px;
    }
    
    .section-title {
        font-size: 13px;
    }
}
