/* =======================================
   Custom Stylesheet - Tema Claro
   Autor: Marcelo Macedo (Farol Operacional)
   Descrição: CSS base para layout e tema claro com comentários explicativos
   ======================================= */

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0d6efd;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section {
    margin-bottom: 40px;
}

hr {
    border-top: 1px solid #ccc;
}

.card {
    background-color: rgba(249, 249, 249, 0.7);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: #000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
}

.label {
    font-weight: bold;
    color: #e3a008;
}

.comment {
    background-color: rgba(241, 241, 241, 0.6);
    border-left: 4px solid #0d6efd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.comment .responsavel {
    font-style: italic;
    color: #198754;
    font-weight: bold;
}

button,
.btn,
.dbc-btn {
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.9),
        rgba(13, 110, 253, 0.7)
    ) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 16px;
    border: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
    transition: all 0.3s ease;
}

input[type='text'],
input[type='number'] {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000;
    border: 1px solid rgba(204, 204, 204, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

input[type='text']:focus,
input[type='number']:focus {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 110, 253, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

input::placeholder {
    color: #888;
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.light-switch .form-check-input {
    background-color: #e0e0e0 !important;
    border-color: #ccc !important;
}

.light-switch .form-check-input:checked {
    background-color: #0d6efd !important;
}

.form-check-input {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.progress-indicator {
    height: 6px;
    transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
    border-radius: 3px;
}

:root {
    --barra-entrega-texto: #000;
}

#body-wrapper,
.theme-wrapper {
    background-color: inherit;
    color: inherit;
    transition: all 0.3s ease;
}

.dash-table-tooltip {
    background-color: #f8f9fa !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    font-size: 15px;
    padding: 8px 10px;
    max-width: 700px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInTooltip 0.2s ease-in-out;
    overflow-wrap: break-word;
}

.dash-table-tooltip::after {
    display: none !important;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card-hover {
    background-color: #f1f1f1 !important;
    color: #000 !important;
    border-radius: 10px;
    padding: 12px 16px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}

.card-hover:hover {
    transform: scale(1.04);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card-hover small {
    display: block;
    font-size: 13px;
    line-height: 16px;
    margin-bottom: 2px;
    white-space: normal !important;
    word-break: break-word;
    text-align: center;
    max-width: 100%;
    color: #000;
}

.card-hover h5 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.card-borda-verde-escuro {
    border: 2px solid #198754 !important;
}
.card-borda-azul {
    border: 2px solid #0d6efd !important;
}
.card-borda-amarelo {
    border: 2px solid #ffc107 !important;
}
.card-borda-cinza {
    border: 2px solid #adb5bd !important;
}
.card-borda-roxo {
    border: 2px solid #9b59b6 !important;
}
.card-borda-vermelho {
    border: 2px solid #dc3545 !important;
}
.card-borda-verde-claro {
    border: 2px solid #28a745 !important;
}

.card-farol:hover {
    transform: scale(1.15);
    box-shadow: 0 0 5px 10px rgba(255, 255, 255, 0.5);
}

.card-borda-sem-problema {
    background-color: #28a745;
    border: 3px solid #28a745;
    box-shadow: 0 0 5px 10px rgba(40, 167, 69, 0.4);
}

.card-borda-com-problema {
    background-color: #ffc107;
    border: 3px solid #ffc107;
    box-shadow: 0 0 5px 10px rgba(255, 193, 7, 0.4);
}

.card-borda-problema-crítico {
    background-color: #dc3545;
    border: 3px solid #dc3545;
    box-shadow: 0 0 5px 10px rgba(220, 53, 69, 0.4);
}

.card-borda-indefinido {
    background-color: #6c757d;
    border: 3px solid #6c757d;
    box-shadow: 0 0 5px 10px rgba(108, 117, 125, 0.4);
}

.Select-control,
.Select-menu-outer,
.Select-menu {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #ccc !important;
}

.Select-placeholder,
.Select-value {
    color: #666 !important;
}

.Select-option {
    background-color: #fff !important;
    color: #000 !important;
}

.Select-option:hover,
.Select-option.is-focused {
    background-color: #f1f1f1 !important;
}

.Select-option.is-selected {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.dash-table-container .dash-spreadsheet-container {
    background-color: #ffffff !important;
}

.dash-table-container .dash-spreadsheet-container .dash-cell,
.dash-table-container .dash-spreadsheet-container .dash-header {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ccc !important;
}

.dash-table-container .dash-header {
    font-weight: bold;
    background-color: #f8f9fa !important;
    color: #0d6efd !important;
}

.dash-table-container .dash-cell.focused {
    background-color: #e9ecef !important;
}

.dash-table-container .dash-cell:hover {
    background-color: #f1f3f5 !important;
}

.dash-cell:focus {
    box-shadow: none !important;
}

.theme-light .navbar-custom {
    background-color: var(--bs-primary) !important;
}

.theme-light .user-label {
    color: white !important;
}

.theme-light .navbar-custom .nav-link,
.theme-light .navbar-custom .navbar-brand,
.theme-light .user-label,
.theme-light #theme-status,
.theme-light .light-switch span {
    color: white !important;
}

.theme-light .navbar-custom,
.theme-light .navbar-custom * {
    color: white !important;
}
