/* === DEVFIX FINAL === */

html, body {
    height: 100% !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

body {
    padding-top: 60px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* === HEADER === */
/* === 2026 PREMIUM GLASS HEADER === */
.navbar {
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1030 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.4) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6) !important;
    padding: 0.75rem 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

    /* Blue accent line - the 2026 sauce */
    .navbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #0d6efd, #0a58ca, #0d6efd);
        opacity: 0.7;
    }

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: flex !important;
    align-items: center !important;
}

    .navbar-brand img {
        height: 36px !important;
        width: auto !important;
        margin-right: 12px !important;
    }
/* === 2026 HEADER MENU COLORS === */
.navbar-nav .nav-link {
    font-weight: 500 !important;
    color: #4b5563 !important; /* Softer gray instead of black */
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    font-size: 0.925rem !important;
    letter-spacing: -0.01em !important; /* Tighter tracking = modern */
}


    .navbar-nav .nav-link:hover {
        color: #0d6efd !important;
        background-color: rgba(13, 110, 253, 0.08) !important;
        transform: translateY(-1px); /* Tiny lift on hover */
    }

    .navbar-nav .nav-link.active {
        color: #0d6efd !important;
        font-weight: 600 !important;
        background-color: rgba(13, 110, 253, 0.12) !important;
    }

    /* Make "C# Course" stand out as primary CTA in nav */
    .navbar-nav .nav-link[href*="Course"] {
        color: #0d6efd !important;
        font-weight: 600 !important;
    }

/* Pill nav links */
/*.navbar-nav .nav-link {
    font-weight: 500 !important;
    color: #1f2937 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    font-size: 0.925rem !important;
}


    .navbar-nav .nav-link:hover {
        color: #0d6efd !important;
        background-color: rgba(13, 110, 253, 0.08) !important;
    }

    .navbar-nav .nav-link.active {
        color: #0d6efd !important;
        font-weight: 600 !important;
        background-color: rgba(13, 110, 253, 0.12) !important;
    }*/
/* === 2026 GLASS HEADER === */
/*.navbar {
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1030 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: none !important;
    padding: 0.75rem 0 !important;
    height: auto !important;
}

.navbar-brand img {
    height: 38px !important;
    width: auto !important;
    margin-right: 14px !important;
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links - pill style 2026 */
/*.navbar-nav {
    gap: 0.125rem !important;
}

    .navbar-nav .nav-link {
        font-weight: 500 !important;
        color: #1f2937 !important;
        padding: 0.5rem 1rem !important;
        border-radius: 8px !important;
        transition: all 0.15s ease !important;
        font-size: 0.925rem !important;
        position: relative !important;
    }

        .navbar-nav .nav-link:hover {
            color: #0d6efd !important;
            background-color: rgba(13, 110, 253, 0.08) !important;
        }

        .navbar-nav .nav-link.active {
            color: #0d6efd !important;
            font-weight: 600 !important;
            background-color: rgba(13, 110, 253, 0.12) !important;
        }*/*/

            /* Gradient underline for active */
            /*.navbar-nav .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: 6px;
                left: 1rem;
                right: 1rem;
                height: 2px;
                background: linear-gradient(90deg, #0d6efd, #0a58ca);
                border-radius: 2px;
            }*/

/* Search - Command+K style */
/*.navbar .form-control {
    border-radius: 10px !important;
    border: 1px solid rgba(209, 213, 219, 0.8) !important;
    background: rgba(249, 250, 251, 0.8) !important;
    font-size: 0.875rem !important;
    padding: 0.45rem 0.875rem !important;
    transition: all 0.2s ease !important;
}

    .navbar .form-control:focus {
        background: #fff !important;
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
    }

.navbar .btn-outline-success {
    border-radius: 10px !important;
    border-color: rgba(209, 213, 219, 0.8) !important;
    color: #6b7280 !important;
    background: rgba(249, 250, 251, 0.8) !important;
}

    .navbar .btn-outline-success:hover {
        background: #0d6efd !important;
        border-color: #0d6efd !important;
        color: #fff !important;
    }*/
/* 1. TUTORIAL PAGES: FULL WIDTH LAYOUT */
body:has(.col-md-3.bg-light) main {
    padding: 0 !important;
    flex: 1 0 auto !important;
}

body:has(.col-md-3.bg-light) .container-fluid {
    padding: 0 !important;
}

body:has(.col-md-3.bg-light) .row {
    margin: 0 !important;
}

/* 2. SIDEBAR - FIXED HEIGHT ISSUE */
.col-md-3.bg-light {
    position: sticky !important;
    top: 60px !important;
    height: auto !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
    border-right: 1px solid #dee2e6 !important;
    align-self: flex-start !important;
}

    .col-md-3.bg-light > .p-3 {
        padding: 20px 12px !important;
    }

/* 3. CONTENT */
.col-md-9 {
    padding: 2rem 3rem !important;
}

/* 4. KILL ARROWS */
.col-md-3 .nav-link[data-bs-toggle="collapse"]::after,
.offcanvas-body .nav-link[data-bs-toggle="collapse"]::after {
    display: none !important;
}

/* 5. MENU LINKS */
.col-md-3 .nav-link,
.offcanvas-body .nav-link {
    display: block !important;
    color: #212529 !important;
    padding: 8px 12px !important;
    margin-bottom: 2px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
}

    .col-md-3 .nav-link:hover,
    .offcanvas-body .nav-link:hover {
        background: #e9ecef !important;
    }

    .col-md-3 .nav-link.active,
    .offcanvas-body .nav-link.active {
        background: #0d6efd !important;
        color: #fff !important;
        font-weight: 600 !important;
    }

    /* Rotate arrow on open/close */
    .col-md-3 .nav-link .arrow,
    .offcanvas-body .nav-link .arrow {
        display: inline-block;
        transition: transform 0.2s ease;
    }

    .col-md-3 .nav-link[aria-expanded="true"] .arrow,
    .offcanvas-body .nav-link[aria-expanded="true"] .arrow {
        transform: rotate(180deg);
    }

/* 6. FOOTER - THE FIX */
.footer {
    position: static !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* 7. NON-TUTORIAL PAGES: KEEP NORMAL CONTAINER */
body:not(:has(.col-md-3.bg-light)) main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1rem 12px 3rem 12px;
}

body:not(:has(.col-md-3.bg-light)) .footer .container {
    max-width: 1320px;
}

main > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* === MODERN CARD HOVER - BLUE GLOW EFFECT === */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #e5e7eb !important;
    position: relative !important;
    will-change: transform;
    backface-visibility: hidden;
}

/* ONLY clickable cards get the glow */
a.text-decoration-none .card:hover {
    transform: translateY(-6px) scale(1.03) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 8px 16px -4px rgba(59, 130, 246, 0.4), 0 20px 25px -5px rgba(59, 130, 246, 0.25) !important;
}

    a.text-decoration-none .card:hover .btn-outline-primary,
    a.text-decoration-none .card:hover .btn-outline-secondary {
        background-color: #0d6efd !important;
        color: #fff !important;
        border-color: #0d6efd !important;
        box-shadow: 0 0 12px rgba(13, 110, 253, 0.6) !important;
    }

/* Sidebar C# Course card - stronger glow */
a.text-decoration-none .card.border-primary:hover {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.6), 0 12px 20px -4px rgba(13, 110, 253, 0.5), 0 25px 30px -8px rgba(13, 110, 253, 0.3) !important;
}

/* Hero banner button */
.bg-primary .btn-light:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s ease;
}

/* === QUIZ OPTION HOVER === */
.tutorial-content .list-group-item {
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

    .tutorial-content .list-group-item:hover {
        transform: translateX(4px) !important;
        border-left: 4px solid #0d6efd !important;
        background-color: #f0f7ff !important;
        box-shadow: 0 4px 12px -2px rgba(13, 110, 253, 0.25) !important;
    }

    .tutorial-content .list-group-item.active {
        background-color: #0d6efd !important;
        border-color: #0d6efd !important;
        color: #fff !important;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.5), 0 8px 16px -4px rgba(13, 110, 253, 0.4) !important;
    }

/* === MOBILE FIXES === */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 34px !important;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 56px !important;
    }

        body:has(.col-md-3.bg-light) .footer {
            margin-left: 0 !important;
            width: 100% !important;
        }

    .col-md-9 {
        padding: 1rem !important;
    }

    .tutorial-content pre {
        font-size: 13px !important;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0 !important;
        white-space: pre !important;
        word-wrap: normal !important;
    }

    .tutorial-content h1 {
        font-size: 1.5rem !important;
    }

    .tutorial-content h3 {
        font-size: 1.2rem !important;
    }

    .navbar {
        margin-bottom: 0 !important;
    }

    .container-fluid.mt-3 {
        margin-top: 0.5rem !important;
    }

    .d-md-none .btn {
        width: 100%;
    }

    .navbar-collapse {
        position: absolute !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #e5e7eb !important;
        z-index: 1029 !important;
        padding: 0.5rem 1rem !important;
    }

        .navbar-collapse .nav-link {
            padding: 0.75rem 0 !important;
            border-bottom: 1px solid #f3f4f6;
        }

        .navbar-collapse .nav-item:last-child .nav-link {
            border-bottom: none;
        }

    .col-md-3.bg-light {
        top: 56px !important;
        max-height: calc(100vh - 56px) !important;
    }
}
