/**
 * Estilos personalizados para o Sistema GRW Promotora
 */

:root {
    --primary-red: #B22222; /* GRW Red */
    --secondary-gray: #4A4A4A;
    --light-gray: #f5f5f5;
    --accent-red: #CD5C5C; /* MediumRed */
    --text-color: #333;
    --background-color: #ffffff;
    --border-color: #ddd;
    --danger: #dc3545;
}

/* Estilos gerais */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f4f6f9;
}

a {
    color: var(--primary-red);
    text-decoration: none;
}

a:hover {
    color: var(--accent-red);
}

/* Botões personalizados */
.btn-primary-custom {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.btn-navy {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.btn-navy:hover, .btn-navy:focus {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    font-weight: 600;
}

/* Tabelas */
.table thead {
    background-color: var(--light-gray);
}

.table-hover tbody tr:hover {
    background-color: #fdf0f0; /* Um vermelho bem claro para hover */
}

/* Formulários */
.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(178, 34, 34, 0.25);
}

.form-label {
    font-weight: 500;
}

/* Badges e status */
.badge-active {
    background-color: #B22222;
    color: white;
}

.badge-inactive {
    background-color: #dc3545;
    color: white;
}

/* Dashboard stats */
.stat-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Animações e transições */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Layout responsivo */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 70px 15px 15px;
    }
    
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 900;
    }
    
    .sidebar {
        transition: width 0.3s;
        overflow: hidden;
    }
}

/* Notificações */
.notification-toast {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tabelas de consulta */
.table-consulta th {
    white-space: nowrap;
}

.table-consulta td {
    vertical-align: middle;
}

/* Para os gráficos */
.chart-container {
    position: relative;
    height: 300px;
}

/* Estilização da página de login */
.login-bg {
    background: linear-gradient(to bottom, #2c3e50 80%, var(--primary-red) 20%);
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Animação para o logo */
.logo img:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Estilo para a imagem de usuário */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

/* Estilização de campos de busca */
.search-field {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding-left: 40px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* Estilo para o logo do dashboard */
.dashboard-logo {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.dashboard-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Ajuste do espaçamento no container do logo */
.sidebar .logo {
    background-color: rgba(255,255,255,0.1);
    padding: 25px;
    text-align: center;
}

/* Estilo para o logo da página de login */
.login-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

/* Adições para o arquivo style.css - GRW Promotora */
.title-icon {
    font-size: 1.8rem;
    margin-right: 10px;
    color: var(--primary-red);
}

.alert {
    border-radius: 5px;
}

/* Estilos para a página de login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2c3e50;
    overflow: hidden;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.login-card .logo {
    display: block;
    margin: 0 auto 20px;
    width: 200px;
}

.login-box .logo {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.form-check-label {
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-red);
}

.login-footer a:hover {
    color: var(--accent-red);
}

/* Efeito de partículas */
.particle {
    position: absolute;
    background: var(--accent-red);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 25s infinite linear;
    bottom: -200px;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-120vh) rotate(720deg); }
}

/* Estilos para a página de cadastro */
.register-container {
    background-color: #2c3e50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.register-card {
    max-width: 500px;
    width: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-red);
}

.register-card .logo {
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
}

.register-card .form-control {
    border-radius: 8px;
    padding: 10px 15px;
}

.register-card .btn {
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
}

/* Classes de utilidade */
.text-success {
    color: var(--primary-red) !important;
}

/* Adições para o arquivo style.css - GRW Promotora */
.fw-bold {
    font-weight: 700 !important;
}
.fs-7 {
    font-size: .875rem !important;
}
.text-muted {
    color: #6c757d !important;
}

/* Adições para o arquivo style.css - GRW Promotora */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--primary-red);
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}