body[data-bs-theme="dark"] {
    background-color: #0a0a0a;
    color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-bs-theme="dark"] .navbar-brand {
    color: #0ff;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

body[data-bs-theme="dark"] .btn-primary {
    background-color: transparent;
    color: #0ff;
    border: 2px solid #0ff;
    box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

body[data-bs-theme="dark"] .btn-outline-light {
    color: #0ff;
    border-color: #0ff;
    box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

body[data-bs-theme="dark"] .btn-outline-light:hover {
    background-color: #0ff;
    color: #000;
}

body[data-bs-theme="dark"] .btn-primary:hover {
    background-color: #0ff;
    color: #000;
}

body[data-bs-theme="dark"] .neon-box {
    border: 1px solid #0ff;
    box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    border-radius: 8px;
    padding: 1rem;
}

body[data-bs-theme="light"] .btn-outline-light {
    color: #000;
    border-color: #000;
}

body[data-bs-theme="light"] .btn-outline-light:hover {
    background-color: #000;
    color: #fff;
}

.btn-sm {
    min-width: 6rem;
}

.navbar-dark.bg-dark {
    background-color: #222 !important;
}

.form-container {
    max-width: 600px;
    margin: auto;
}

@media (max-width: 575.98px) {
    .form-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Stack tables vertically on small screens */
    .table-mobile-stack thead {
        display: none;
    }

    .table-mobile-stack tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }

    .table-mobile-stack td {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem;
        border: none;
    }

    .table-mobile-stack td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 0.5rem;
    }
}
.chart-container {
    max-width: 600px;
    margin: auto;
}


.doodle-container {
    border: 1px solid #0ff;
    box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    border-radius: 8px;
    overflow: hidden;
}

.color-choice {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 50%;
    margin-right: 0.25rem;
}

/* Navbar hide/show on scroll */
nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
}
