/* Admin Panel Styles */

/* Main Content - compensar header fixo */
.main-content {
    margin-top: 80px; /* Ajustar conforme a altura do header */
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.admin-header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.admin-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card i {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* Admin Actions */
.admin-actions {
    padding: 2rem 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.action-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.action-icon i {
    font-size: 1.8rem;
    color: white;
}

.action-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.action-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-card:hover .action-button {
    color: #764ba2;
}

.action-button i {
    transition: transform 0.3s ease;
}

.action-card:hover .action-button i {
    transform: translateX(5px);
}

/* Recent Activity */
.recent-activity {
    background: #f8f9fa;
    padding: 3rem 0;
    border-radius: 20px;
    margin: 2rem 0;
}

.recent-activity h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.activity-list {
    max-width: 800px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: white;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.activity-time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

/* Modal Styles */
.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: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

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

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

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

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

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-edit {
    background: #007bff;
    color: white;
}

.btn-edit:hover {
    background: #0056b3;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(220,53,69,0.08);
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #b71c1c;
}

.btn-view {
    background: #28a745;
    color: white;
}

.btn-view:hover {
    background: #218838;
}

.btn-duplicate {
    background: #6f42c1;
    color: white;
}

.btn-duplicate:hover {
    background: #5a32a3;
}

/* Search Container */
.search-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin-bottom: 1rem;
}

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

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

.clear-search {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: #e9ecef;
    color: #495057;
}

.search-info {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Admin Form */
.admin-form {
    max-width: 100%;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group label[for*="IsAdmin"] {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-stats {
        justify-content: center;
    }
    
    .stat-card {
        min-width: 120px;
        padding: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-header-text h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
    }
    
    .action-icon i {
        font-size: 1.5rem;
    }
} 

.admin-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.admin-modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.admin-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 1000px;
    width: 90vw;
    max-height: 80vh;
    overflow: auto;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.admin-modal-content {
    padding: 2rem;
    overflow-y: auto;
} 

.admin-registrations-table-container {
    overflow-x: auto;
    padding: 1rem 0;
}

.admin-registrations-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.admin-registrations-table th, .admin-registrations-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.admin-registrations-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-registrations-table tr:last-child td {
    border-bottom: none;
}

.admin-registrations-table td {
    background: #fff;
}

.btn-details {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: auto;
}

.btn-details:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
} 

.admin-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.admin-modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #ffd700;
    transform: scale(1.1);
}

.btn-back {
    background: #f3f3f3;
    color: #764ba2;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    margin-bottom: 1rem;
    margin-right: 1rem;
    display: inline-block;
}

.btn-back:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px) scale(1.04);
} 

/* Results Management Styles */
.results-management-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.race-selection h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.race-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.race-card {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.race-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.race-card.selected {
    border-color: #667eea;
    background: #e8f4fd;
}

.race-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.race-card p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.race-card .race-date {
    font-weight: 600;
    color: #667eea;
}

.results-section {
    border-top: 2px solid #e1e5e9;
    padding-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.results-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #667eea;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .race-list {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .results-header .btn {
        width: 100%;
    }
} 

/* Garantir que o conteúdo do modal não corte o botão de salvar */
.admin-modal-content, .modal-content {
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#mpConfigForm {
  padding-bottom: 2rem;
} 

/* Botão bonito para o modal de configurações */
#mpConfigForm button[type='submit'] {
  background: #4f6bed;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem auto 0 auto;
  display: block;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79,107,237,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
#mpConfigForm button[type='submit']:hover {
  background: #3246a8;
  box-shadow: 0 4px 16px rgba(79,107,237,0.15);
} 

.admin-modal-content .form-group,
.admin-modal-content .form-group label,
.admin-modal-content .form-group input,
.admin-modal-content .form-group select,
.admin-modal-content .form-group textarea {
    text-align: left !important;
} 

#resultFormModal .form-group,
#resultFormModal .form-group label,
#resultFormModal .form-group input,
#resultFormModal .form-group select,
#resultFormModal .form-group textarea {
    text-align: left !important;
} 

#editUserModal .form-group,
#editUserModal .form-group label,
#editUserModal .form-group input,
#editUserModal .form-group select,
#editUserModal .form-group textarea {
    text-align: left !important;
} 

.actions .btn-action:not(:last-child) {
    margin-bottom: 6px;
} 

/* Estilos específicos para o modal de detalhes da inscrição */
.admin-modal-content .admin-registration-details {
    max-width: 100%;
}

.admin-modal-content .admin-registration-details h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.admin-modal-content .detail-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-left: 3px solid #667eea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.admin-modal-content .detail-section h4 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-modal-content .detail-section h4 i {
    color: #667eea;
    font-size: 1rem;
}

.admin-modal-content .detail-section p {
    margin: 0.4rem 0;
    color: #555;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-modal-content .detail-section p b {
    color: #333;
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
}

.admin-modal-content .admin-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e9ecef;
}

.admin-modal-content .btn-admin {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #667eea;
    color: white;
}

.admin-modal-content .btn-admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.2);
}

.admin-modal-content .btn-admin:nth-child(1) {
    background: #28a745;
}

.admin-modal-content .btn-admin:nth-child(2) {
    background: #dc3545;
}

.admin-modal-content .btn-admin:nth-child(3) {
    background: #17a2b8;
}

.admin-modal-content .btn-admin:nth-child(4) {
    background: #ffc107;
    color: #333;
}

.admin-modal-content .btn-admin:nth-child(5) {
    background: #6f42c1;
}

/* Badges específicos para o modal */
.admin-modal-content .payment-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-modal-content .payment-paid {
    background: #d4edda;
    color: #155724;
}

.admin-modal-content .payment-pending {
    background: #fff3cd;
    color: #856404;
}

.admin-modal-content .payment-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive para o modal de detalhes */
@media (max-width: 768px) {
    .admin-modal-content .admin-registration-details h3 {
        font-size: 1.4rem;
    }
    
    .admin-modal-content .detail-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .admin-modal-content .detail-section h4 {
        font-size: 1rem;
    }
    
    .admin-modal-content .detail-section p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .admin-modal-content .detail-section p b {
        min-width: auto;
    }
    
    .admin-modal-content .admin-actions {
        flex-direction: column;
    }
    
    .admin-modal-content .btn-admin {
        width: 100%;
        justify-content: center;
    }
} 

/* Estilos específicos para o modal de detalhes da inscrição */
.admin-registration-details .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-registration-details .detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.admin-registration-details .detail-section h4 {
    margin: 0 0 15px 0;
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
}

.admin-registration-details .detail-section p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.admin-registration-details .detail-section b {
    color: #495057;
    font-weight: 600;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .admin-registration-details .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-registration-details .detail-section {
        padding: 15px;
    }
} 

/* Estilos para Scanner de QR Code */
.qr-scanner-container {
    max-width: 600px;
    margin: 0 auto;
}

.qr-scanner-header {
    text-align: center;
    margin-bottom: 2rem;
}

.qr-scanner-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.qr-scanner-header p {
    color: #666;
    margin: 0;
}

.qr-scanner-area {
    position: relative;
    margin-bottom: 2rem;
}

.qr-scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.qr-scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.qr-scanner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.qr-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.qr-result-content h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.participant-details {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.participant-details p {
    margin: 0.5rem 0;
    color: #333;
}

.manual-qr-input {
    max-width: 400px;
    margin: 0 auto;
}

.manual-qr-input h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

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

.manual-qr-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .qr-scanner-frame {
        width: 150px;
        height: 150px;
    }
    
    .qr-scanner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
} 

/* Estilos para modal de transferência de inscrição */
.transfer-registration-modal {
    max-width: 800px;
    margin: 0 auto;
}

.transfer-info h3 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-registration-info,
.transfer-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.current-registration-info h4,
.transfer-form h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-item span {
    color: #333;
    font-size: 1rem;
}

.transfer-form p {
    color: #666;
    margin-bottom: 1rem;
}

.transfer-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.transfer-warning i {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.transfer-warning p {
    color: #856404;
    margin: 0;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

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

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#newUserInfo {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

#newUserInfo h5 {
    color: #155724;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .transfer-registration-modal {
        padding: 1rem;
    }
}

/* Estilos para filtros avançados de inscrições */
#advancedFilters {
    transition: all 0.3s ease;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

#advancedFilters select {
    transition: all 0.2s ease;
}

#advancedFilters select:hover {
    border-color: #007bff;
}

#advancedFilters select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilos para cards de estatísticas de categorias */
.category-stat-card {
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.category-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contador de resultados */
#resultsCounter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

#resultsCounter strong {
    color: #007bff;
}

/* Melhorias na responsividade dos filtros */
@media (max-width: 768px) {
    #advancedFilters {
        flex-direction: column;
        align-items: stretch;
    }
    
    #advancedFilters select {
        margin-bottom: 0.5rem;
    }
} 

 