/* Variáveis de cores */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --dark-color: #5a5c69;
    --body-color: #f8f9fc;
    --white-color: #fff;
    --border-color: #e3e6f0;
}

/* Estilos Gerais */
body {
    background-color: var(--body-color);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-color);
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Container personalizado */
.container {
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
    width: 95%;
}

/* Ajustes para cards e elementos */
.row {
    margin-right: -10px;
    margin-left: -10px;
    display: flex;
    justify-content: center;
}

.col-xl-3, .col-md-6, .col-xl-8, .col-lg-7, .col-xl-4, .col-lg-5, .col-12 {
    padding-right: 10px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
}

/* Navbar */
#navbar {
    background-color: #2c3e50; /* Fundo escuro elegante */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra leve */
    padding: 1rem 0; /* Espaçamento interno */
}

#navbar .navbar-brand {
    color: #ecf0f1; /* Cor clara para contraste */
    font-size: 1.5rem; /* Tamanho da fonte maior */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Espaço entre o ícone e o texto */
}

#navbar .navbar-brand i {
    font-size: 1.8rem; /* Ícone maior para destaque */
}

#navbar .nav-link {
    color: #ecf0f1; /* Cor clara */
    font-size: 1rem;
    font-weight: 500;
    margin-right: 1rem; /* Espaçamento entre links */
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

#navbar .nav-link:hover {
    color: #1abc9c; /* Cor de destaque ao passar o mouse */
    transform: scale(1.1); /* Leve aumento no tamanho */
}

#navbar .nav-link i {
    margin-right: 0.5rem; /* Espaço entre o ícone e o texto */
}

#navbar .navbar-toggler {
    border: none; /* Remove borda padrão */
    background-color: #1abc9c; /* Cor para o botão */
    padding: 0.5rem;
    border-radius: 0.25rem; /* Bordas arredondadas */
}

#navbar .navbar-toggler-icon {
    background-color: #ecf0f1; /* Cor clara */
    width: 1.25rem; /* Largura */
    height: 0.15rem; /* Altura */
    display: block;
    margin: 0.3rem 0; /* Espaço entre linhas */
    border-radius: 0.25rem;
}

#navbar .navbar-toggler:hover {
    background-color: #16a085; /* Cor de destaque ao passar o mouse */
}

#navbar ul.navbar-nav {
    align-items: center;
}

#navbar ul.navbar-nav .nav-item:last-child .nav-link {
    background-color: #e74c3c; /* Fundo vermelho para o botão de sair */
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease-in-out;
}

#navbar ul.navbar-nav .nav-item:last-child .nav-link:hover {
    background-color: #c0392b; /* Cor de destaque ao passar o mouse */
}

/* Cards */

#card-color {
    background-color: #fff;
}

#card-color:hover {
    background-color: #2c3e50;
    color: #fff;
}

#card-color:hover #card-color-text {
    color: #fff;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 1rem;
    width: 100%;
    height: 100%;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Botões */
.btn {
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: none;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(87deg, var(--primary-color), #224abe);
    border: none;
}

.btn-success {
    background: linear-gradient(87deg, var(--success-color), #13855c);
    border: none;
}

.btn-danger {
    background: linear-gradient(87deg, var(--danger-color), #be2617);
    border: none;
}

/* Tabelas */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 1rem;
    border-top: none;
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
    border-radius: 0.375rem;
}

.bg-success {
    background: linear-gradient(87deg, var(--success-color), #13855c) !important;
}

.bg-danger {
    background: linear-gradient(87deg, var(--danger-color), #be2617) !important;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Modais */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Gráficos */
canvas {
    max-width: 100%;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsividade */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .row {
        margin-right: -5px;
        margin-left: -5px;
    }
    
    .col-xl-3, .col-md-6, .col-xl-8, .col-lg-7, .col-xl-4, .col-lg-5, .col-12 {
        padding-right: 5px;
        padding-left: 5px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 8px;
    }
}

/* Customização das bordas coloridas dos cards */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color);
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color);
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger-color);
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color);
}

/* Ícones */
.bx {
    vertical-align: middle;
}

.bx-lg {
    font-size: 2rem;
}

/* Mensagens de alerta */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.alert-success {
    background: linear-gradient(87deg, var(--success-color), #13855c);
    color: var(--white-color);
}

.alert-danger {
    background: linear-gradient(87deg, var(--danger-color), #be2617);
    color: var(--white-color);
}

/* Paginação */
.pagination {
    margin-bottom: 0;
}

.page-link {
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: linear-gradient(87deg, #1a2530, #2c3e50);
    color: var(--white-color);
    padding: 1.5rem 0;
    position: relative;
    margin-top: 3rem;
    box-shadow: 0 -0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: center;
}

.footer-text {
    font-weight: 500;
    margin: 0;
}

.footer-link {
    color: var(--warning-color) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--white-color) !important;
    transform: translateY(-1px);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Tabelas */
.table-responsive {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Proteções contra cópia */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
} 