/* ===== ESTILOS GERAIS ===== */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;

    /*background: linear-gradient(135deg,rgb(146, 240, 204) 0%,rgb(13, 104, 81) 100%);*/
    min-height: 100vh;

    }
        .card {
            border: none;
            /* remove legacy radius to use global standard below */
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        .btn-primary {
            background: linear-gradient(45deg, #66ea8e, #0b6e24);
        }
        .btn-outline-primary {
            border-color: #0b7039;
            color: #0b7039;
           /*border-radius: 10px;
            padding: 8px 30px;*/
        }
        .btn-outline-primary:hover {
            background: #0b7039;
            border-color: #0b7039;
        }
        .form-control {
            border-radius: 25px;
            padding: 12px 20px;
            border: 2px solid #e9ecef;
        }
        .form-control:focus {
            border-color: #095e3a;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

/*links*/
a {
    color: rgb(1 12 0);
    text-decoration: underline;
}
/*espacamento final*/
.p-botton-30 {
    padding-bottom: 30px;
}

/* ===== ESTILOS DE REGISTRO E AUTENTICAÇÃO ===== */
.register-container, .login-container, .auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.register-card, .login-card, .auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    width: 100%;
}

.logo-section {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-section img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.logo-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.logo-section p {
    color: #7f8c8d;
    margin: 0;
}

.form-section {
    padding: 30px;
}

/* ===== INDICADOR DE ETAPAS ===== */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-line {
    width: 50px;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
}

.step.completed + .step-line {
    background: #28a745;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* ===== FORMULÁRIOS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* ===== VALIDAÇÃO DE SENHA ===== */
.password-strength {
    margin-top: 8px;
}

.password-strength .progress {
    height: 5px;
    border-radius: 3px;
}

.password-strength .progress-bar {
    transition: all 0.3s ease;
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: linear-gradient(135deg, #28a745, #0e7757);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    background: #6c757d;
    font-weight: 600;
}

.btn-success {
    font-weight: 600;
}

/* ===== ESTILO GLOBAL DE BOTÕES ===== */
/* Padroniza todos os botões mantendo cores dos variantes */
.btn {
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 5px !important;
    padding:6px;
    /*padding: 5px 30px !important;*/
}

/* Bordas seguindo as cores Bootstrap */
.btn-primary { border-color: var(--bs-primary) !important; }
.btn-secondary { border-color: var(--bs-secondary) !important; }
.btn-success { border-color: var(--bs-success) !important; }
.btn-info { border-color: var(--bs-info) !important; }
.btn-warning { border-color: var(--bs-warning) !important; }
.btn-danger { border-color: var(--bs-danger) !important; }
.btn-light { border-color: var(--bs-light) !important; }
.btn-dark { border-color: var(--bs-dark) !important; }

/* ===== ARREDONDAMENTO GLOBAL DE CARDS ===== */
.card {
    border-radius: 5px !important;
}

/* ===== ALERTAS ===== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

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

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

/* ===== INPUTS COM TOGGLE ===== */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

.input-group {
    position: relative;
}

.toggle-password {
    border-left: 1px solid #dee2e6;
}

/* ===== ESTILOS ADMINISTRATIVOS ===== */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #dedede 0%, #3c7d59  100%);
    position: fixed;
    /*top: 56px;*/
    left: 0;
    z-index: 100;
    /*padding: 48px 0 0;*/
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #303030;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.9);
    color: #022b1a;
}

.main-content {
    background-color: #f8f9fa;
    min-height: 100vh;
    margin-left: 0;
}

@media (min-width: 768px) {
    .main-content {
        /*margin-left: 240px;*/
        padding: 15px;
    }
}

.stats-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

/* ===== UTILITÁRIOS ===== */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.badge-sm {
    font-size: 0.7em;
}

.text-xs {
    font-size: 0.75rem;
}

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

.text-uppercase {
    text-transform: uppercase !important;
}

/* ===== TABELAS ===== */
.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table-responsive {
    border-radius: 0.5rem;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ===== CARDS ===== */
.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* ===== MODAIS ===== */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem 1rem 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
}

/* ===== ANIMAÇÕES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ===== ESTADOS DE LOADING ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== ESTILOS ESPECÍFICOS DE PÁGINAS ===== */

/* Home Page */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Error Page */
.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #dc3545;
    line-height: 1;
}

.error-message {
    font-size: 1.5rem;
    color: #6c757d;
    margin: 1rem 0;
}

/* Welcome Page */
.welcome-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .register-container, .login-container, .auth-container {
        padding: 10px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .step-indicator {
        flex-wrap: wrap;
    }
    
    .step-line {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
}

@media (max-width: 767.98px) {
   .container-fluid {padding: 0px 0px 10px 0px !important;}
    .sidebar {
        display: none;
    }

    .main-content .nome {
        margin-left: 0;
        padding: 10px !important; /* Espaço para o navbar fixo mobile */
    }
    .nome {
        margin-left: 10px;
        /*padding: 10px !important; /* Espaço para o navbar fixo mobile */
    }
    body {
        padding-top: 0; /* Remove padding-top do body em mobile */
        padding-bottom: 80px; /* Espaço extra para footer em telas menores */
    }
    
    /* Navbar mobile específico */
    .navbar.fixed-top {
        z-index: 1030;
    }
    .navbar .container-fluid {
        padding: 0px 10px 0px 10px !important;
    }
    /* Ajustes para o conteúdo principal em mobile */
    .container-fluid .row {
        margin: 0;
    }
}

/* ===== UTILITÁRIOS ADICIONAIS ===== */
.btn-group .btn {
    margin: 0 1px;
}

.text-decoration-none {
    text-decoration: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.position-relative {
    position: relative;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.border-0 {
    border: 0 !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

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

.fs-1 {
    font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-4 {
    font-size: calc(1.275rem + 0.3vw) !important;
}

.lh-1 {
    line-height: 1 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.user-select-none {
    user-select: none !important;
}

/* Espaço inferior global para evitar sobreposição do footer fixo */
body { padding-bottom: 64px; }
