/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
    --primary-color: #2C5364; /* Azul petróleo escuro */
    --secondary-color: #203A43; /* Azul petróleo mais escuro */
    --accent-color: #0F2027; /* Azul petróleo muito escuro */
    --bg-gradient: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 100%); /* Gradiente suave em tons de azul */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.25rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ===== ESTILOS GLOBAIS ===== */
body {
    background: #f5f5f5; /* Cinza bem clarinho como mostrado na imagem */
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0; /* Remova margens padrão do body */
    display: flex; /* Flexbox para o footer */
    flex-direction: column; /* Empilha header, main e footer verticalmente */
    line-height: 1.6;
    color: var(--dark-color);
}

/*Para o conteudo principal*/
main {
    flex: 1; /* Ocupa todo o espaço disponível, empurrando o footer para baixo */
}

/* ===== ESTILOS DO NAVBAR ===== */
.navbar {
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    background: white;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ===== ESTILOS DO DASHBOARD ===== */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.dashboard-stats {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== ESTILOS DE FORMULÁRIOS ===== */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.3s ease;
}

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

/* ===== ESTILOS DE TABELAS ===== */
.table {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* ===== ESTILOS DE BOTÕES ===== */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* ===== ESTILOS DE MODAIS ===== */
.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* ===== ESTILOS DE ALERTAS ===== */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

/* ===== ESTILOS DE CARDS ===== */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ===== ESTILOS DE BADGES ===== */
.badge {
    padding: 0.5em 0.75em;
    border-radius: 10px;
    font-weight: 500;
}

/* ===== ESTILOS DE LOADING ===== */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ESTILOS DE TOOLTIPS ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    position: absolute;
    z-index: 1;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== ESTILOS DE PAGINAÇÃO ===== */
.pagination {
    margin: 2rem 0;
}

.page-link {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
}

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

/* ===== ESTILOS DE RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        margin: 0 -1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ===== ESTILOS DE UTILIDADES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-light { color: var(--light-color) !important; }
.text-dark { color: var(--dark-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

/* ===== ESTILOS ESPECÍFICOS DO SISTEMA ===== */
.form-wizard {
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
}

.wizard-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    color: #666;
    cursor: pointer;
}

.step.active {
    background: var(--primary-color);
    color: white;
}

.step.completed {
    background: var(--accent-color);
    color: white;
}

.input-group-text {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
}

.btn-nav {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-card {
    display: none;
}

.section-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/*Estilo do footer*/
.wizard-footer {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-link {
    color: #a3d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #7fbfff;
}

.footer-heart {
    color: #ff6b6b;
}

/* Estilo para as mensagens de erro*/
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Ajustes para telas pequenas */
@media (max-width: 768px) {
    .btn-nav {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

.input-group .numero-icon {
    width: auto;
    flex: none;
}

.input-group .numero-input {
    flex: 1;
}

/* Espaçamento para páginas */
.page-header {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

h1.page-header, h2.page-header, h3.page-header {
    font-weight: 600;
    color: var(--primary-color);
}

/* Classes para o dropdown de notificações */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10rem;
    transform: translate(25%, -25%);
}

.icon-circle {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajustes para o menu principal */
.container.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Estilo para notificações não lidas */
.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.08);
}

/* Corrigir altura do conteúdo */
.container.mt-4 {
    min-height: calc(100vh - 150px);
}

/* ===== ESTILOS PARA CÍRCULOS DE AVATAR/INICIAIS ===== */
.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
}

.avatar-circle.sm {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.avatar-circle.lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* ===== ÍCONES DE ATIVIDADE ===== */
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.activity-icon i {
    font-size: 1.2rem;
}

/* ===== FEED E LISTA DE MEMBROS ===== */
.feed-item, .member-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    background-color: white;
}

.feed-item-header, .member-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feed-item-header .avatar-circle, .member-item-header .avatar-circle {
    margin-right: 0.75rem;
}

.feed-item-content, .member-item-content {
    margin-top: 0.5rem;
}

/* ===== ESPAÇAMENTO DE CONTÊINER ===== */
.container.main-container {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* ===== ESTILOS PARA DEPARTAMENTOS ===== */
.departamento-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
    background-color: white;
    border: 1px solid rgba(0,0,0,0.1);
}

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

.departamento-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: var(--light-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.departamento-body {
    padding: 1rem;
}

.departamento-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    background-color: var(--light-color);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* ===== NOTIFICAÇÕES ===== */
.notification-list {
    max-height: 600px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.notification-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.1);
}

.notification-item .notification-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.notification-item .notification-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.notification-item .notification-content {
    margin-top: 0.5rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .card, .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .table-responsive {
        border-radius: var(--border-radius);
        overflow: hidden;
    }
}