/* Custom styles for braintec Hosting Instance Manager — Braintec Design */

/* ── Yellow accent stripe under navbar ── */
.navbar::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #FDC300 0%, #FDC300 60%, transparent 100%);
}

/* ── Navbar brand ──
   The brand is long enough that, left unconstrained, it eats the whole row on a
   phone and wraps the hamburger toggler onto a second line. min-width:0 is what
   actually lets .text-truncate work inside the flex row. */
.navbar-brand {
    /* Shrink (and truncate) rather than claim the whole row: the container keeps
       Bootstrap's flex-wrap, which the collapsed menu needs to drop onto its own
       row, so an unshrinkable brand is what pushes the toggler down. */
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
}
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.05rem;
    }
}
.navbar-toggler {
    flex: 0 0 auto;
}

/* ── Language switcher ──
   Full width inside the collapsed menu, intrinsic width in the expanded navbar. */
.language-select {
    width: 100%;
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.language-select:focus {
    border-color: #FDC300;
    box-shadow: 0 0 0 0.2rem rgba(253, 195, 0, 0.35);
}
/* Bootstrap's caret SVG is near-black, i.e. invisible on the petrol navbar. */
.language-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.language-select option {
    /* The dropdown list itself renders on the OS popup, not on the navbar. */
    color: #113D57;
    background-color: #fff;
}
@media (min-width: 992px) {
    .language-select {
        width: auto;
    }
}

/* ── Marketing CTA button (Learn More) ── */
.btn-consult {
    background-color: #FDC300;
    border: 1px solid #FDC300;
    color: #113D57;
    font-weight: 600;
    /* Must wrap: the German label is ~1.6x the English one and otherwise
       overflows the button and gives the whole page a horizontal scrollbar. */
    white-space: normal;
    /* Long compounds ("Odoo-Hosting-Beratung") break rather than overflow. */
    overflow-wrap: anywhere;
}
.btn-consult:hover,
.btn-consult:focus {
    background-color: #E5B000;
    border-color: #E5B000;
    color: #113D57;
}
.btn-consult:focus-visible {
    outline: 2px solid #113D57;
    outline-offset: 2px;
}

/* ── Login card special styling ── */
.card-header.bg-primary h4 {
    font-weight: 600;
}

/* ── Table styling ── */
.table-hover tbody tr:hover {
    background-color: #EDF4F8;
}
.table thead.table-light th {
    background-color: #F4F5F7;
    color: #113D57;
    font-weight: 600;
    border-bottom-color: #E3E3E3;
}

/* ── Delete page danger card ── */
.card.border-danger .card-header.bg-danger {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%) !important;
    border-bottom: 3px solid #FDC300;
}

/* ── Stats icon specific colours ── */
.stats-icon.text-success {
    color: #72C5BD !important;
}

/* ── Form sections inside bg-light cards ── */
.card.bg-light {
    background-color: #F4F5F7 !important;
    border-color: #E3E3E3;
}

/* ── Scrollbar subtle styling ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F4F5F7;
}
::-webkit-scrollbar-thumb {
    background: #B6DCCD;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #72C5BD;
}

/* ── Selection color ── */
::selection {
    background-color: #FDC300;
    color: #113D57;
}
