/* Programs Management - Student Portal */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    align-items: center;
}

.tab-group-label {
    background: none;
    border: none;
    padding: 12px 0;
    margin-right: 24px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    pointer-events: none;
}

.tabs .tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    margin-right: 8px;
}

.tabs .tab:hover {
    color: #333;
    background: rgba(102, 126, 234, 0.05);
}

.tabs .tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Program List */
#egm-student-programs-panel {
    animation: fadeIn 0.3s ease;
}

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

.program-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.program-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.program-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.program-card p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.program-card-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.program-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.loading {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Program Detail View */
.program-detail {
    animation: slideIn 0.3s ease;
}

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

.program-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.program-detail-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #667eea;
}

.program-detail-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs {
        gap: 8px;
    }

    .tabs .tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .tab-group-label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .program-card {
        padding: 12px;
    }

    .program-card h3 {
        font-size: 16px;
    }

    .program-card-meta {
        flex-direction: column;
        gap: 8px;
    }
}
