/* site.css — general site styles.
   Layout-specific rules have been moved to layout.css to avoid conflicts. */
:root {
    --bs-primary: rgb(0, 0, 0); /* black */
    --bs-primary-rgb: 0, 0, 0; /* needed for some Bootstrap RGBA uses */
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Focus outlines used across site controls */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Document-level layout helpers that are not layout-specific */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Optional: make text readable automatically */
/* Default */
.btn-primary {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
}

    /*Hover*/
    .btn-primary:hover {
        color: rgb(255, 255, 255);
        background-color: rgb(34, 34, 34);
        border-color: rgb(34, 34, 34);
    }

    /*Focus*/
    .btn-primary:focus,
    .btn-check:focus + .btn-primary {
        color: rgb(255, 255, 255);
        background-color: rgb(17, 17, 17);
        border-color: rgb(17, 17, 17);
        box-shadow: 0 0 0 0.25rem rgba(100, 100, 100, 0.5);
    }

    /*Active / Checked*/
    .btn-primary:active,
    .btn-primary.active,
    .btn-check:checked + .btn-primary,
    .show > .btn-primary.dropdown-toggle {
        color: rgb(255, 255, 255);
        background-color: rgb(51, 51, 51);
        border-color: rgb(51, 51, 51);
    }

        /*Active Focus*/
        .btn-primary:active:focus,
        .btn-primary.active:focus,
        .btn-check:checked + .btn-primary:focus,
        .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(100, 100, 100, 0.5);
        }

    /*Disabled*/
    .btn-primary:disabled,
    .btn-primary.disabled {
        color: rgb(255, 255, 255);
        background-color: rgb(0, 0, 0);
        border-color: rgb(0, 0, 0);
    }

/* Secondary default */
.btn-secondary {
    color: rgb(0, 0, 0); /* black text */
    background-color: rgb(255, 255, 255); /* white background */
    border-color: rgb(230, 230, 230); /* black border */
}

    /* Hover */
    .btn-secondary:hover {
        color: rgb(0, 0, 0);
        background-color: rgb(230, 230, 230); /* light gray on hover */
        border-color: rgb(230, 230, 230);
    }

    /* Focus */
    .btn-secondary:focus,
    .btn-check:focus + .btn-secondary {
        color: rgb(0, 0, 0);
        background-color: rgb(200, 200, 200); /* darker gray for focus */
        border-color: rgb(230, 230, 230);
        box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
    }

    /* Active / Checked */
    .btn-secondary:active,
    .btn-secondary.active,
    .btn-check:checked + .btn-secondary,
    .show > .btn-secondary.dropdown-toggle {
        color: rgb(0, 0, 0);
        background-color: rgb(180, 180, 180); /* even darker gray */
        border-color: rgb(230, 230, 230);
    }

        /* Active Focus */
        .btn-secondary:active:focus,
        .btn-secondary.active:focus,
        .btn-check:checked + .btn-secondary:focus,
        .show > .btn-secondary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
        }

    /* Disabled */
    .btn-secondary:disabled,
    .btn-secondary.disabled {
        color: rgb(0, 0, 0);
        background-color: rgb(255, 255, 255);
        border-color: rgb(230, 230, 230);
    }


/* Default */
.btn-outline-primary {
    color: rgb(0, 0, 0); /* black text */
    border-color: rgb(0, 0, 0); /* black border */
}

    /* Hover */
    .btn-outline-primary:hover {
        color: rgb(255, 255, 255); /* white text */
        background-color: rgb(0, 0, 0); /* black background */
        border-color: rgb(0, 0, 0);
    }

    /* Focus */
    .btn-outline-primary:focus,
    .btn-check:focus + .btn-outline-primary {
        box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
    }

    /* Active / Checked */
    .btn-outline-primary:active,
    .btn-outline-primary.active,
    .btn-check:checked + .btn-outline-primary,
    .show > .btn-outline-primary.dropdown-toggle {
        color: rgb(255, 255, 255);
        background-color: rgb(0, 0, 0);
        border-color: rgb(0, 0, 0);
    }

    /* Disabled */
    .btn-outline-primary:disabled,
    .btn-outline-primary.disabled {
        color: rgb(0, 0, 0);
        background-color: transparent;
        border-color: rgb(0, 0, 0);
    }

/* Normal */
.page-link {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #000 !important;
}

    /* Hover */
    .page-link:hover {
        color: #fff !important;
        background-color: #000 !important;
    }

/* Active */
.page-item.active .page-link {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.dropdown-menu .dropdown-item {
    color: #000 !important;
}

    .dropdown-menu .dropdown-item:hover,
    .dropdown-menu .dropdown-item:focus {
        color: #000 !important;
        background-color: #f8f9fa; /* optional */
    }

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #555;
    padding: 8px 12px;
}

.nav-tabs .nav-link.active {
    border: none;
    border-bottom: 2px solid #000;
    font-weight: 600;
    color: #000;
    background: transparent;
}