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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
}

.navbar {
    height: 72px;
    background: rgba(15, 23, 42, 0.96);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: #38bdf8;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

.admin-btn {
    background: #2563eb;
    padding: 9px 16px;
    border-radius: 20px;
}

.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 7%;
    background:
        radial-gradient(circle at top right, rgba(56,189,248,0.25), transparent 35%),
        linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    gap: 40px;
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #bae6fd;
    padding: 9px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero p {
    font-size: 18px;
    color: #dbeafe;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 30px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 30px;
    font-weight: 700;
    margin-right: 14px;
}

.primary-btn {
    background: #38bdf8;
    color: #0f172a;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.45);
}

.hero-card {
    width: 360px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.hero-card h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.hero-card p {
    color: #dbeafe;
}

.mini-stat {
    display: flex;
    gap: 18px;
    margin-top: 30px;
}

.mini-stat div {
    background: rgba(255,255,255,0.14);
    padding: 18px;
    border-radius: 18px;
    width: 50%;
}

.mini-stat strong {
    display: block;
    font-size: 22px;
}

.mini-stat span {
    color: #cbd5e1;
    font-size: 13px;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title span {
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.section-title h2 {
    font-size: 34px;
    margin-top: 8px;
}

.courses,
.why {
    padding: 70px 7%;
}

.course-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 28px;
}

.course-card,
.why-box,
.form-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.08);
    transition: 0.3s;
}

.course-card:hover,
.why-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(15,23,42,0.14);
}

.icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.course-card h3,
.why-box h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #0f172a;
}

.course-card p,
.why-box p {
    color: #64748b;
    line-height: 1.6;
}

.course-card ul {
    margin: 18px 0;
    padding-left: 20px;
    color: #334155;
}

.course-card li {
    margin-bottom: 8px;
}

.course-card a {
    display: inline-block;
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 8px;
}

.why {
    background: #eef4ff;
}

.why-grid {
    grid-template-columns: repeat(3, 1fr);
}

.form-section {
    padding: 80px 7%;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.form-card {
    max-width: 520px;
    margin: auto;
    text-align: center;
}

.form-card h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.form-card p {
    color: #64748b;
    margin-bottom: 24px;
}

form input,
form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
}

form input:focus,
form select:focus {
    border-color: #2563eb;
}

form button {
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 28px;
}

footer h3 {
    margin-bottom: 8px;
}

footer p {
    color: #cbd5e1;
    margin: 4px 0;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-card {
        width: 100%;
    }

    .course-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}
.admin-section {
    padding: 60px 7%;
    min-height: 100vh;
    background: #f5f7fb;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.admin-header span {
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.admin-header h1 {
    font-size: 36px;
    color: #0f172a;
}

.back-btn {
    background: #0f172a;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
}

.table-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.08);
    overflow-x: auto;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th {
    background: #eff6ff;
    color: #1e3a8a;
    text-align: left;
    padding: 15px;
    font-size: 14px;
}

.table-card td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
}

.table-card tr:hover {
    background: #f8fafc;
}

.table-card a {
    color: #16a34a;
    font-weight: 700;
    text-decoration: none;
}

.course-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 7px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.empty-row {
    text-align: center;
    color: #64748b;
    padding: 30px !important;
}
/* =========================
   PORTAL LOGIN + DASHBOARD
========================= */
.login-body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, #2563eb 0, transparent 30%), linear-gradient(135deg, #020617, #0f172a 55%, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.login-wrapper {
    width: min(1050px, 92%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.login-left {
    color: white;
    padding: 35px;
}

.login-left h1 {
    font-size: 56px;
    margin: 18px 0 12px;
}

.login-left p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.6;
    max-width: 540px;
}

.login-info-box {
    margin-top: 28px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 18px;
    border-radius: 18px;
    color: #e2e8f0;
    line-height: 1.9;
}

.login-card {
    background: rgba(255,255,255,0.96);
    padding: 34px;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.login-card h2 {
    font-size: 30px;
    margin-bottom: 8px;
    color: #0f172a;
}

.login-card p {
    color: #64748b;
    margin-bottom: 24px;
}

.login-card label {
    display: block;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    margin-bottom: 17px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
}

.login-card input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.login-card button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.error-box {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 700;
}

.small-link {
    display: inline-block;
    margin-top: 18px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.portal-stat-card {
    background: white;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.08);
    border: 1px solid #e5e7eb;
}

.portal-stat-card span {
    color: #2563eb;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.portal-stat-card h2 {
    font-size: 34px;
    color: #0f172a;
    margin: 12px 0 6px;
}

.portal-stat-card p {
    color: #64748b;
}

.quick-panel,
.course-access-box,
.student-welcome-card {
    margin-top: 25px;
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.08);
}

.quick-panel a {
    display: inline-block;
    margin-right: 12px;
    margin-top: 12px;
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.student-section {
    padding: 55px 7%;
    background: #f8fafc;
    min-height: calc(100vh - 80px);
}

.student-welcome-card span {
    color: #2563eb;
    font-weight: 800;
    text-transform: uppercase;
}

.student-welcome-card h1 {
    color: #0f172a;
    font-size: 38px;
    margin: 12px 0 8px;
}

.thank-card {
    max-width: 430px;
    text-align: center;
}

@media (max-width: 850px) {
    .login-wrapper,
    .portal-card-grid {
        grid-template-columns: 1fr;
    }

    .login-left h1 {
        font-size: 38px;
    }
}


/* =========================
   STUDENT MANAGEMENT
========================= */
.admin-form-card {
    max-width: 620px;
    text-align: left;
}

.success-box {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 700;
}

.status-badge {
    background: #dcfce7;
    color: #166534;
    padding: 7px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

/* =========================
   STUDENT ACTION BUTTONS
========================= */
.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.action-cell {
    white-space: nowrap;
}

.mini-btn {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    margin: 2px;
}

.mini-btn.edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.mini-btn.reset {
    background: #fef3c7;
    color: #92400e;
}

.mini-btn.danger {
    background: #fee2e2;
    color: #991b1b;
}

.mini-btn.active {
    background: #dcfce7;
    color: #166534;
}

.mini-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15,23,42,0.12);
}

/* =========================
   COURSE ACCESS STEP 4
========================= */
.primary-link-btn {
    display: inline-block;
    margin-top: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 20px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 800;
}

.course-hero-card {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #dbeafe;
}

.lesson-panel {
    margin-top: 25px;
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.08);
    border: 1px solid #e5e7eb;
}

.lesson-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.lesson-panel-header span {
    color: #2563eb;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.lesson-panel-header h2 {
    margin: 6px 0 0;
    color: #0f172a;
}

.course-pill {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 999px;
}

.lesson-list {
    display: grid;
    gap: 14px;
}

.lesson-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
}

.lesson-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.lesson-info h3 {
    margin: 0 0 5px;
    color: #0f172a;
}

.lesson-info p {
    margin: 0;
    color: #64748b;
}

.lesson-btn {
    border: none;
    background: #16a34a;
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.coming-soon {
    background: #fef3c7;
    color: #92400e;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

@media (max-width: 700px) {
    .lesson-card {
        grid-template-columns: 1fr;
    }

    .lesson-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.primary-link-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(37,99,235,0.18);
}

.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-bar select {
    min-width: 240px;
}

.filter-bar a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.action-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-links a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.video-lesson-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
}

.video-player-box {
    margin-top: 24px;
    background: white;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 50px rgba(15,23,42,0.10);
}

.video-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.video-player-header h3 {
    margin: 0;
    color: #0f172a;
}

.video-player-header button {
    border: none;
    background: #ef4444;
    color: white;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.video-player-box iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 16px;
    background: #0f172a;
}

.empty-course-box {
    padding: 22px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 700px) {
    .video-lesson-card {
        grid-template-columns: 1fr;
    }

    .video-player-box iframe {
        min-height: 240px;
    }
}

.course-progress-summary {
    margin: 18px 0 22px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #dbeafe;
}

.course-progress-summary h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 22px;
}

.course-progress-summary p {
    margin: 0 0 14px;
    color: #64748b;
    font-weight: 700;
}

.progress-bar-box {
    width: 100%;
    height: 14px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.lesson-action-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lesson-action-box form {
    margin: 0;
}

.pending-btn,
.completed-btn {
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.pending-btn {
    background: #0f172a;
    color: white;
}

.completed-btn {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.completed-btn:hover,
.pending-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .lesson-action-box {
        justify-content: flex-start;
    }
}

/* STEP 7 - Exam Module */
.filter-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-box select,
.filter-box button,
.form-card select,
.form-card textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    font-family: inherit;
}

.filter-box button,
.exam-submit-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.wide-form-card {
    max-width: 850px;
}

.two-col-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.exam-form-card {
    max-width: 950px;
    margin: 25px auto;
}

.question-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.09);
    border: 1px solid #eef2ff;
}

.question-card h3 {
    color: #0f172a;
    margin-bottom: 16px;
}

.question-card label {
    display: block;
    padding: 12px 14px;
    margin: 8px 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
}

.exam-submit-btn {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    font-size: 16px;
}

.result-card {
    max-width: 560px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.result-card span {
    color: #2563eb;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-card h1 {
    font-size: 42px;
    color: #0f172a;
    margin: 10px 0;
}

.result-score {
    font-size: 64px;
    font-weight: 900;
    color: #16a34a;
    margin: 15px 0;
}

.secondary-link-btn {
    margin-left: 10px;
    background: #0f172a !important;
}

@media (max-width: 700px) {
    .two-col-form,
    .filter-box {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

/* =====================================================
   ACE INFOTECH - UDEMY STYLE STUDENT PORTAL UPGRADE
   Added by ChatGPT
===================================================== */
.ud-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 50px;
}

.ud-welcome {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f7f9ff);
    border: 1px solid #e8edf7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(20, 40, 80, 0.06);
}

.ud-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5872c8;
    margin-bottom: 6px;
}

.ud-welcome h1,
.ud-lms-topbar h1 {
    margin: 0;
    color: #16213e;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 750;
}

.ud-welcome p,
.ud-lms-topbar p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.ud-progress-ring {
    min-width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    border: 1px solid #dce6ff;
    color: #253b80;
}

.ud-progress-ring strong {
    font-size: 24px;
    line-height: 1;
}

.ud-progress-ring small {
    font-size: 12px;
    margin-top: 5px;
    color: #6b7280;
}

.ud-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 18px 0 26px;
}

.ud-mini-stat {
    background: #ffffff;
    border: 1px solid #e8edf7;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.045);
}

.ud-mini-stat span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-bottom: 6px;
}

.ud-mini-stat b {
    color: #18233f;
    font-size: 23px;
}

.ud-section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 4px 0 14px;
}

.ud-section-title-row h2 {
    margin: 0;
    color: #17233f;
    font-size: 22px;
}

.ud-small-link {
    color: #3149a1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.ud-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ud-course-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e6ebf5;
    border-radius: 18px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(20, 40, 80, 0.055);
    transition: 0.22s ease;
}

.ud-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(20, 40, 80, 0.10);
    border-color: #ccd8ff;
}

.ud-course-thumb {
    min-height: 128px;
    border-radius: 14px;
    background: linear-gradient(135deg, #edf3ff, #f9fbff);
    border: 1px solid #dfe8ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ud-course-thumb span {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #ffffff;
    color: #334aa3;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(30, 50, 100, 0.08);
}

.ud-course-label {
    color: #5872c8;
    font-size: 12px;
    font-weight: 800;
}

.ud-course-content h3 {
    margin: 5px 0 7px;
    color: #18233f;
    font-size: 18px;
    line-height: 1.3;
}

.ud-course-content p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.ud-card-progress {
    margin-top: 13px;
}

.ud-card-progress-bar {
    height: 7px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.ud-card-progress-bar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6d86ff, #8bb0ff);
}

.ud-card-progress small {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-size: 12px;
}

.ud-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    color: #3149a1;
    font-weight: 800;
    font-size: 13px;
}

.ud-empty-state {
    background: #ffffff;
    border: 1px solid #e8edf7;
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(20, 40, 80, 0.045);
}

.ud-empty-state h3 {
    color: #18233f;
    margin: 0 0 8px;
}

.ud-empty-state p {
    color: #667085;
}

/* LMS PLAYER */
.ud-lms-page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 20px 18px 48px;
}

.ud-lms-topbar {
    display: grid;
    grid-template-columns: 150px 1fr 210px;
    gap: 18px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e8edf7;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(20, 40, 80, 0.045);
    margin-bottom: 16px;
}

.ud-back-link {
    color: #3149a1;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.ud-lms-progress strong {
    display: block;
    font-size: 22px;
    color: #18233f;
}

.ud-lms-progress span {
    display: block;
    font-size: 12px;
    color: #667085;
    margin-bottom: 8px;
}

.ud-lms-shell {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 16px;
    min-height: 560px;
}

.ud-lesson-sidebar,
.ud-player-panel {
    background: #ffffff;
    border: 1px solid #e8edf7;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(20, 40, 80, 0.045);
}

.ud-lesson-sidebar {
    overflow: hidden;
}

.ud-sidebar-head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #eef2f7;
}

.ud-sidebar-head h3 {
    margin: 0;
    color: #18233f;
    font-size: 17px;
}

.ud-sidebar-head span {
    color: #667085;
    font-size: 12px;
}

.ud-lesson-list {
    max-height: 505px;
    overflow-y: auto;
    padding: 8px;
}

.ud-lesson-row {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 34px 1fr 24px;
    gap: 10px;
    align-items: center;
    text-align: left;
    padding: 11px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.18s ease;
}

.ud-lesson-row:hover {
    background: #f5f7ff;
}

.ud-lesson-row.active {
    background: #eef3ff;
}

.ud-lesson-index {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f8;
    color: #405070;
    font-size: 12px;
    font-weight: 800;
}

.ud-lesson-row.active .ud-lesson-index {
    background: #dfe7ff;
    color: #3149a1;
}

.ud-lesson-meta b {
    display: block;
    color: #18233f;
    font-size: 13px;
    line-height: 1.35;
}

.ud-lesson-meta small {
    display: block;
    color: #7b8496;
    font-size: 12px;
    margin-top: 3px;
}

.ud-lesson-done {
    color: #1f9d55;
    font-weight: 900;
}

.ud-lesson-pending {
    color: #aab2c5;
    font-weight: 900;
}

.ud-player-panel {
    padding: 16px;
}

.ud-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.ud-player-header h2 {
    margin: 0;
    color: #18233f;
    font-size: 21px;
    line-height: 1.3;
}

.ud-player-badge {
    background: #f3f6ff;
    color: #3149a1;
    border: 1px solid #dce6ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    white-space: nowrap;
}

.ud-video-frame-wrap {
    width: 100%;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.ud-video-frame-wrap iframe,
.ud-video-frame-wrap video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #0f172a;
}

.ud-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ud-complete-btn,
.ud-secondary-btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.ud-complete-btn {
    background: #3149a1;
    color: #ffffff;
}

.ud-complete-btn:hover {
    background: #263b86;
}

.ud-secondary-btn {
    background: #f1f4f9;
    color: #3f4a5f;
}

.ud-secondary-btn:hover {
    background: #e7ebf3;
}

.ud-note-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #fbfcff;
    border: 1px solid #eef2f7;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.ud-note-box b {
    color: #18233f;
}

@media (max-width: 900px) {
    .ud-welcome,
    .ud-section-title-row,
    .ud-player-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ud-stats-row,
    .ud-course-grid {
        grid-template-columns: 1fr;
    }

    .ud-course-card {
        grid-template-columns: 1fr;
    }

    .ud-course-thumb {
        min-height: 100px;
    }

    .ud-lms-topbar,
    .ud-lms-shell {
        grid-template-columns: 1fr;
    }

    .ud-lesson-list {
        max-height: 300px;
    }
}

/* =========================
   PREMIUM UDEMY STYLE COURSE CARDS
========================= */

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.premium-course-card {
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.course-thumb {
    position: relative;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tally-thumb {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.excel-thumb {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
}

.account-thumb {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
}

.course-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.12);
}

.tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0f172a;
    color: white;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.course-body {
    padding: 22px;
}

.course-category {
    color: #2563eb !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.premium-course-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.course-desc {
    font-size: 14px;
    min-height: 66px;
}

.rating {
    margin-top: 14px;
    font-size: 14px;
    color: #f59e0b;
    font-weight: 800;
}

.rating span {
    color: #334155;
    margin-left: 6px;
}

.course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.course-meta span {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price-row strong {
    font-size: 26px;
    color: #0f172a;
}

.price-row small {
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 700;
}

.buy-btn {
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-radius: 14px !important;
    font-weight: 900;
}

@media (max-width: 900px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}
