/* ===================================================
   LearnHub — Custom Stylesheet
   Uses Bootstrap 5 as base. Only custom additions here.
   =================================================== */

/* ---------- Global ---------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* ---------- Hover Lift Effect for Cards ---------- */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10) !important;
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar-link {
    color: #495057;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
}

.sidebar-link:hover {
    background-color: #e9f0ff;
    color: #0d6efd;
    text-decoration: none;
}

.sidebar-link.active {
    background-color: #0d6efd;
    color: #fff !important;
    font-weight: 600;
}

/* ---------- Dashboard Stat Cards ---------- */
.card .fs-2 {
    line-height: 1.2;
}

/* ---------- Table Improvements ---------- */
.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ---------- Rounded Corners ---------- */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

/* ---------- Form Styling ---------- */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ---------- Alert Tweaks ---------- */
.alert {
    border: none;
    border-radius: 10px;
}

/* ---------- Accordion Tweaks ---------- */
.accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #e9f0ff;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ---------- Navbar Brand ---------- */
.navbar-brand {
    letter-spacing: -0.01em;
}

/* ---------- Scrollbar for Sidebar ---------- */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 2px;
}

/* ---------- Video Ratio ---------- */
.ratio-16x9 {
    border-radius: 1rem;
    overflow: hidden;
}

/* ---------- Lesson List Hover ---------- */
.list-group-item-action:hover {
    background-color: #e9f0ff;
    color: #0d6efd;
}

/* ---------- Payment Proof Image ---------- */
img.img-fluid.rounded-3 {
    border: 1px solid #dee2e6;
    padding: 4px;
    background: white;
}

/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .sidebar {
        position: static;
        height: auto;
    }
}
