/* =========================================================
   GLOBAL STYLES
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a4e8e;
    --secondary: #c9a568;
    --accent: #8a2432;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --admin-bg: #f0f4f8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;

    /* ESSENCIAL PARA O LAYOUT FIXAR HEADER/FOOTER */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
    background: linear-gradient(rgba(26, 78, 142, 0.8), rgba(26, 78, 142, 0.9)), 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a4e8e"/><path d="M0 0L100 100" stroke="%23c9a568" stroke-width="2"/><path d="M100 0L0 100" stroke="%23c9a568" stroke-width="2"/></svg>');
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-img {
    width: 7rem;
    height: auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    display: block;
    font-size: 1rem;
    font-weight: 300;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: linear-gradient(rgba(26, 78, 142, 0.8), rgba(26, 78, 142, 0.9)), 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a4e8e"/><path d="M0 0L100 100" stroke="%23c9a568" stroke-width="2"/><path d="M100 0L0 100" stroke="%23c9a568" stroke-width="2"/></svg>');
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 0 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.slogan {
    font-style: italic;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.dev-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.dev-link:hover {
    color: #e6c382;
    text-decoration: underline;
}

.dev-slogan {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
    font-style: italic;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

/* =========================================================
   LOGIN PAGE STYLES
   ========================================================= */
body.login-page {
    background-color: var(--admin-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    margin: 0 auto;
}

.login-header {
    background: linear-gradient(to right, var(--primary), #2a63b3);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p { opacity: 0.9; }

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.login-body { padding: 2rem; }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 78, 142, 0.2);
}

.input-with-icon { position: relative; }

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
}

/* Botões exclusivos do login */
.login-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover { background-color: #0d3a6b; }

.login-btn.admin {
    background-color: var(--accent);
}

.login-btn.admin:hover {
    background-color: #6b1a27;
}

/* Footer do login */
.login-footer {
    text-align: center;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
}

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

/* Badge de administrador */
.admin-badge {
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================================================
   ADMIN PAGE STYLES
   ========================================================= */
.welcome-message {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 100%;
}

.welcome-message h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.welcome-message p {
    color: #666;
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.1rem;
    padding: 0 10px;
}

 /* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary);
    width: 100%;
    max-width: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.dashboard-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.dashboard-card:nth-child(3) {
    border-top-color: var(--accent);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.events-icon {
    color: var(--primary);
}

.gallery-icon {
    color: var(--secondary);
}

.users-icon {
    color: var(--accent);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.card-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.dashboard-card:nth-child(2) .card-count {
    color: var(--secondary);
}

.dashboard-card:nth-child(3) .card-count {
    color: var(--accent);
}

.card-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.card-button:hover {
    background-color: #0d3a6b;
    text-decoration: none;
    color: white;
}

/* =========================================================
   ADMIN MANAGEMENT STYLES
   ========================================================= */

/* Seção de Gerenciamento */
.management-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.section-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #0d3a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 78, 142, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-warning {
    background-color: #ffc107;
    color: var(--dark);
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Alertas */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Tabela de Dados */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(to right, var(--primary), #2a63b3);
    color: white;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges de Status */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-publicado {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rascunho {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ações da Tabela */
.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.actions .btn {
    white-space: nowrap;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content.large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content > h3 {
    background: linear-gradient(to right, var(--primary), #2a63b3);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
    position: relative;
    padding-right: 3.5rem; /* Espaço para o botão fechar */
}

.modal-content > .close,
.modal-content > .close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}

.modal-content > .close:hover,
.modal-content > .close-modal:hover {
    color: var(--secondary);
}

#modalPacotes .modal-content.large {
    display: flex;
    flex-direction: column;
}

#modalPacotes .modal-content.large > .btn-primary {
    align-self: center;
    margin-top: 1.5rem;
}

/* Formulários nos Modais */
#formEvento,
#formPacote {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 78, 142, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkboxes */
.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Ações do Formulário */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Lista de Pacotes */
#listaPacotes {
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.pacote-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pacote-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1rem;
}

.pacote-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.pacote-preco {
    font-weight: bold;
    color: var(--success);
    font-size: 1.1rem;
}

.pacote-actions {
    display: flex;
    gap: 0.5rem;
}

/* admin.css ou dentro de <style> */
.status-badge.status-pagamento-pendente {
    background-color: #ff9800;
    color: white;
}

.status-badge.status-pagamento-pago {
    background-color: #4caf50;
    color: white;
}

.status-badge.status-pagamento-reembolsado {
    background-color: #2196f3;
    color: white;
}

.status-badge.status-pagamento-cancelado {
    background-color: #f44336;
    color: white;
}

.filter-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.detalhes-inscricao {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 15px 0;
}

.detalhes-inscricao h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.info-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.info-group p {
    margin: 0;
    color: #333;
    font-size: 15px;
}

.current-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.progresso-pagamento {
    margin: 5px 0;
}

.progresso-texto {
    font-size: 14px;
    margin-bottom: 3px;
}

.progresso-texto small {
    font-size: 11px;
    color: #666;
}

.progress-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 2px 0;
}

.progresso-fill {
    height: 100%;
    background-color: #28a745;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progresso-percentual {
    font-size: 11px;
    text-align: right;
    color: #666;
}

/* =========================================================
   HOME PAGE STYLES
   ========================================================= */

/* Section Title */
.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding: 0 1rem;
}

/* Events Slider */
.events-slider-section {
    padding: 1rem 0 2rem;
}

.events-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 1rem;
}

.event-slide {
    flex: 0 0 auto;
    width: 350px;
}

.event-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    transition: transform 0.3s ease;
    /*margin: 0;*/
}

.event-card:hover {
    transform: translateY(-3px);
}

.events-slider::-webkit-scrollbar {
    height: 6px;
}

.events-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
    margin: 0 1rem;
}

.events-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.events-slider::-webkit-scrollbar-thumb:hover {
    background: #0d3a6b;
}

/* Indicador visual de que é scrollable */
.events-slider-section {
    position: relative;
}

.events-slider-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--light));
    pointer-events: none;
    opacity: 0.7;
}


.event-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #2a63b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.7;
}

.event-info {
    padding: 1.25rem;
}

.event-info h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.detail-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.event-description {
    color: #555;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* Packages Slider */
.packages-slider {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--light);
}

.packages-slider h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.packages-container {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0.2rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.package-slide {
    flex: 0 0 auto;
    width: 150px;
}

.package-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.package-card:hover {
    border-color: var(--primary);
    background: white;
}

.package-card h5 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-price {
    color: var(--success);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.package-features {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.package-features span {
    font-size: 1rem;
    filter: brightness(0.8); /* Escurece um pouco os emojis */
}

.btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    margin-top: auto;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-cancelado {
    opacity: 0.55;
    filter: grayscale(70%);
    border: 2px solid #d9534f;
    position: relative;
}

.event-status-badge {
    background: #d9534f;
    color: white;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}


/* Estados vazios */
.no-events {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 0 1rem;
}

.no-packages {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Scrollbar personalizada */
.packages-container::-webkit-scrollbar {
    height: 4px;
}

.packages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.packages-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.packages-container::-webkit-scrollbar-thumb:hover {
    background: #0d3a6b;
}


.event-cancelado {
    opacity: 0.55;
    filter: grayscale(70%);
    border: 2px solid #d9534f;
    position: relative;
}

.event-status-badge {
    background: #d9534f;
    color: white;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* =========================================================
   MODAL DE INSCRIÇÃO STYLES
   ========================================================= */

/* Modal de Inscrição */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    background: linear-gradient(to right, var(--primary), #2a63b3);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}

.close-modal:hover {
    color: var(--secondary);
}

/* Formulário do Modal */
#subscriptionForm {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 78, 142, 0.1);
}

/* Resumo da Inscrição */
.form-summary {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.form-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.form-summary p {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.9rem;
}

/* Botão do Modal */
.modal-content .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.modal-content .btn-primary {
    background: linear-gradient(135deg, var(--primary), #2a63b3);
    color: white;
}

.modal-content .btn-primary:hover {
    background: linear-gradient(135deg, #0d3a6b, #1a4e8e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 78, 142, 0.3);
}

/* Estados de loading */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-content h3 {
        padding: 1.25rem;
        font-size: 1.2rem;
    }
    
    #subscriptionForm {
        padding: 1.25rem;
    }
    
    .close-modal {
        right: 1.25rem;
        top: 1.25rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        width: 98%;
    }
    
    .modal-content h3 {
        padding: 1rem;
        padding-right: 3rem; /* Espaço para o botão fechar */
        font-size: 1.1rem;
    }
    
    #subscriptionForm {
        padding: 1rem;
    }
    
    .form-summary {
        padding: 1rem;
    }
    
    .form-group input {
        padding: 0.7rem 0.9rem;
        font-size: 16px; /* Evita zoom no iOS */
    }
}

/* Para telas muito pequenas em altura */
@media (max-height: 600px) {
    .modal-content {
        margin: 2% auto;
        max-height: 96vh;
    }
}

/* =========================================================
   MODAIS DE ADMIN - ESTILOS ESPECÍFICOS
   ========================================================= */

/* Ajustes para o corpo dos modais admin */
.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal grande para detalhes */
.modal-content.large {
    max-width: 700px;
}

/* Estilos específicos para detalhes da inscrição */
.detalhes-inscricao {
    padding: 0;
}

.detalhes-inscricao h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.detalhes-inscricao h4:first-child {
    margin-top: 0;
}

.info-group {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f5f5f5;
}

.info-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-group label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-group p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Status badges para pagamento */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pagamento-pendente {
    background-color: #ff9800;
    color: white;
}

.status-pagamento-pago {
    background-color: #4caf50;
    color: white;
}

.status-pagamento-reembolsado {
    background-color: #2196f3;
    color: white;
}

.status-pagamento-cancelado {
    background-color: #f44336;
    color: white;
}

/* Campo de status atual */
.current-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    margin-top: 0.5rem;
}

/* Ajustes para selects e textareas dentro de modais */
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 78, 142, 0.1);
}

.modal-content textarea {
    min-height: 80px;
    resize: vertical;
}

/* Ajuste para formulários em modal */
#formStatusInscricao {
    padding: 0;
}

/* Ações do formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Botões específicos para admin */
.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsividade para modais admin */
@media (max-width: 768px) {
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-footer {
        padding: 1.25rem;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
    
    .detalhes-inscricao h4 {
        font-size: 1rem;
    }
    
    .info-group {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
}

/* =========================================================
   ESTADOS DO BOTÃO DE INSCRIÇÃO
   ========================================================= */
.btn-disabled {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Vagas do pacote */
.package-vacancies {
    margin-bottom: 0.8rem;
}

.package-vacancies small {
    font-size: 0.75rem;
    color: #666;
}

.package-vacancies .unlimited {
    color: var(--success);
    font-weight: 500;
}

.package-vacancies .sold-out {
    color: var(--accent);
    font-weight: 500;
}


/* =========================================================
   RESPONSIVE STYLES - ESTRATÉGIA MOBILE FIRST
   ========================================================= */

/* Mobile (default) - até 480px */
/* Suas regras mobile já estão no código principal */

/* Tablet - 481px a 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .events-slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        overflow-x: visible;
    }
    
    .event-slide {
        width: 100%;
    }
    
    .footer-content {
        justify-content: space-around;
    }
}

/* Small Desktop - 769px a 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .events-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav ul li {
        margin: 0 15px;
    }
}

/* Desktop - 1025px a 1440px */
@media (min-width: 1025px) {
    .container {
        padding: 0 2rem;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .events-slider {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2rem;
    }
    
    .package-slide {
        width: 180px;
    }
    
    /* Remove o efeito de gradiente do scroll em desktop */
    .events-slider-section::after {
        display: none;
    }
}

/* Large Desktop - acima de 1440px */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .events-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   CORREÇÕES ESPECÍFICAS
   ========================================================= */

/* Remove media queries redundantes e consolida */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    body {
        font-size: 14px;
    }
    
    .events-slider-section .container {
        padding: 0 1rem; /* Corrige o padding zero que pode causar problemas */
    }
    
    /* Header mobile */
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}

/* Ajustes para mobile muito pequeno - mantém apenas se necessário */
@media (max-width: 380px) {
    .event-info {
        padding: 0.8rem;
    }
    
    .event-info h3 {
        font-size: 1.1rem;
    }
    
    .package-slide {
        width: 130px;
    }
    
    .package-card {
        min-height: 160px;
        padding: 0.6rem;
    }
}
