body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    text-align: center;
    padding-top: 80px; /* Adicionado para não sobrepor o conteúdo */
}

/* Cores personalizadas */
:root {
    --primary-blue: #2e3374;
    --primary-blue-hover: #1f235b;
}

.navbar-custom {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fixa a navbar */
    top: 0;
    width: 100%;
    z-index: 1030; /* Garante que fique acima de outros elementos */
}

.navbar-custom h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Texto em azul padrão */
.text-custom-blue {
    color: var(--primary-blue) !important;
}

/* Botões personalizados */
.btn-custom-blue {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-custom-blue:hover, .btn-custom-blue:active, .btn-custom-blue:focus {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    color: white;
}

.btn-custom-outline {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: transparent;
}

.btn-custom-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Área da câmera */
#videoContainer {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #000;
    margin-bottom: 15px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Efeito de desfoque */
.blur-region {
    position: absolute;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5;
}

.blur-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 35%;
}

.blur-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
}

.blur-left {
    top: 35%;
    left: 0;
    width: 10%;
    height: 30%;
}

.blur-right {
    top: 35%;
    right: 0;
    width: 10%;
    height: 30%;
}

/* Retângulo de foco */
#focus-area {
    position: absolute;
    border: 3px solid #00ff00;
    width: 80%;
    height: 30%;
    top: 35%;
    left: 10%;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Overlays de Resultado (Sucesso/Falha) */
.result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 249, 250, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    flex-direction: column;
}

.result-icon {
    font-size: 6rem;
    margin-bottom: 10px;
}

/* Área de input manual */
#manualInputContainer {
    display: none;
    margin-top: 10px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

/* Ajuste do placeholder/hint */
#manualPlateInput::placeholder {
    font-size: 1rem; /* Fonte menor para o hint */
    color: #ccc;
    letter-spacing: normal;
    font-weight: normal;
}

.input-label {
    font-size: 0.9rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    display: block;
    text-align: left;
    margin-left: 5px;
}

#capturedImageDisplay {
    display: none; /* Escondido por padrão */
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#capturedImageDisplay img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* Área de resposta do servidor */
#responseContainer {
    display: none;
    margin-top: 10px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Estilização do Checkbox */
.form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.1em; /* Alinhamento vertical com o texto */
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-label {
    font-size: 1.1rem; /* Aumenta a fonte do label */
}