/* =========================================================
   Sequence Analysis Form Theme
   Black / White / Gray, Bootstrap 5.3 Safe
   ========================================================= */

/* ---------- Root Variables ---------- */
.sequence-form {
    --bs-primary: #111827;        /* near-black */
    --bs-secondary: #6b7280;      /* gray-500 */
    --bs-border-color: #e5e7eb;   /* gray-200 */
    --bs-body-bg: #f9fafb;        /* light gray background */
    --bs-body-color: #111827;
    --hover-color: #111827;
}

/* ---------- Form container ---------- */
.sequence-form {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--bs-border-color); /* outer form border */
    max-width: 900px;
    margin: 2rem auto;
}

/* ---------- Cards / Panels inside tabs ---------- */
.sequence-form .card,
.sequence-form .custom-form {
    background-color: #ffffff;
    border: 1px solid #111827; /* thin black border */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---------- Labels ---------- */
.sequence-form .form-label {
    font-weight: 500;
    color: #374151;
}

/* ---------- Inputs / Selects ---------- */
.sequence-form .form-control,
.sequence-form .custom-input,
.sequence-form .custom-select {
    border-radius: 8px;
    border: 1px solid #111827; /* thin black border for structure */
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

/* Focus effect */
.sequence-form .form-control:focus,
.sequence-form .custom-input:focus,
.sequence-form .custom-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.15rem rgba(17, 24, 39, 0.15);
}

/* ---------- Buttons ---------- */
.sequence-form .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-radius: 10px;
    font-weight: 500;
}

.sequence-form .btn-primary:hover {
    background-color: #000000;
    border-color: #000000;
}

/* =========================================================
   Tabs (Bootstrap 5.3 Compatible)
   ========================================================= */
.sequence-form .custom-nav-tabs {
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center; /* CENTER the tabs */
}

.sequence-form .custom-nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--bs-secondary);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    text-align: center;
}

.sequence-form .custom-nav-tabs .nav-link:hover {
    color: var(--bs-body-color);
}

.sequence-form .custom-nav-tabs .nav-link.active {
    color: var(--bs-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--bs-primary);
}

/* Keep Bootstrap class safe */
.sequence-form .nav-tabs .nav-link {
    margin-bottom: -1px;
}

/* =========================================================
   Checkboxes
   ========================================================= */

/* Make checkboxes more visible */
.sequence-form .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #111827; /* dark color */
    border: 1px solid #111827;
    cursor: pointer;
    margin-right: 0.5rem;
}

.sequence-form .form-check-label {
    cursor: pointer;
    margin-left: 0.35rem;
    font-weight: 500;
    color: #111827;
}

/* ---------- Table Styling (Optional) ---------- */
.sequence-form table {
    border-collapse: separate;
    border-spacing: 0;
}

.sequence-form .table {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.sequence-form .table thead th {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
    border-bottom: 1px solid var(--bs-border-color);
}

.sequence-form .table tbody tr:hover {
    background-color: #f9fafb;
}

/* ---------- Utility / Spacing ---------- */
.sequence-form .divider {
    border-top: 1px solid var(--bs-border-color);
    margin: 1.0rem 0;
}

.sequence-form .container {
    max-width: 1100px;
}

.sequence-form .mb-3 > label {
    margin-bottom: 0.35rem;
}

.sequence-form .mb-3 .form-check-input {
    margin-top: 0.3rem;
}

/* ---------- Form Title ---------- */
.sequence-form-title {
    font-size: 1.8rem;          /* larger text */
    font-weight: 700;            /* bold */
    color: var(--bs-primary);    /* theme color */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-primary); /* full-width underline */
    width: 100%;                 /* make underline span the container */
}