﻿body {
    background-color: #f5f7fb;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #111827 !important;
    padding: 12px 0;
}

.navbar-brand {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff !important;
}

.nav-link {
    color: #d1d5db !important;
    margin-right: 12px;
}

    .nav-link:hover {
        color: #ffffff !important;
    }

.body-content {
    background: #ffffff;
    margin-top: 25px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h1, h2, h3 {
    font-weight: bold;
    color: #111827;
}

.table {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

    .table th {
        background-color: #2563eb;
        color: white;
        vertical-align: middle;
    }

    .table td {
        vertical-align: middle;
    }

.btn {
    border-radius: 8px;
    padding: 8px 14px;
}

.btn-success {
    background-color: #16a34a;
    border-color: #16a34a;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-warning {
    background-color: #facc15;
    border-color: #facc15;
    color: #111827;
}

.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
}

.form-control,
input,
select,
textarea {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
}

    .form-control:focus,
    input:focus,
    select:focus,
    textarea:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

.star-rating {
    color: #facc15;
    font-size: 22px;
    font-weight: bold;
}

footer {
    margin-top: 30px;
    color: #6b7280;
}

img {
    border-radius: 8px;
}
.star-rating span {
    color: #ffc107 !important;
    font-size: 24px;
    font-weight: bold;
}

.panel {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}
.badge {
    padding: 6px 10px;
    border-radius: 12px;
    color: white;
}
.bg-primary {
    background-color: #2563eb;
}
.bg-danger {
    background: #dc2626;
    color: white;
}

.bg-success {
    background: #16a34a;
    color: white;
}
.profile-card {
    max-width: 1180px;
    margin: 40px auto;
    display: flex;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
}

.profile-sidebar {
    width: 300px;
    background: linear-gradient(180deg, #0f172a, #1e3a8a);
    color: white;
    text-align: center;
    padding: 35px 0;
    flex-shrink: 0;
}

.avatar-wrap {
    position: relative;
    width: 165px;
    height: 165px;
    margin: 0 auto;
}

.profile-avatar {
    width: 165px;
    height: 165px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.35);
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.camera-btn {
    position: absolute;
    right: 5px;
    bottom: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #facc15;
    color: #111827;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 3px solid white;
}

.profile-name {
    margin-top: 18px;
    margin-bottom: 4px;
    color: white;
    font-size: 22px;
}

.profile-role {
    color: #cbd5e1;
    margin-bottom: 28px;
}

.side-menu {
    display: block;
    padding: 16px 28px;
    text-align: left;
    color: #dbeafe;
    text-decoration: none;
    border-left: 4px solid transparent;
}

    .side-menu i {
        width: 24px;
        margin-right: 8px;
    }

    .side-menu.active,
    .side-menu:hover {
        background: rgba(255,255,255,0.12);
        border-left-color: #facc15;
        color: white;
    }

.side-link {
    cursor: pointer;
}

.profile-content {
    flex: 1;
    padding: 50px 70px;
}

    .profile-content h2 {
        font-size: 38px;
        color: #0f172a;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e5e7eb;
    }

    .profile-content h3 {
        font-size: 26px;
        color: #0f172a;
        margin-top: 20px;
    }

    .profile-content label {
        margin-top: 14px;
        margin-bottom: 6px;
        font-weight: 700;
        color: #111827;
    }

    .profile-content .form-control {
        height: 44px;
        border-radius: 10px !important;
        border: 1px solid #cbd5e1;
    }

    .profile-content hr {
        margin: 30px 0;
        border-color: #e5e7eb;
    }

.btn-save {
    margin-top: 24px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    border: none;
    padding: 13px 38px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(34,197,94,0.25);
}

    .btn-save:hover {
        background: linear-gradient(135deg, #15803d, #16a34a);
    }

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
    }

    .profile-content {
        padding: 30px;
    }
}
/* Instructor Dashboard đẹp hơn */
.instructor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.stat-card {
    border: none;
    border-radius: 18px;
    padding: 24px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

    .stat-card h3 {
        font-size: 34px;
        margin-bottom: 6px;
        color: white;
    }

    .stat-card p {
        margin: 0;
        opacity: 0.9;
    }

.stat-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.stat-green {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.stat-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-purple {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.dashboard-table th {
    background: #111827 !important;
    color: white;
    padding: 16px;
}

.dashboard-table td {
    padding: 18px;
    vertical-align: middle;
}

.dashboard-table tr:hover {
    background: #f8fafc;
}

.action-group a {
    display: block;
    margin-bottom: 8px;
    width: 120px;
}

.btn-icon {
    border-radius: 12px;
    font-weight: 600;
}
/* ===== ADMIN BEAUTIFUL UI ===== */

.admin-page h2 {
    font-size: 34px;
    margin-bottom: 22px;
}

.admin-stats .panel {
    border: none;
    border-radius: 18px;
    padding: 22px;
    min-height: 125px;
    box-shadow: 0 10px 25px rgba(15,23,42,0.12);
}

.admin-stats .col-md-3:nth-child(1) .panel {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.admin-stats .col-md-3:nth-child(2) .panel {
    background: linear-gradient(135deg, #dcfce7, #86efac);
}

.admin-stats .col-md-3:nth-child(3) .panel {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.admin-stats .col-md-3:nth-child(4) .panel {
    background: linear-gradient(135deg, #ede9fe, #c4b5fd);
}

.admin-stats h3 {
    font-size: 34px;
    font-weight: 800;
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .admin-menu .btn {
        min-width: 175px;
        border-radius: 14px;
        padding: 12px 18px;
    }

.table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

    .table th {
        background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
        padding: 15px !important;
    }

    .table td {
        padding: 14px !important;
    }

    .table tr:hover {
        background: #f8fafc;
    }

.btn {
    border-radius: 11px;
    font-weight: 600;
}

.badge {
    border-radius: 999px;
    font-size: 13px;
}
.card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.shadow-sm {
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.card-body {
    padding: 30px;
}

.btn-lg {
    margin: 6px;
    padding: 12px 20px;
    font-weight: 600;
}

.text-muted {
    color: #6b7280;
}
/* ===== COURSE CARD UI ===== */

.course-page {
    padding: 5px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

    .course-header h2 {
        font-size: 38px;
        margin-bottom: 5px;
        color: #0f172a;
    }

    .course-header p {
        color: #64748b;
        font-size: 16px;
    }

.course-search {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

    .course-search input {
        max-width: 320px;
    }

    .course-search select {
        max-width: 250px;
    }

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.course-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    transition: 0.25s ease;
}

    .course-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    }

.course-img-wrap {
    height: 180px;
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .course-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.no-img {
    font-size: 60px;
}

.course-body {
    padding: 22px;
}

.course-category {
    display: inline-block;
    background: #facc15;
    color: #111827;
    padding: 6px 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 14px;
}

.course-body h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0f172a;
}

.teacher {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 10px;
}

.desc {
    color: #64748b;
    min-height: 50px;
    line-height: 1.5;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
    font-weight: 600;
}

.price {
    color: #16a34a;
    font-weight: 800;
}

.btn-detail {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 13px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
}

    .btn-detail:hover {
        color: white;
        text-decoration: none;
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
    }

.pagination-custom {
    margin-top: 30px;
    font-weight: 700;
}

    .pagination-custom a {
        margin: 0 10px;
        color: #2563eb;
    }

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-search {
        flex-direction: column;
    }

        .course-search input,
        .course-search select {
            max-width: 100%;
        }
}
/* ===== CATEGORY BEAUTIFUL UI ===== */

.category-page {
    padding: 10px;
}

.category-header {
    margin-bottom: 30px;
}

    .category-header h2 {
        font-size: 38px;
        color: #0f172a;
    }

    .category-header p {
        color: #64748b;
        font-size: 16px;
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.category-card {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 35px rgba(15,23,42,.10);
    transition: .25s ease;
    overflow: hidden;
}

    .category-card::before {
        content: "";
        position: absolute;
        width: 140px;
        height: 140px;
        right: -40px;
        top: -40px;
        background: linear-gradient(135deg, #2563eb, #facc15);
        opacity: .15;
        border-radius: 50%;
    }

    .category-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 22px 45px rgba(15,23,42,.16);
    }

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0f172a;
}

.category-card p {
    color: #64748b;
    min-height: 48px;
}

.category-card a {
    display: inline-block;
    margin-top: 14px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

    .category-card a:hover {
        text-decoration: underline;
    }

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== MY COURSES BEAUTIFUL UI ===== */

.mycourse-header h2 {
    font-size: 36px;
    color: #0f172a;
}

.mycourse-header p {
    color: #64748b;
    margin-bottom: 28px;
}

.mycourse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.mycourse-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 14px 35px rgba(15,23,42,.10);
    border: 1px solid #e5e7eb;
    transition: .25s ease;
}

    .mycourse-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(15,23,42,.16);
    }

.mycourse-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

    .mycourse-top h3 {
        font-size: 23px;
        margin-bottom: 10px;
    }

.course-date {
    color: #64748b;
    margin-bottom: 16px;
}

.progress-wrap {
    margin: 18px 0;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress {
    height: 15px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    font-size: 11px;
    font-weight: 700;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    min-width: auto;
}

.mycourse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-action {
    padding: 11px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
}

    .btn-action:hover {
        color: white;
        text-decoration: none;
    }

    .btn-action.blue {
        background: #2563eb;
    }

    .btn-action.green {
        background: #16a34a;
    }

    .btn-action.yellow {
        background: #facc15;
        color: #111827;
    }

    .btn-action.disabled {
        background: #e5e7eb;
        color: #64748b;
    }

@media (max-width: 768px) {
    .mycourse-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== COURSE DETAIL BEAUTIFUL UI ===== */

.course-detail-page {
    padding: 5px;
}

.course-detail-hero {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 38px;
    align-items: stretch;
}

.course-detail-img {
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 15px 35px rgba(15,23,42,.12);
}

    .course-detail-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.course-detail-info {
    padding: 10px 0;
}

.course-detail-category {
    display: inline-block;
    background: #facc15;
    color: #111827;
    padding: 7px 15px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 14px;
}

.course-detail-info h2 {
    font-size: 40px;
    margin-bottom: 14px;
}

.course-detail-desc {
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

    .course-meta-grid div {
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        padding: 18px;
        border-radius: 18px;
    }

    .course-meta-grid span {
        display: block;
        color: #64748b;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .course-meta-grid strong {
        color: #0f172a;
        font-size: 16px;
    }

.detail-price {
    color: #16a34a !important;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-btn {
    padding: 13px 18px;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-weight: 800;
}

    .detail-btn:hover {
        color: white;
        text-decoration: none;
    }

    .detail-btn.green {
        background: #16a34a;
    }

    .detail-btn.blue {
        background: #2563eb;
    }

    .detail-btn.yellow {
        background: #facc15;
        color: #111827;
    }

.review-section {
    margin-top: 40px;
}

    .review-section h3 {
        font-size: 30px;
        margin-bottom: 20px;
    }

.review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(15,23,42,.08);
}

.review-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

    .review-top p {
        color: #64748b;
        margin: 4px 0 0;
    }

.star-rating span {
    color: #facc15 !important;
    font-size: 24px;
}

.review-comment {
    margin-top: 14px;
    color: #334155;
    line-height: 1.6;
}

.empty-review {
    background: #f8fafc;
    border-radius: 18px;
    padding: 25px;
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

@media (max-width: 992px) {
    .course-detail-hero {
        grid-template-columns: 1fr;
    }

    .course-meta-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== ADMIN COURSES CLEAN UI ===== */

.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

    .admin-list-header h2 {
        font-size: 36px;
        font-weight: 800;
    }

    .admin-list-header p {
        color: #64748b;
    }

.admin-table-card {
    border-radius: 20px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 12px 30px rgba(15,23,42,.10);
    background: white;
}
.admin-table {
    width: 100%;
    table-layout: auto;
}

    .admin-table th {
        background: #1d4ed8 !important;
        color: white;
        padding: 16px !important;
        font-size: 15px;
    }

    .admin-table td {
        padding: 16px !important;
        vertical-align: middle;
        font-size: 15px;
    }

    .admin-table tbody tr:hover {
        background: #f8fafc;
    }

    .admin-table th:nth-child(1),
    .admin-table td:nth-child(1) {
        width: 70px;
        text-align: center;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        width: 230px;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        width: 190px;
    }

    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        width: 190px;
    }

    .admin-table th:nth-child(5),
    .admin-table td:nth-child(5) {
        width: 140px;
        white-space: nowrap;
    }

    .admin-table th:nth-child(6),
    .admin-table td:nth-child(6) {
        width: 110px;
        text-align: center;
    }

    .admin-table th:nth-child(7),
    .admin-table td:nth-child(7) {
        width: 220px;
    }

.id-pill {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.category-pill {
    background: #fef3c7;
    color: #92400e;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
}

.price-text {
    color: #16a34a;
    font-weight: 800;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn-action {
    padding: 8px 12px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

    .btn-action.blue {
        background: #2563eb;
    }

    .btn-action.red {
        background: #dc2626;
    }

    .btn-action.yellow {
        background: #facc15;
        color: #111827;
    }

    .btn-action:hover {
        opacity: .9;
        color: white;
        text-decoration: none;
    }

.status-badge {
    padding: 7px 13px;
    border-radius: 999px;
    color: white;
    font-weight: 700;
    font-size: 13px;
}

    .status-badge.success {
        background: #16a34a;
    }

    .status-badge.danger {
        background: #dc2626;
    }
/* ===== ADMIN FORM UI ===== */

.form-page {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.form-card {
    width: 100%;
    max-width: 760px;
    background: white;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
    border: 1px solid #e5e7eb;
}

.form-header h2 {
    font-size: 34px;
    margin-bottom: 6px;
}

.form-header p {
    color: #64748b;
    margin-bottom: 28px;
}

.form-group-custom {
    margin-bottom: 22px;
}

    .form-group-custom label {
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 8px;
    }

    .form-group-custom .form-control {
        border-radius: 14px !important;
        padding: 13px 15px;
    }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.btn-action.green {
    background: #16a34a;
}

.btn-action.gray {
    background: #64748b;
}
.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

    .admin-list-header h2 {
        font-size: 36px;
        font-weight: 800;
    }

    .admin-list-header p {
        color: #64748b;
    }

.admin-table-card {
    border-radius: 20px;
    overflow: auto;
    box-shadow: 0 12px 30px rgba(15,23,42,.10);
    background: white;
}

.admin-table {
    width: 100%;
    table-layout: auto;
    margin: 0;
}

    .admin-table th {
        background: #1d4ed8 !important;
        color: white;
        padding: 16px !important;
    }

    .admin-table td {
        padding: 18px !important;
        vertical-align: middle;
    }

.id-pill {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.category-pill {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    display: inline-block;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 12px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

    .btn-action.blue {
        background: #2563eb;
    }

    .btn-action.red {
        background: #dc2626;
    }

    .btn-action:hover {
        color: white;
        text-decoration: none;
    }
.payment-method {
    background: #e0f2fe;
    color: #0369a1;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-block;
}
.rating-pill {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
}
/* ===== AUTH REGISTER / LOGIN UI ===== */

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 15px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.auth-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 26px;
    padding: 42px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
    border: 1px solid #e5e7eb;
}

.auth-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2563eb, #facc15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.auth-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

.auth-group {
    margin-bottom: 20px;
}

    .auth-group label {
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 8px;
    }

        .auth-group label i {
            color: #2563eb;
            margin-right: 7px;
        }

    .auth-group .form-control {
        height: 54px;
        border-radius: 15px !important;
        border: 1px solid #cbd5e1;
        padding: 12px 15px;
        font-size: 15px;
    }

        .auth-group .form-control:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
        }

.auth-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
    transition: 0.25s;
}

    .auth-btn:hover {
        transform: translateY(-2px);
        color: #ffffff;
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
    }

.auth-link {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
}

    .auth-link a {
        color: #2563eb;
        font-weight: 800;
        text-decoration: none;
    }

        .auth-link a:hover {
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .auth-card {
        padding: 28px;
    }

    .auth-title {
        font-size: 28px;
    }
}
.auth-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

    .auth-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #2563eb;
        background: white;
        box-shadow: 0 12px 25px rgba(37,99,235,.2);
    }
.upload-box {
    position: relative;
    border: 2px dashed #93c5fd;
    background: #eff6ff;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
}

    .upload-box:hover {
        background: #dbeafe;
        border-color: #2563eb;
    }

    .upload-box input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.upload-content i {
    font-size: 42px;
    color: #2563eb;
    margin-bottom: 10px;
}

.upload-content strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
}

.upload-content span {
    color: #64748b;
}

.course-preview {
    display: none;
    margin-top: 18px;
    width: 280px;
    height: 170px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid white;
    box-shadow: 0 12px 28px rgba(15,23,42,.18);
}
/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    list-style: none;
    padding-left: 0;
}

    .pagination li {
        display: inline-block;
    }

        .pagination li a,
        .pagination li span {
            display: block;
            min-width: 42px;
            height: 42px;
            line-height: 42px;
            text-align: center;
            border-radius: 12px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            color: #2563eb;
            font-weight: 600;
            text-decoration: none;
            transition: all .3s;
        }

            .pagination li a:hover {
                background: #2563eb;
                color: white;
                transform: translateY(-2px);
            }

    .pagination .active span {
        background: linear-gradient(135deg,#2563eb,#1d4ed8);
        color: white;
        border: none;
        box-shadow: 0 5px 15px rgba(37,99,235,.3);
    }

    .pagination .disabled span {
        background: #f3f4f6;
        color: #9ca3af;
    }
/* ===== HOME HERO BEAUTIFUL ===== */

.home-hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    border-radius: 28px;
    padding: 55px 60px;
    margin: 28px 0 50px;
    color: white;
    overflow: hidden;
    position: relative;
}

    .home-hero::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        right: -90px;
        top: -90px;
        background: rgba(250, 204, 21, 0.18);
        border-radius: 50%;
    }

    .home-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        left: -70px;
        bottom: -90px;
        background: rgba(59, 130, 246, 0.35);
        border-radius: 50%;
    }

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 45px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #facc15;
    color: #111827;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero-left h1 {
    font-size: 54px;
    line-height: 1.12;
    font-weight: 900;
    color: white;
    margin-bottom: 22px;
}

    .hero-left h1 span {
        color: #facc15;
    }

.hero-left p {
    font-size: 18px;
    line-height: 1.7;
    color: #dbeafe;
    max-width: 640px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-btn {
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
}

    .hero-btn.primary {
        background: #facc15;
        color: #111827;
    }

    .hero-btn.outline {
        border: 2px solid rgba(255,255,255,.65);
        color: white;
    }

    .hero-btn:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }

.hero-stats {
    display: flex;
    gap: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.2);
}

    .hero-stats strong {
        display: block;
        color: #facc15;
        font-size: 30px;
        font-weight: 900;
    }

    .hero-stats small {
        color: #dbeafe;
    }

.hero-right {
    display: flex;
    justify-content: center;
}

    .hero-right img {
        width: 100%;
        max-width: 440px;
        height: 330px;
        object-fit: cover;
        border-radius: 26px;
        border: 6px solid rgba(255,255,255,.25);
        box-shadow: 0 25px 60px rgba(0,0,0,.35);
    }

@media (max-width: 992px) {
    .home-hero {
        padding: 35px 25px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-left h1 {
        font-size: 38px;
    }

    .hero-right img {
        height: 240px;
    }
}
.payment-page {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background: #f3f6fb;
}

.payment-card {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

    .payment-card h2 {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 8px;
        color: #0f172a;
    }

.payment-subtitle {
    color: #64748b;
    margin-bottom: 28px;
}

.payment-info {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

    .payment-row:last-child {
        border-bottom: none;
    }

    .payment-row span {
        color: #475569;
        font-weight: 600;
    }

    .payment-row strong {
        color: #111827;
    }

    .payment-row .amount {
        color: #16a34a;
        font-size: 20px;
    }

.payment-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-pay-vnpay,
.btn-pay-cash,
.btn-back {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.btn-pay-vnpay {
    background: #2563eb;
    color: white;
}

.btn-pay-cash {
    background: #16a34a;
    color: white;
}

.btn-back {
    background: #e5e7eb;
    color: #111827;
}
.forgot-page {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f6fb;
    padding: 40px 20px;
}

.forgot-card {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.forgot-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
}

.forgot-card h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.forgot-subtitle {
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}

.forgot-card .form-label {
    display: block;
    text-align: left;
    font-weight: 700;
    color: #334155;
}

.forgot-input {
    height: 48px;
    border-radius: 14px;
}

.btn-send-otp {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 13px;
    background: #2563eb;
    color: white;
    font-weight: 800;
    margin-top: 8px;
}

    .btn-send-otp:hover {
        background: #1d4ed8;
    }

.forgot-footer {
    margin-top: 24px;
}

    .forgot-footer a {
        color: #2563eb;
        text-decoration: none;
        font-weight: 700;
    }
.form-control-lg {
    height: 55px;
}

.card {
    transition: 0.3s;
}

    .card:hover {
        transform: translateY(-3px);
    }

.btn-primary {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    border: none;
}

    .btn-primary:hover {
        opacity: 0.9;
    }
.intro-page {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    padding: 40px 0;
    min-height: 80vh;
}

.intro-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.intro-title {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
}

.intro-subtitle {
    color: #4f46e5;
    font-weight: 700;
    margin-top: 25px;
}

.intro-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.intro-card ul {
    margin-top: 10px;
}

.intro-card li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #374151;
}

.highlight-box {
    background: #eef2ff;
    border-left: 5px solid #4f46e5;
    padding: 18px;
    border-radius: 12px;
    margin: 25px 0;
    color: #374151;
}
.related-section {
    margin-top: 45px;
}

    .related-section h3 {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 25px;
        color: #071736;
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.related-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: 0.3s;
}

    .related-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
    }

    .related-card img {
        width: 100%;
        height: 155px;
        object-fit: cover;
    }

.related-body {
    padding: 18px;
}

.related-category {
    display: inline-block;
    background: #ffcc00;
    color: #071736;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.related-body h4 {
    font-size: 18px;
    font-weight: 800;
    color: #071736;
    margin-bottom: 8px;
}

.related-body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
}

.related-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
    font-size: 14px;
}

    .related-info strong {
        color: #16a34a;
    }

.related-btn {
    display: block;
    text-align: center;
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 700;
}

    .related-btn:hover {
        background: #1d4ed8;
        color: white;
    }

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== ILEARN SIDEBAR ===== */

.ilearn-layout {
    display: flex;
    gap: 25px;
}

.ilearn-sidebar {
    width: 250px;
    min-width: 250px;
    background: #f2f2f2;
    border: 1px solid #ddd;
}

.ilearn-menu-title {
    background: #d9d9d9;
    padding: 14px 18px;
    font-weight: bold;
}

.ilearn-sidebar a {
    display: block;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
}

    .ilearn-sidebar a:hover {
        background: #e9ecef;
    }

.ilearn-content {
    flex: 1;

    .tab-content {
        display: none;
    }

        .tab-content.active {
            display: block;
        }
}