/* Airflow family theme. Page <style> blocks stay after this link and keep diagrams.
   dfd-system.css still loads last. */
@import url("../css/course-light-theme.css");

:root {
    --course-primary: #0e7490;
    --course-accent: #06b6d4;
}

body .nav a,
body .nav-btn,
body .lesson-link,
body .quiz-opt,
body .quiz-option,
body .tab-btn,
body .opt,
body button {
    min-height: 48px;
    min-width: 48px;
}

body svg,
body .visual svg,
body img {
    max-width: 100%;
    height: auto;
}

body svg[width] {
    width: 100%;
    max-width: 100%;
    height: auto;
}

body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body p code,
body li code,
body td code,
body h1 code,
body h2 code,
body h3 code {
    overflow-wrap: anywhere;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 4px 0 #1d4ed8, 0 6px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 #1d4ed8, 0 10px 20px rgba(37, 99, 235, 0.4);
}

.back-to-top:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1d4ed8, 0 3px 8px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .page-bg-particles .orb {
        transition: none;
        animation: none;
    }
}
