/* Estilos personalizados para o formulário de inscrição */

body {
    background-color: #f8f9fa;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.btn-primary {
    background-color: #1e5631;
    border-color: #1e5631;
}

.btn-primary:hover {
    background-color: #2d7a3d;
    border-color: #2d7a3d;
}

.form-control:focus {
    border-color: #1e5631;
    box-shadow: 0 0 0 0.2rem rgba(30, 86, 49, 0.25);
}

.form-select:focus {
    border-color: #1e5631;
    box-shadow: 0 0 0 0.2rem rgba(30, 86, 49, 0.25);
}

.alert {
    border: none;
    border-radius: 0.375rem;
}

.badge {
    font-size: 0.75em;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.border-bottom {
    border-bottom: 2px solid #dee2e6 !important;
}

.text-primary {
    color: #1e5631 !important;
}

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

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

.text-info {
    color: #17a2b8 !important;
}

.bg-primary {
    background-color: #1e5631 !important;
}

.bg-success {
    background-color: #28a745 !important;
}

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

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Estilos para o formulário dinâmico */
#inscricoes-container .border {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

#inscricoes-container .border:hover {
    border-color: #1e5631 !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 86, 49, 0.1);
}

/* Estilos para o resumo */
#resumo-inscricao .d-flex {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

#resumo-inscricao .d-flex:last-child {
    border-bottom: none;
}

/* Estilos para campos obrigatórios - removido para evitar duplicação */

/* Estilos para o logo */
.logo-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background-color: rgba(255,255,255,0.3) !important;
}

/* Estilos para botões com tema verde */
.btn-outline-primary {
    color: #1e5631;
    border-color: #1e5631;
}

.btn-outline-primary:hover {
    background-color: #1e5631;
    border-color: #1e5631;
    color: white;
}

/* Estilos para badges e elementos de status */
.badge.bg-primary {
    background-color: #1e5631 !important;
}

/* Estilos para links */
a {
    color: #1e5631;
}

a:hover {
    color: #2d7a3d;
}

/* Estilos para a homepage */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.hero-content {
    padding: 2rem 0;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    background-color: rgba(30, 86, 49, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(30, 86, 49, 0.2);
    transform: translateY(-2px);
}

.hero-logo {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.info-box {
    border-left: 4px solid #1e5631;
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 4px 15px rgba(30, 86, 49, 0.1);
}

.inscription-box {
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 86, 49, 0.3);
}

.inscription-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(30, 86, 49, 0.4);
}

.contact-item {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.contact-item:hover {
    background-color: rgba(30, 86, 49, 0.05);
    transform: translateY(-2px);
}

.feature-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.feature-item:last-child {
    border-bottom: none;
}

.event-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.event-item:last-child {
    border-bottom: none;
}

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

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

/* Estilos para validação */
.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #28a745;
}

/* ===== NOVAS FEATURES v1.1.0 ===== */


/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e5631;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress bar */
.progress-custom {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar-custom {
    background: linear-gradient(90deg, #1e5631, #2d7a3d);
    height: 100%;
    transition: width 0.3s ease;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast-custom {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    margin-bottom: 10px;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

/* Enhanced form validation */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* Improved mobile responsiveness */
@media (max-width: 576px) {
    .toast-custom {
        min-width: 280px;
        margin: 0 10px 10px 10px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

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

/* Focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #1e5631;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .btn,
    .toast-container,
    .spinner {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
