/* ============================================
   BODES DO TATAME - ITANHAÉM
   Estilos Personalizados
   ============================================ */

/* ========== VARIÁVEIS ========== */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #c41e3a;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
}

/* ========== RESET E BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== NAVBAR ========== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--white) !important;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    color: var(--text-dark) !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    background-color: rgba(196, 30, 58, 0.05);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    width: 100%;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }
}

/* ========== PAGE HEADER ========== */
.page-header-section {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #a01829;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background-color: #b89730;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-outline-dark {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ========== CARDS ========== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: 2rem;
}

.hover-card {
    cursor: pointer;
}

.hover-card:hover {
    border: 2px solid var(--accent-color);
}

/* ========== SECTIONS ========== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ========== BADGES ========== */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ========== ALERTS ========== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1.5rem;
}

.alert-primary {
    background-color: rgba(196, 30, 58, 0.1);
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-left: 4px solid #0d6efd;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ========== SHADOW EFFECTS ========== */
.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-sm {
    box-shadow: 0 1px 10px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-hover) !important;
}

/* ========== BACKGROUND COLORS ========== */
.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-dark {
    background-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--accent-color) !important;
}

/* ========== GRADUAÇÕES - CORES DAS FAIXAS ========== */
.faixa-branca {
    background-color: #ffffff;
    border: 2px solid #ddd;
}

.faixa-azul {
    background-color: #0d6efd;
}

.faixa-amarela {
    background-color: #ffc107;
}

.faixa-laranja {
    background-color: #fd7e14;
}

.faixa-verde {
    background-color: #198754;
}

.faixa-roxa {
    background-color: #6f42c1;
}

.faixa-marrom {
    background-color: #8b4513;
}

.faixa-preta {
    background-color: #000000;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
}

footer h4, footer h5, footer h6 {
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* ========== MODAIS ========== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--accent-color);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--primary-color);
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.1);
}

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

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========== LIST GROUPS ========== */
.list-group-item {
    border: none;
    padding: 1rem 0;
    background-color: transparent;
}

/* ========== UTILITY CLASSES ========== */
.text-primary {
    color: var(--accent-color) !important;
}

.text-muted {
    color: var(--text-light) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* ========== PRINT ========== */
@media print {
    .navbar,
    footer,
    .btn,
    .modal {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ========== ACESSIBILIDADE ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========== LOADING SPINNER ========== */
.spinner-border {
    border-color: var(--accent-color);
    border-right-color: transparent;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

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

/* ========== TOOLTIP CUSTOMIZADO ========== */
.tooltip-inner {
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

/* ========== TRANSITIONS GLOBAIS ========== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========== ESPAÇAMENTOS CUSTOMIZADOS ========== */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.my-6 {
    margin-top: 6rem !important;
    margin-bottom: 6rem !important;
}

.logo{
    height: 60px;
    width: 60px;
    padding-right: 5px;
    padding-bottom: 5px;
}

/* ========== NOTIFICAÇÕES TOAST ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-notification {
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    animation: slideInRight 0.4s ease-out;
    border-left: 5px solid #198754;
}

.toast-notification.error {
    border-left-color: #dc3545;
}

.toast-notification.success {
    border-left-color: #198754;
}

.toast-icon {
    font-size: 28px;
    margin-right: 15px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.toast-message {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-notification.removing {
    animation: slideOutRight 0.4s ease-out forwards;
}

@media (max-width: 576px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast-notification {
        min-width: auto;
        width: 100%;
    }
}