@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');
/**
 * Admission Tracking - Plugin Styles.
 *
 * @package    local_admission
 * @copyright  2026 Faneeza Muskan <faneeza.muskan@paktaleem.net>
 */

.admission-catalog {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(at 0% 0%, #4f46e5 0px, transparent 50%),
        radial-gradient(at 50% 0%, #7c3aed 0px, transparent 50%),
        radial-gradient(at 100% 0%, #2563eb 0px, transparent 50%),
        radial-gradient(at 0% 100%, #1e1b4b 0px, transparent 50%),
        #1e293b;
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p,
.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

/* Programs Container */
.programs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Grouping in Catalog */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    letter-spacing: -0.5px;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    border-radius: 2px;
}

.category-header i {
    color: #6366f1;
    background: #f5f3ff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
}

/* Program Card */
.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.program-banner {
    height: 180px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    text-align: center;
    padding: 20px;
    color: white;
}

.banner-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.program-info {
    padding: 25px;
}

.program-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.meta-item i {
    color: #6366f1;
}

.description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Semesters Dropdown */
.semesters-dropdown {
    margin-bottom: 25px;
}

.toggle-semesters {
    width: 100%;
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-semesters:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.semesters-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.semesters-list.active {
    max-height: 1000px;
    margin-top: 15px;
}

.semester-item {
    margin-bottom: 10px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.semester-header {
    padding: 12px 15px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.semester-header:hover {
    background: #f8fafc;
}

.semester-header.active {
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}

.semester-name {
    font-weight: 600;
    color: #1e293b;
}

.course-count {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
}

.courses-list {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.3s ease;
}

.courses-list.active {
    max-height: 500px;
    padding: 10px 0;
}

.course-item {
    padding: 8px 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.course-item:hover {
    background: #f1f5f9;
    border-left-color: #6366f1;
}

.course-main {
    font-size: 0.85rem;
    color: #334155;
}

.idnumber {
    color: #94a3b8;
    margin-left: 5px;
}

.course-syllabus {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

/* Footer Buttons */
.program-footer {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: #6366f1;
    color: white !important;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: scale(1.02);
}

.btn-secondary {
    background: white;
    color: #6366f1 !important;
    border: 1px solid #e0e7ff;
}

.btn-secondary:hover {
    background: #f5f3ff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Program Detail View Styles */
.program-detail-view {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeInUp 0.5s ease;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    color: #4f46e5;
}

/* Program Detail Hero Section */
.detail-hero {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 24px;
    padding: 60px 50px;
    color: white;
    margin-bottom: -40px;
    /* Overlap with stats board */
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1523050853063-8931a612953e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.program-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #ffffff;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.program-code {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Board */
.stats-board {
    position: relative;
    z-index: 10;
    background: white;
    margin: 0 50px 40px 50px;
    padding: 30px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border-right: 1px solid #f1f5f9;
}

.stat-pill:last-child {
    border-right: none;
}

.stat-pill i {
    font-size: 1.5rem;
    color: #6366f1;
    background: #f5f3ff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-info strong {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
}

/* Main Detail Grid Adjustments */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 20px;
}

.info-section {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border: 1px solid #f8fafc;
}

.info-section h3 {
    font-size: 1.5rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-section h3 i {
    color: #6366f1;
}

.outcomes-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.outcomes-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 500;
}

.outcomes-list li i {
    color: #10b981;
}

/* Entry Requirements */
.requirement-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.requirement-box h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement-box h6 i {
    color: #6366f1;
}

.requirement-box p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Enrollment Sidebar Styles */
.primary-actions {
    padding: 25px;
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #f1f5f9;
}

.main-btn {
    background: #6366f1 !important;
    border: none !important;
    padding: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease !important;
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.university-stats {
    background: #f8fafc !important;
    border: none !important;
}

.sidebar-title {
    font-size: 1.1rem !important;
    color: #1e293b !important;
    margin-bottom: 20px !important;
    font-weight: 750 !important;
}

.sidebar-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-stat-item:last-child {
    border-bottom: none;
}

.sidebar-stat-item .label {
    color: #64748b;
    font-size: 0.9rem;
}

.sidebar-stat-item .value {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}

.value.highlight {
    color: #6366f1;
}

.contact-link {
    display: block;
    margin-top: 15px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 700;
}

.info-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.info-section h3,
.semesters-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.info-section h3 i,
.semesters-section h3 i {
    color: #6366f1;
}

.description-full {
    color: #475569;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Semester Blocks */
.semester-block {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
}

.semester-block-header {
    background: #f8fafc;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.semester-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.semester-tag {
    background: #6366f1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.semester-block-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.semester-quick-facts {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.fee-badge {
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.semester-body {
    padding: 30px;
}

.semester-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item .label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 1rem;
    color: #334155;
    font-weight: 600;
}

.description-text {
    font-weight: 400 !important;
    line-height: 1.6;
    color: #475569;
}

.course-list-wrapper h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 15px;
    padding-left: 5px;
}

.course-list-wrapper h5 i {
    color: #6366f1;
}

/* Courses Table */
.courses-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.courses-table th {
    background: #f8fafc;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.courses-table th:last-child {
    border-right: none;
}

.courses-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    color: #475569;
    vertical-align: top;
}

.courses-table td:last-child {
    border-right: none;
}

.courses-table tr:last-child td {
    border-bottom: none;
}

.courses-table tr:hover td {
    background: #fcfdfe;
}

/* Sidebar Sidebar */
.sticky-card {
    position: sticky;
    top: 40px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.sticky-card h4 {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item .icon {
    width: 40px;
    height: 40px;
    background: #f5f3ff;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.summary-item strong {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.summary-item p {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
}

/* Teacher Cell Styles */
.teacher-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.teacher-cell .userpicture {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.teacher-info {
    display: flex;
    flex-direction: column;
}

.teacher-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.teacher-email {
    font-size: 0.8rem;
    color: #64748b;
}

/* Course Row Expandable Styles */
.course-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.course-row:hover {
    background: #f8fafc !important;
}

.toggle-icon {
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-icon.active {
    color: #6366f1;
    transform: rotate(90deg);
}

.course-details-row {
    background: #fdfefe;
}

.course-details-inner {
    padding: 15px 25px;
    background: #ffffff;
    border-top: 1px dashed #e2e8f0;
    /* Clear separator from the course row above */
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.details-grid h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.course-bio {
    width: 100%;
}

.syllabus-text {
    font-size: 0.93rem;
    line-height: 1.6;
    color: #475569;
}

.teacher-bio-section {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.teacher-location {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.teacher-location i {
    color: #ef4444;
    /* Location icon should be red-ish */
}

.teacher-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
}

.text-center {
    text-align: center;
}

.italic {
    font-style: italic;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .teacher-bio-section {
        padding-left: 0;
        border-left: none;
        padding-top: 25px;
        border-top: 1px solid #f1f5f9;
    }
}

/* Responsive detail view */
@media (max-width: 992px) {
    .stats-board {
        grid-template-columns: repeat(2, 1fr);
        margin: -40px 20px 40px 20px;
    }

    .stat-pill {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 10px 0;
    }

    .stat-pill:nth-child(2n) {
        border-right: none;
    }

    .detail-hero {
        padding: 40px 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-board {
        grid-template-columns: 1fr;
    }
}

.program-card {
    animation: fadeInUp 0.5s ease backwards;
}

.program-card:nth-child(2) {
    animation-delay: 0.1s;
}

.program-card:nth-child(3) {
    animation-delay: 0.2s;
}

.program-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Custom Scrollbar */
.semesters-list::-webkit-scrollbar {
    width: 6px;
}

.semesters-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.semesters-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.semesters-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Badge for ID Numbers */
.idnumber {
    font-size: 0.7rem;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .programs-container {
        grid-template-columns: 1fr;
    }
}

/* Receipt Styling */
.receipt-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 20px;
}

.receipt-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.receipt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

.receipt-header {
    padding: 40px;
    border-bottom: 2px dashed #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-logo img {
    max-height: 60px;
}

.receipt-title {
    text-align: right;
}

.receipt-title h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.5px;
}

.receipt-title p {
    color: #64748b;
    margin: 2px 0 0 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
}

.receipt-body {
    padding: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.info-box h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.info-box div {
    color: #334155;
    font-size: 1rem;
    font-weight: 600;
}

.info-box div span {
    display: block;
    color: #64748b;
    font-weight: 400;
    font-size: 0.875rem;
}

.fee-table-container {
    margin: 40px 0;
}

.fee-table-container h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.fee-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.fee-table .amount {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #0f172a;
}

.fee-table tfoot th {
    padding: 20px;
    background: #f8fafc;
    font-size: 1.25rem;
    color: #1e293b;
}

.receipt-footer {
    padding: 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.expiry-badge {
    padding: 6px 16px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-receipt-pay {
    background: #1e293b !important;
    color: white !important;
    padding: 16px 48px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    max-width: 400px !important;
    box-shadow: 0 10px 25px -5px rgba(30, 41, 59, 0.4) !important;
    text-align: center;
}

.btn-receipt-pay:hover {
    transform: translateY(-2px) !important;
    background: #0f172a !important;
    box-shadow: 0 20px 30px -5px rgba(30, 41, 59, 0.5) !important;
}

.btn-receipt-pay:active {
    transform: translateY(0) !important;
}

.course-list-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.course-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media print {
    .receipt-wrapper { padding: 0; background: white; }
    .receipt-card { box-shadow: none; border: none; max-width: 100%; }
    .receipt-footer { display: none; }
}

/* Course Selection Enhancements */
.course-selection-container {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.course-table th {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
}

.course-table td {
    padding: 16px;
    vertical-align: middle;
}

.table-required td {
    background-color: #f0fdf455;
}

.course-checkbox-container {
    display: flex;
    justify-content: center;
}

.course-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}

.course-checkbox:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

#credit-warning {
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

#credit-warning.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
}

.font-monospace {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}
