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

.registrations-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.registrations-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.registrations-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filters Section */
.filters-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filters-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

#clearFiltersBtn {
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

#clearFiltersBtn:hover {
    background: #5a6268;
}

/* Registrations Section */
.registrations-section {
    padding: 3rem 0;
}

.registrations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.view-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    color: #667eea;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Registrations Grid */
.registrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.registration-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.registration-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.registration-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

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

.registration-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #28a745;
    color: white;
}

.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-cancelled {
    background: #dc3545;
    color: white;
}

.registration-content {
    padding: 1.5rem;
}

.registration-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.registration-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.registration-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.registration-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-details {
    flex: 1;
    padding: 0.75rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.btn-details:hover {
    background: #5a6fd8;
}

.btn-cancel {
    padding: 0.75rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.btn-cancel:hover {
    background: #c82333;
}

.btn-pay {
    padding: 0.75rem 1.2rem;
    background: linear-gradient(90deg, #ffc107 60%, #ffb300 100%);
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(255,193,7,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.btn-pay:hover {
    background: linear-gradient(90deg, #ffb300 60%, #ffc107 100%);
    color: #222;
    box-shadow: 0 4px 16px rgba(255,193,7,0.18);
}

/* List View */
.registrations-grid.list-view {
    grid-template-columns: 1fr;
}

.registration-card.list-view {
    display: flex;
    align-items: center;
}

.registration-card.list-view .registration-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.registration-card.list-view .registration-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.registration-card.list-view .registration-info {
    flex: 1;
}

.registration-card.list-view .registration-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 0;
}

.registration-card.list-view .registration-actions {
    flex-shrink: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-number:hover:not(.active) {
    background: #f8f9fa;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #f8f9fa;
}

.modal-content {
    padding: 1.5rem;
}

/* Warning Message */
.warning-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.warning-message i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.warning-message h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.warning-message p {
    color: #856404;
    margin-bottom: 0.5rem;
}

.cancel-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.payment-badge {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: 12px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0.1em 0 0 0;
    background: #eee;
    color: #333;
    vertical-align: middle;
}
.detail-item .payment-badge {
    margin-left: 0;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
    display: inline-block;
    float: left;
}
.payment-badge.payment-pending {
    background: #ffc107;
    color: #a05a00;
    border: 1px solid #ffb300;
}
.payment-badge.payment-paid {
    background: #28a745;
    color: #fff;
}
.payment-badge.payment-failed {
    background: #dc3545;
    color: #fff;
}

/* Modal de Detalhes das Inscrições */
.registration-details-modal {
    max-width: 100%;
    margin: 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* Reduzido */
    margin-bottom: 1rem; /* Reduzido */
}

.detail-group {
    background: #f8f9fa;
    padding: 0.75rem 1rem; /* Reduzido */
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-group h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
}

.detail-group h4 i {
    color: #667eea;
    font-size: 1rem;
}

.detail-group p {
    margin-bottom: 0.4rem; /* Reduzido */
    line-height: 1.3;      /* Mais compacto */
}

.detail-group p:last-child {
    margin-bottom: 0;
}

.detail-group p strong {
    min-width: 110px;
    font-size: 0.97rem;
}

/* Estilos específicos para os novos campos */
.detail-group .field-value {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.97rem;
    color: #495057;
}

.detail-group .field-empty {
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registrations-hero-title {
        font-size: 2rem;
    }
    
    .registrations-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .filters-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filters {
        justify-content: center;
    }
    
    .registrations-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .registrations-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-card.list-view {
        flex-direction: column;
    }
    
    .registration-card.list-view .registration-image {
        width: 100%;
        height: 200px;
    }
    
    .registration-card.list-view .registration-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .registration-card.list-view .registration-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .modal {
        width: 95%;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }

    /* Responsividade para o modal */
    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .detail-group {
        padding: 0.5rem 0.7rem;
    }
    
    .detail-group h4 {
        font-size: 0.97rem;
    }
    
    .detail-group p strong {
        min-width: 90px;
        font-size: 0.93rem;
    }
}

/* Estilos específicos para produtos no modal de detalhes */
.products-section {
    margin-top: 1rem;
}

.product-item {
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-quantity-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.product-total-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-top: 16px;
}

.product-total-section .total-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.product-total-section .total-value {
    font-weight: 700;
    font-size: 18px;
}

/* Responsividade para produtos */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .product-image {
        align-self: center;
    }
    
    .product-details {
        text-align: center;
    }
    
    .product-price {
        text-align: center;
    }
} 