/* Professional Theme Variables */
:root {
    --primary-color: #0288d1;
    --primary-light: #e1f5fe;
    --secondary-color: #455a64;
    --text-color: #263238;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --border-color: #cfd8dc;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    --transition-speed: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Kafe Infotech Specifics */
    --primary: #0284C7;
    --accent: #8B5CF6;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);

    --tag-bg: #e3f2fd;
    --tag-color: #0288d1;
    --muted-text: #78909c;
    --progress-bg: #eceff1;
    --price-bg: #e8f5e9;
    --price-color: #2e7d32;
    --card-gradient-end: #ffffff;
    --primary-gradient: linear-gradient(135deg, #FF5100, #C81D77);
}

[data-theme="dark"] {
    --primary-color: #38bdf8;
    --primary-light: #0c4a6e;
    --secondary-color: #94a3b8;
    --text-color: #f1f5f9;
    --bg-color: #0f172a;
    --white: #1e293b;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --tag-bg: #0c4a6e;
    --tag-color: #38bdf8;
    --muted-text: #94a3b8;
    --progress-bg: #334155;
    --price-bg: #064e3b;
    --price-color: #34d399;
    --card-gradient-end: #1e293b;
}

/* Header Animations From Kafe Infotech */
@keyframes gamepad-auto-pop {

    0%,
    71.4% {
        transform: scale(1.1) rotate(-3deg);
    }

    80%,
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes gamepad-buttons-glow {

    0%,
    71.4% {
        filter: brightness(1.3) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }

    80%,
    100% {
        filter: brightness(1) drop-shadow(0 0 0px transparent);
    }
}

@keyframes bolt-auto-pulse {

    0%,
    20%,
    40%,
    60% {
        transform: scale(1) translateY(0);
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    }

    10%,
    30%,
    50%,
    71.4% {
        transform: scale(1.2) translateY(-5px);
        filter: drop-shadow(0 0 10px #FFEB3B);
    }

    80%,
    100% {
        transform: scale(1) translateY(0);
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    }
}

@keyframes drive-across-loop {
    0% {
        left: -60px;
        opacity: 1;
    }

    60% {
        left: 110%;
        opacity: 1;
    }

    60.1% {
        left: 110%;
        opacity: 0;
    }

    71.4% {
        left: -60px;
        opacity: 0;
    }

    100% {
        left: -60px;
        opacity: 0;
    }
}

@keyframes tyre-spin-fast {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes puff-smoke-loop {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    60% {
        transform: translate(-30px, -20px) scale(3);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* =========================================
   ID Card Modal Global Styles
   ========================================= */
.id-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.id-modal.show {
    opacity: 1;
    visibility: visible;
}

.id-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 95%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #1e293b;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #FF5100, #C81D77, #610094);
    z-index: 10;
}

/* Subtle Animated Background Shine */
.id-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 1;
}

.id-modal.show .id-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.id-card-inner {
    position: relative;
    z-index: 2;
    /* Above the shine */
    padding: 0;
}

.id-card-body {
    padding: 35px 30px 25px;
}

.id-card-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.id-card-logo-clean {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-clean {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.logo-text-clean {
    line-height: 1.15;
}

.kafe-text {
    font-weight: 900;
    font-size: 1.2rem;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.info-text {
    font-weight: 700;
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 2px;
}

/* 'Verified Intern' Badge Style */
.id-card-title-clean {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.id-card-title-clean i {
    font-size: 0.8rem;
}

.id-card-content-clean {
    display: flex;
    gap: 25px;
}

.id-photo-section {
    flex-shrink: 0;
    position: relative;
}

/* Photo Glow Effect */
.id-photo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 140px;
    background: radial-gradient(circle, rgba(200, 29, 119, 0.15) 0%, rgba(200, 29, 119, 0) 70%);
    z-index: -1;
}

.id-photo {
    width: 110px;
    height: 130px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 14px;
    border: 3px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: #94a3b8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), inset 0 2px 5px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

@media (max-width: 480px) {
    .id-card-content-clean {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .id-details-section {
        align-items: center;
    }

    .detail-grid {
        width: 100%;
    }

    .id-photo {
        width: 100px;
        height: 120px;
    }
}

.id-details-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-row.name-row h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.role-text {
    margin: 4px 0 15px 0;
    font-size: 0.85rem;
    color: #C81D77;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    background: rgba(200, 29, 119, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(241, 245, 249, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.grid-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
    word-break: break-all;
}

.highlight-value {
    color: #FF5100;
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.id-card-footer-clean {
    background: rgba(248, 250, 252, 0.6);
    padding: 18px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-barcode-clean {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.id-barcode-clean span {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: #64748b;
    font-weight: 700;
    margin-top: 4px;
}

.id-signature {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signature-name {
    font-family: 'Brush Script MT', 'Dancing Script', cursive;
    font-size: 26px;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 2px;
    text-transform: none;
    letter-spacing: 0;
}

.id-action-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #94a3b8;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.id-action-btn:hover {
    background: #f1f5f9;
    color: #ef4444;
    border-color: #cbd5e1;
}

.id-download-btn-clean {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF5100, #C81D77);
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 0 0 20px 20px;
}

.id-download-btn-clean:hover {
    opacity: 0.9;
    transform: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

/* =========================================
   Auth Layout (Login/Register)
   ========================================= */
body.auth-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-light);
    /* Solid light blue, no gradient */
}

/* Reuse existing container structure for Auth but flat style */
.auth-layout .container {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    /* Sharper corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    /* No animation */
}

.auth-layout h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed);
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--white);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

button:hover {
    background: #0277bd;
    /* Darker blue */
    transform: none;
    /* No movement */
    box-shadow: none;
}

.message {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.message.error {
    color: #d32f2f;
}

.message.success {
    color: #388e3c;
}

.toggle-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.toggle-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.toggle-text a:hover {
    text-decoration: underline;
}


/* =========================================
   Dashboard Layout (Top Nav + Content)
   ========================================= */
body.dashboard-layout {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* New Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10000;
    background: var(--glass-bg, var(--white));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border, var(--border-color));
    box-shadow: var(--premium-shadow, var(--shadow));
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 5px 10px;
    margin-right: 25px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    z-index: 2;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info h4 {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-color);
}

/* Theme Toggle */
#theme-toggle {
    background: var(--primary-light);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition-speed);
}

#theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 15px;
    }

    .nav-actions {
        gap: 10px;
    }

    .user-info {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .logo-text-container {
        display: none;
    }

    .logo {
        margin-right: 5px;
    }

    .nav-actions {
        gap: 5px;
    }

    #logoutBtn {
        padding: 6px 10px;
        min-width: unset;
        width: auto;
    }

    #logoutBtn span,
    #logoutBtn i+span {
        display: none;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    #theme-toggle {
        width: 30px;
        height: 30px;
    }

    .btn-outline {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Animations Styles */
.custom-console-icon {
    animation: gamepad-auto-pop 7s infinite ease-in-out;
}

.lightning-bolt {
    animation: bolt-auto-pulse 7s infinite ease-in-out;
}

.tyre-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.moving-tyre-container {
    position: absolute;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    animation: drive-across-loop 7s linear infinite;
}

.tyre-icon {
    width: 24px;
    height: 24px;
    animation: tyre-spin-fast 0.5s linear infinite;
}

.smoke {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(2, 132, 199, 0.2);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0;
}

.smoke-1 {
    left: -10px;
    top: 10px;
    animation: puff-smoke-loop 7s ease-out infinite;
}

/* Main Content Area */
.main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    background: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.top-actions {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    padding: 8px 16px;
    width: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.btn-outline:hover {
    background: #f5f5f5;
    color: var(--text-color);
    border-color: #b0bec5;
}

/* Dashboard Content */
.content-wrapper {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: #78909c;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

.chart-container {
    padding: 1.5rem;
    height: 400px;
    position: relative;
}

.chart-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Task List */
.task-list {
    display: grid;
    gap: 15px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.task-item:last-child {
    border-bottom: none;
}

.task-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.task-info p {
    font-size: 0.85rem;
    color: #78909c;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-active {
    background: #e3f2fd;
    color: #1565c0;
}

/* Responsive Dashboard */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .top-bar {
        padding: 1rem;
    }

    .content-wrapper {
        padding: 1rem;
    }
}

/* Course Page Styles */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.course-thumbnail {
    height: 160px;
    background: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.course-content {
    padding: 1.5rem;
}

.course-tag {
    background: var(--tag-bg);
    color: var(--tag-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.course-desc {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.progress-container {
    margin-bottom: 1rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: var(--muted-text);
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: var(--progress-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.course-btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.course-price {
    background: var(--price-bg);
    color: var(--price-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-buy {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: #01579b;
    /* Darker blue */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.order-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-summary h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 5px 0 0;
}

.pay-btn {
    margin-top: 1rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* =========================================
   INTERNSHIP PAGE STYLING
   ========================================= */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

/* Internship Card */
.course-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Icon Section */
.course-thumbnail {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light), var(--card-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

/* Content */
.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.course-desc {
    font-size: 0.9rem;
    color: #78909c;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Bottom Section (Price + Button) */
.course-content div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Price Badge */
.course-price {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Apply Button */
.course-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-buy {
    background: var(--primary-color);
    color: var(--white);
}

.btn-buy:hover {
    background: #01579b;
    transform: scale(1.05);
}

/* =========================================
   PAYMENT MODAL
   ========================================= */

/* ===== PAYMENT MODAL BACKGROUND ===== */
.modal {
    position: fixed;
    inset: 0;
    /* top:0; left:0; right:0; bottom:0 */
    background: rgba(0, 0, 0, 0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

/* Show Modal */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* ===== MODAL BOX ===== */
.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);

    transform: scale(0.8);
    transition: 0.3s ease;
}

/* Smooth Zoom Animation */
.modal.show .modal-content {
    transform: scale(1);
}

/* Buttons inside modal */
.modal-content button {
    padding: 10px 18px;
    margin: 10px 5px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

/* Confirm button */
.modal-content button:first-of-type {
    background: #28a745;
    color: white;
}

.modal-content button:first-of-type:hover {
    background: #218838;
}

/* Cancel button */
.modal-content button:last-of-type {
    background: #dc3545;
    color: white;
}

.modal-content button:last-of-type:hover {
    background: #c82333;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-content div {
        flex-direction: column;
        gap: 10px;
    }

    .course-price {
        width: 100%;
        text-align: center;
    }

    .course-btn {
        width: 100%;
    }
}

/* =========================================
   Custom Global Modal Styles
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    color: var(--text-color);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-icon.info {
    color: #0288d1;
}

.modal-icon.success {
    color: #4CAF50;
}

.modal-icon.error {
    color: #f44336;
}

.modal-icon.warning {
    color: #ff9800;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 10px;
}

.modal-message {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.modal-btn-primary {
    background: #0288d1;
    color: white;
}

.modal-btn-primary:hover {
    background: #01579b;
}

.modal-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.modal-btn-secondary:hover {
    background: #cbd5e1;
}