/* ============================
   Base HTML / Layout
=============================== */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

/* Soft grey background for modern look */
body {
    margin-bottom: 60px;
    background-color: #f5f6f8;
}


/* ============================
   Promo Bar
=============================== */

.cpu-promo-bar {
    background-color: #0C1059;
    color: #FFFFFF;
    font-size: 0.9rem;
    text-align: center;
    padding: 6px 12px;
}

/* Less distracting: same color as text, just bold */
.cpu-promo-strong {
    color: #FFFFFF;
    font-weight: 700;
}


/* ============================
   Header
=============================== */
header {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 4px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}


/* ============================
   Buttons (CPU Green)
=============================== */

/* Default success buttons (e.g. Join Now) – keep pill shape */
.btn-success {
    background-color: #24A638 !important;
    border-color: #24A638 !important;
    font-weight: 600;
    border-radius: 999px;
}

    .btn-success:hover {
        background-color: #1f8f31 !important;
        border-color: #1f8f31 !important;
    }

/* Make ONLY the Run SQL button square(ish) + shadow */
#btnrun {
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(12, 16, 89, 0.25);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

    #btnrun:hover:not(:disabled) {
        box-shadow: 0 6px 14px rgba(12, 16, 89, 0.3);
        transform: translateY(-1px);
    }

    #btnrun.btn-running {
        box-shadow: 0 2px 6px rgba(12, 16, 89, 0.18);
        transform: none;
        cursor: wait;
    }


/* ============================
   Hero + Main Card
=============================== */

/* Section behind the card – gives a bit more punch */
.cpu-hero {
    padding: 4px 0 16px;
    background: linear-gradient( 180deg, #f1f4ff 0%, #f5f6f8 30%, #f5f6f8 100% );
}

/* ONE card for the entire page content – slightly less padding */
.cpu-main-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(12, 16, 89, 0.12);
    padding: 18px 20px 22px;
    margin-top: 6px;
    border-top: 4px solid #24A638;
}

/* Shrink container so layout doesn't look stretched */
.container {
    max-width: 900px;
}




/* ============================
   SQL Textarea styling
=============================== */

/* High-visibility SQL command box */
/* High-visibility SQL command box, but not so tall */
textarea.form-control {
    border-radius: 10px;
    border: 2px solid #b8c2d1;
    padding: 12px;
    background: #ffffff;
    font-size: 1.2rem;
    font-family: "Courier New", monospace;
    color: #0C1059;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 1px 2px rgba(0,0,0,0.10);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}


    /* Focus state — clear cue */
    textarea.form-control:focus {
        border-color: #24A638;
        background-color: #fdfefc;
        box-shadow: 0 0 0 3px rgba(36,166,56,0.22), 0 4px 12px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.12);
    }

    /* Bold, clear placeholder */
    textarea.form-control::placeholder {
        font-family: "Courier New", monospace;
        font-weight: 400;
        color: #4a5160; /* darker, clear */
        opacity: 1; /* fully visible */
    }


/* ============================
   Results hint + divider
=============================== */

/* Hint under the Run SQL button */
/* Hint under the Run SQL button */
.cpu-result-hint {
    font-size: 0.95rem;
    color: #0C1059; /* CPU navy */
    opacity: 1;
}

/* Labeled divider above results */
.cpu-divider {
    text-align: center;
    margin: 6px 0 4px;
    position: relative;
}

    .cpu-divider::before {
        content: "";
        height: 1px;
        background: #d0d4da;
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        z-index: 1;
    }

    .cpu-divider span {
        background: #ffffff;
        padding: 0 10px;
        font-size: 0.9rem;
        color: #6f7a89;
        position: relative;
        z-index: 2;
    }

/* Results container card */
#dvresults {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #d6dce5;
    min-height: 120px; /* always visible */
    box-shadow: 0 6px 18px rgba(12, 16, 89, 0.08);
    transition: box-shadow .2s ease, border-color .2s ease;
}

    /* When results are populated – extra "magic" */
    #dvresults.populated {
        border-color: #24A638;
        box-shadow: 0 10px 28px rgba(36,166,56,0.18);
    }

/* Placeholder text inside results */
.cpu-results-placeholder {
    font-size: 0.95rem;
    color: #6f7a89;
    opacity: .85;
    text-align: center;
}


/* ============================
   Utility spacing
=============================== */

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

/* ============================
   Bootstrap default overrides (kept)
=============================== */

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}
