:root {
    --primary-color: #ffd700;
    --primary-dark: #ccac00;
    --secondary-color: hsl(141, 83%, 49%);
    --dark-color: purple;
    --light-color: #f5f5f5;

    /* ✅ MAIN YELLOW BACKGROUND */
    --yellowish-bg: #fffdf2;
    --yellow-soft: #fff9db;

    --glass-bg: rgba(255, 255, 255, 0.9);

    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);

    --transition-base: all 0.3s ease;
}

/* ================= BODY ================= */
body {
    font-family: 'Poppins', sans-serif;

    /* ✅ APPLY YELLOWISH BACKGROUND */
    background: linear-gradient(135deg, var(--yellowish-bg), var(--yellow-soft));

    color: var(--dark-color);
    margin: 0;
    padding: 0;
}

/* ================= GLOBAL SPACING ================= */
section {
    margin: 0;
    padding: 60px 0;
}

section + section {
    padding-top: 40px;
}

/* ================= HERO ================= */
.hero-section {
    margin-bottom: 20px;
}

.hero-section .carousel-content {
    padding: clamp(40px, 6vw, 80px) 0;
}

/* ================= STATS BAR ================= */
.stats-bar-wrapper {
    margin-top: -40px;
}

/* ================= CONTAINER ================= */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* ================= BUTTONS ================= */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--dark-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* ================= CARDS ================= */
.card {
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* ================= DASHBOARD ================= */
.dash-card {
    border-radius: 15px;
    padding: 20px;

    /* ✅ Slight yellow tint */
    background: linear-gradient(135deg, #ffffff, var(--yellow-soft));

    box-shadow: var(--card-shadow);
}

.dash-card:hover {
    transform: scale(1.02);
}

/* ================= ICON BOX ================= */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
}

/* ================= FORMS ================= */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* ================= PROGRESS ================= */
.progress {
    height: 8px;
    border-radius: 10px;
    background: #eee;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 260px;
    background: #ffffff;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar .nav-link {
    padding: 10px 20px;
    border-radius: 10px;
    margin: 5px;
    color: var(--dark-color);
}

.sidebar .nav-link:hover {
    background: var(--yellow-soft);
}

/* ================= CONTENT ================= */
.content-wrapper {
    margin-left: 260px;
    padding: 20px;
}

/* ================= TABLE ================= */
.table {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* ================= NOTES PAGE SPECIAL ================= */
.notes-card {
    background: linear-gradient(135deg, #ffffff, var(--yellow-soft));
    border-radius: 15px;
    padding: 20px;
}

/* ================= ALERTS ================= */
.alert {
    border-radius: 10px;
}

/* ================= FOOTER ================= */
footer {
    background: yellow;
    padding: 30px 0;
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {

    .content-wrapper {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .stats-bar-wrapper {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {

    section {
        padding: 40px 0;
    }

    .hero-section .carousel-content {
        padding: 40px 0;
    }
}

/* ================= COURSE CHANGE WORKFLOW ================= */
.learning-hero,
.requests-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(80, 70, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.learning-card,
.review-card {
    background: #ffffff;
    border: 1px solid rgba(80, 70, 0, 0.08);
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--card-shadow);
}

.learning-actions {
    display: flex;
    gap: 10px;
}

.learning-actions > .btn,
.learning-actions > form {
    flex: 1 1 0;
}

.deadline-panel,
.request-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fff9db;
    color: #4f4200;
}

.deadline-panel i,
.request-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #8a7300;
    flex: 0 0 auto;
}

.empty-learning {
    background: #ffffff;
    border: 1px dashed rgba(80, 70, 0, 0.2);
    border-radius: 12px;
}

.request-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.request-stat {
    background: #ffffff;
    border: 1px solid rgba(80, 70, 0, 0.08);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--card-shadow);
}

.request-stat span {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.request-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.review-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff9db;
    color: purple;
}

.course-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #f8f9fa;
}

.course-route small {
    display: block;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
}

.course-route strong {
    display: block;
    color: var(--dark-color);
}

/* ================= PRODUCT ADMIN + STORE ================= */
.product-admin-hero,
.products-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(80, 70, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.product-admin-card,
.product-tile,
.empty-products {
    background: #ffffff;
    border: 1px solid rgba(80, 70, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.product-admin-card {
    padding: 22px;
}

.recent-product-list {
    display: grid;
    gap: 12px;
}

.recent-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
}

.recent-product-item img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffffff;
}

.product-tile {
    display: block;
    height: 100%;
    overflow: hidden;
    transition: var(--transition-base);
}

.product-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-tile:hover .product-image-wrap img {
    transform: scale(1.04);
}

.stock-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.stock-pill.in-stock {
    color: #198754;
}

.stock-pill.out-stock {
    color: #dc3545;
}

.product-tile-body {
    padding: 18px;
}

.product-detail-card {
    background: #ffffff;
    border: 1px solid rgba(80, 70, 0, 0.08);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #f8f9fa;
}

.stock-pill-static {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f8f9fa;
}

.stock-pill-static.in-stock {
    color: #198754;
}

.stock-pill-static.out-stock {
    color: #dc3545;
}

@media (max-width: 768px) {
    .learning-hero,
    .requests-hero,
    .product-admin-hero,
    .products-hero,
    .learning-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .request-stats,
    .course-route {
        grid-template-columns: 1fr;
    }

    .course-route > i {
        transform: rotate(90deg);
    }
}
/* ================= NAVBAR THEME ================= */

/* Yellow Header Background */
.navbar {
    background: linear-gradient(135deg, #ffd700, #ccac00);
}

/* Brand Text */
.navbar-brand span {
    color: purple;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Nav Links */
.navbar .nav-link {
    color: purple !important;
    font-weight: 500;
    transition: 0.3s ease;
}

/* Hover = Greenish */
.navbar .nav-link:hover {
    color: #28a745 !important;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    border: none;
}

.dropdown-item {
    transition: 0.3s;
}

.dropdown-item:hover {
    background: #eaffea;
    color: #28a745;
}

/* Sidebar fix (optional matching theme) */
.sidebar {
    background: #fffdf2;
}
