:root {
    --bs-body-bg: #fff;
    --bs-body-color: #212529;
    --bs-card-bg: #fff;
}

body {
    background-color: #fff;
    min-height: 100vh;
}

input.form-control,
textarea.form-control,
select.form-select {
    background-color: #fff;
    color: #333;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
    background-color: #fff;
    color: #333;
}

.card {
    background-color: #fff;
}

.container {
    padding-top: 50px;
    padding-bottom: 25px;
    width: 100%;
}

.form-group label {
    padding: 5px;
}

.form-group {
    padding-bottom: 25px;
}

/* Auth card (from legacy custom.scss) */
.auth-form {
    width: 100%;
    height: 100%;
    margin-top: 10%;
}

.auth-form .card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    text-align: center;
}

.auth-form form {
    display: flex;
    flex-direction: column;
}

.auth-form input {
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease-in-out;
    outline: none;
    color: #333;
    background-color: #fff;
}

.auth-form input:focus {
    border-color: #555;
}

.auth-form button {
    background-color: #555;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.auth-form button:hover {
    background-color: #333;
}

.bordered-block {
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.found-text {
    background-color: red;
}

/* search.scss */
#search-menu a {
    padding: 20px;
    border: 2px solid black;
    border-radius: 25px;
    text-decoration: none;
    color: black;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

#search-menu a:hover,
#search-menu a:focus {
    color: gray;
}

/* navbar.scss */
.navbar {
    display: flex;
    padding: 10px;
    background-color: #141214;
    justify-content: space-between;
    align-items: center;
    box-shadow: 7px 5px 15px -4px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 7px 5px 15px -4px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 7px 5px 15px -4px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    width: 100%;
    left: 0;
    right: 0;
    padding-left: 5%;
    padding-right: 5%;
}

.navbar .nav-items > ul > li {
    position: relative;
    display: inline;
    list-style: none;
    margin: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.navbar .nav-items > ul {
    margin: 0;
}

.navbar .nav-items > ul > li > a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    text-transform: uppercase;
}

.navbar .nav-items > ul > li::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0.17rem;
    background-color: #c52726;
    left: 0;
    bottom: 0;
    transform-origin: 0% 100%;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar .nav-items > ul > li:hover::after {
    transform: scaleX(1);
}

.navbar .nav-logo a,
.navbar .nav-button a {
    color: white;
    list-style: none;
    text-decoration: none;
    display: flex;
}

.navbar .nav-logo {
    font-size: 32px;
}

.navbar .nav-button {
    background-color: #c52726;
    border-radius: 50px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}

.navbar .nav-button .anim-layer {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background-color: white;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar .nav-button:hover .anim-layer {
    width: 100%;
    left: 0;
}

.navbar .nav-button:hover a {
    color: #141214;
}

.navbar .nav-button a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.navbar #hamburger-menu,
.navbar #mobile-menu {
    display: none;
}

@media only screen and (max-width: 770px) {
    .navbar #mobile-menu {
        background-color: #c52726;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

    .navbar .mobile-nav-items > ul {
        padding: 0;
    }

    .navbar .mobile-nav-items > ul > li {
        text-align: center;
        position: relative;
        list-style: none;
        margin: 10px;
        padding: 10px 20px;
        cursor: pointer;
    }

    .navbar .mobile-nav-items > ul > li > a {
        color: white;
        text-decoration: none;
    }

    .navbar .mobile-nav-items > ul > li::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 0.17rem;
        background-color: white;
        left: 0;
        bottom: 0;
        transform-origin: 0% 100%;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .navbar .mobile-nav-items > ul > li:hover::after {
        transform: scaleX(1);
    }

    .navbar .mobile-nav-button {
        background-color: #141214;
        border-radius: 50px;
        position: relative;
        display: inline-block;
        overflow: hidden;
        cursor: pointer;
    }

    .navbar .mobile-nav-button .anim-layer {
        position: absolute;
        top: 0;
        left: 50%;
        width: 0;
        height: 100%;
        background-color: white;
        transition: width 0.3s ease, left 0.3s ease;
    }

    .navbar .mobile-nav-button:hover .anim-layer {
        width: 100%;
        left: 0;
    }

    .navbar .mobile-nav-button:hover a {
        color: #141214;
    }

    .navbar .mobile-nav-button a {
        display: block;
        padding: 10px 20px;
        color: white;
        text-decoration: none;
        position: relative;
        z-index: 1;
    }

    .navbar .nav-items > ul,
    .navbar .nav-button {
        display: none;
    }

    .navbar #hamburger-cross {
        display: block;
        color: white;
        cursor: pointer;
        font-size: 40px;
        position: absolute;
        top: 20px;
        right: 26px;
    }

    .navbar #hamburger-menu {
        display: block;
        color: white;
        cursor: pointer;
        font-size: 24px;
    }
}

/* Tables (legacy face_reader app.scss) */
table thead {
    height: 60px;
    vertical-align: middle;
    text-align: center;
    background-color: black;
}

table thead tr {
    vertical-align: middle;
}

table thead tr th {
    background-color: black !important;
    color: white !important;
    font-size: 20px;
    padding-bottom: 15px !important;
}

table tr td {
    text-align: center;
}

table td a {
    color: black;
}

.camera-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.camera-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 960px;
}

.camera-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: min(50vh, 480px);
    margin-bottom: 1rem;
}

.camera-stage video {
    max-width: min(960px, 100%);
    max-height: min(55vh, 520px);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    background: #111;
}

.camera-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.camera-controls--send {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.camera-interval-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.camera-interval-label {
    font-weight: 600;
    margin: 0;
}

.camera-interval-input {
    width: 140px;
    text-align: center;
}

.recognition-results {
    width: 100%;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.5rem;
}

.recognition-face-block {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fafafa;
}

.recognition-face-block:last-child {
    margin-bottom: 0;
}

.recognition-face-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: #333;
}

.recognition-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.recognition-table-horizontal {
    width: 100%;
    table-layout: auto;
    font-size: 0.8rem;
}

.recognition-table-horizontal thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    padding: 0.4rem 0.35rem;
}

.recognition-table-horizontal tbody th[scope="row"] {
    text-align: center;
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
    width: 2.25rem;
}

.recognition-table-horizontal tbody td {
    text-align: center;
    white-space: nowrap;
    padding: 0.35rem 0.3rem;
}

.recognition-error {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

