/* Custom styles - Darker Theme */
body {
    font-family: 'Arial', sans-serif;
    background-color: #212529; /* Dark background */
    color: #e9ecef; /* Light grey text */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
}

/* Card styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: #343a40; /* Darker card background */
    color: #e9ecef; /* Light text for cards */
}

.card-header {
    background-color: #495057; /* Slightly lighter dark for header */
    border-bottom: 1px solid #6c757d;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff; /* White header text */
    font-weight: bold;
}

.card-title {
    color: #00bfff; /* Lighter blue for contrast */
    font-weight: bold;
}

/* Button styles */
.btn {
    border-radius: 0.3rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600; /* Slightly bolder buttons */
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-info {
     background-color: #17a2b8;
     border-color: #17a2b8;
}

.btn-info:hover {
     background-color: #138496;
     border-color: #117a8b;
}

.btn-danger {
     background-color: #dc3545;
     border-color: #dc3545;
}

.btn-danger:hover {
     background-color: #c82333;
     border-color: #bd2130;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Form control styles */
.form-control {
    border-radius: 0.3rem;
    border: 1px solid #495057; /* Darker border */
    padding: 0.6rem 0.75rem;
    background-color: #454d55; /* Darker input background */
    color: #000000; /* Light input text */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #00bfff; /* Lighter blue focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.25);
    background-color: #454d55; /* Keep background consistent on focus */
    color: #000000; /* Keep text consistent on focus */
}

.form-label {
    font-weight: 600;
    color: #ced4da; /* Lighter label color */
    margin-bottom: 0.5rem;
}

/* Dashboard cards */
.card .display-4 {
    font-size: 2.5rem;
    color: #fff; /* White color for numbers */
    font-weight: bold;
}

/* Estilo específico para os números grandes nos cards do dashboard */
.card-body .display-4 {
    color: white !important;
    font-weight: bold !important;
}

/* Table styles */
.table {
    border-collapse: separate;
    border-spacing: 0 0.8rem;
    color: #e9ecef; /* Light text for table */
}

.table th {
    background-color: #495057; /* Darker header background */
    color: #fff; /* White header text */
    border-bottom: none;
    padding: 1rem 0.75rem;
    font-weight: bold; /* Bolder table headers */
}

.table td {
     background-color: #343a40; /* Darker cell background */
     padding: 1rem 0.75rem;
     border-top: none;
}

.table tbody tr {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.table tbody tr:hover {
    background-color: #495057; /* Darker background on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Arredondar cantos das primeiras/últimas células em cada linha */
.table tbody tr td:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.table tbody tr td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Remover bordas da célula */
.table td, .table th {
    border: none;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500; /* Slightly bolder alert text */
}

.alert-info {
    color: #a8dadc; /* Lighter color for dark theme */
    background-color: #1d3557; /* Darker info background */
    border-color: #457b9d; /* Darker info border */
}

.alert-warning {
    color: #fcdb7e; /* Lighter color for dark theme */
    background-color: #6b5001; /* Darker warning background */
    border-color: #997a00; /* Darker warning border */
}

.alert-danger {
    color: #f1aeb5; /* Lighter color for dark theme */
    background-color: #7c212a; /* Darker danger background */
    border-color: #a42834; /* Darker danger border */
}

.alert-success {
    color: #b5d8ba; /* Lighter color for dark theme */
    background-color: #2d6a4f; /* Darker success background */
    border-color: #388e3c; /* Darker success border */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #343a40; /* Cor da track para combinar com o fundo escuro */
}

::-webkit-scrollbar-thumb {
    background: #6c757d; /* Cor do thumb */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888; /* Cor do thumb no hover */
}

/* Estilos da barra de navegação - Manter o estilo aprovado */
.navbar {
    background-color: #ffffff !important; /* Fundo branco */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* Sombra subtil */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    color: #007bff !important; /* Cor da marca azul primário */
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: #333 !important; /* Cor dos links cinza escuro */
    transition: color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
    position: relative;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 15px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #007bff; /* Cor do underline azul primário */
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff !important; /* Cor dos links azul primário no hover e ativo */
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Ajustes para telas menores */
@media (max-width: 991.98px) {
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .navbar-nav .nav-link {
        margin: 5px 0;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* General UI improvements */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-title {
    color: #000000; /* Black color for card titles */
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.table th {
    background-color: #e9ecef;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: #e2e6ea;
}

/* Specific dashboard styling */
.dashboard-card .card-body {
    text-align: center;
    padding: 2rem;
    color: #ffffff; /* Ensure all text in card body is white */
}

.dashboard-card .card-title {
    color: #000000; /* Ensure card title is white */
    font-weight: 700; /* Make card title bolder */
}

.dashboard-card .card-text {
    color: #ffffff; /* Ensure card text is white */
    font-weight: 700; /* Make card text bolder */
}

.dashboard-card .display-4 {
    font-size: 3rem; /* Larger numbers */
    color: #ffffff !important; /* White color for numbers */
    font-weight: 700 !important; /* Bolder numbers */
}

/* Table styles */
.table {
    border-collapse: separate;
    border-spacing: 0 1rem; /* More spacing between rows */
    width: 100%;
}

.table th {
    background-color: #e9ecef; /* Light header background */
    color: #495057; /* Dark header text */
    border-bottom: none;
    padding: 1.2rem 1rem; /* Larger padding */
    font-weight: 700; /* Bolder headers */
    text-transform: uppercase; /* Uppercase headers */
    font-size: 0.9rem;
}

.table td {
     background-color: #ffffff; /* White cell background */
     padding: 1.2rem 1rem; /* Larger padding */
     border-top: none;
     vertical-align: middle; /* Center content vertically */
}

.table tbody tr {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* Softer shadow for rows */
    border-radius: 8px; /* Rounded corners for rows */
    transition: all 0.3s ease-in-out;
}

.table tbody tr:hover {
    background-color: #f8f9fa; /* Lighter background on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px); /* Lift effect */
}

/* Arredondar cantos das primeiras/últimas células em cada linha */
.table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Remover bordas da célula */
.table td, .table th {
    border: none;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600; /* Bolder alert text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Toast Notifications */
.toast {
    opacity: 1 !important;
}

.toast-header {
    font-weight: bold;
}

.toast-header .btn-close {
    margin-left: .5rem;
    margin-right: -.75rem;
}

.btn-group .btn + .btn {
    margin-left: 5px; /* Add space between buttons */
}

.text-danger strong {
    color: #dc3545; /* Ensure red color for expired text */
}

.text-warning strong {
    color: #ffc107; /* Ensure yellow color for expiring text */
}

/* Custom styles - Extraordinary Light Theme */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Subtle gradient background */
    color: #333; /* Dark grey text */
    line-height: 1.6;
    min-height: 100vh; /* Ensure background covers full height */
    padding-bottom: 50px; /* Add some padding at the bottom */
}

.container {
    max-width: 1200px;
    margin-top: 20px; /* Add space below navbar */
}

/* Card styles */
.card {
    border: none;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Softer, larger shadow */
    background-color: #ffffff; /* White card background */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: #e9ecef; /* Light header background */
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    color: #007bff; /* Primary blue header text */
    font-weight: 700; /* Bolder header text */
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
}

.card-title {
    color: #000000; /* Primary blue for card titles */
    font-weight: bold; /* Bolder title */
}

/* Button styles */
.btn {
    border-radius: 8px; /* More rounded buttons */
    padding: 0.75rem 1.5rem; /* Larger padding */
    font-weight: 600; /* Bolder button text */
    transition: all 0.3s ease-in-out;
    text-transform: uppercase; /* Uppercase text */
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px); /* Lift effect on hover */
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
}

.btn-info {
     background-color: #17a2b8;
     border-color: #17a2b8;
}

.btn-info:hover {
     background-color: #138496;
     border-color: #117a8b;
     transform: translateY(-2px);
}

.btn-danger {
     background-color: #dc3545;
     border-color: #dc3545;
}

.btn-danger:hover {
     background-color: #c82333;
     border-color: #bd2130;
     transform: translateY(-2px);
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Form control styles */
.form-control {
    border-radius: 8px; /* More rounded inputs */
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem; /* Larger padding */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #f8f9fa; /* Light input background */
    color: #000000; /* Darker input text */
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    background-color: #fff; /* White background on focus */
}

.form-label {
    font-weight: 700; /* Bolder labels */
    color: #555;
    margin-bottom: 0.75rem; /* More space below labels */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Light scrollbar track */
}

::-webkit-scrollbar-thumb {
    background: #888; /* Darker thumb */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos comuns para todas as páginas */
.app-navbar {
    background-color: #2c3e50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-navbar .navbar-brand {
    color: #ecf0f1 !important;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.app-navbar .navbar-brand img {
    height: 65px;
    margin-right: 10px;
}

.app-navbar .nav-link {
    color: #bdc3c7 !important;
    font-weight: 500;
    padding: 0.8rem 1rem !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.app-navbar .nav-link:hover {
    color: #ecf0f1 !important;
    background-color: #34495e;
}

.app-navbar .nav-link.active {
    color: #ffffff !important;
    background-color: #3498db;
    font-weight: 600;
}

.app-navbar .nav-link i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.app-navbar .navbar-toggler {
    border-color: #bdc3c7;
}

.app-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* Estilos para a foto de perfil */
.profile-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.profile-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c3e50;
    margin-bottom: 20px;
}

.profile-photo-container {
    position: relative;
    display: inline-block;
}

.profile-photo-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3498db;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
}

.profile-photo-edit:hover {
    background: #2980b9;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
} 