/* juegosunidad/assets/styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    min-height: 100vh;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
}

.header-text {
    flex: 1;
}

.header h1 {
    color: #d32f2f;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #d32f2f;
    color: #d32f2f;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover, .nav-btn.active {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.content-section {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.content-section.active {
    display: block;
}

.section-title {
    color: #d32f2f;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #d32f2f;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

tr:hover {
    background: #f8f9fa;
}

.action-btn {
    padding: 8px 16px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accept {
    background: #4caf50;
    color: white;
}

.btn-accept:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-reject:hover {
    background: #da190b;
    transform: translateY(-1px);
}

.btn-paid {
    background: #ff9800;
    color: white;
}

.btn-paid:hover {
    background: #f57c00;
    transform: translateY(-1px);
}

.btn-edit {
    background: #2196f3;
    color: white;
}

.btn-edit:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.btn-delete {
    background: #9c27b0;
    color: white;
}

.btn-delete:hover {
    background: #7b1fa2;
    transform: translateY(-1px);
}

.btn-add {
    background: #009688;
    color: white;
    padding: 12px 24px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.btn-add:hover {
    background: #00796b;
}

.progress-bar {
    background: #eee;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-fill {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.sport-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #d32f2f;
}

.sport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sport-title {
    color: #d32f2f;
    font-size: 1.2rem;
    font-weight: 600;
}

.sport-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.info-item {
    text-align: center;
}

.info-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    color: #d32f2f;
    font-size: 1.1rem;
    font-weight: 600;
}

.back-btn {
    background: #666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #555;
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #d32f2f;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* 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);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    color: #d32f2f;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.2);
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-modal-cancel {
    background: #666;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-modal-save {
    background: #d32f2f;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-modal-cancel:hover {
    background: #555;
}

.btn-modal-save:hover {
    background: #b71c1c;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #e8f5e8;
    color: #4caf50;
}

.status-inactive {
    background: #ffebee;
    color: #f44336;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        flex-direction: column;
    }
}
/* Add this CSS to your assets/styles.css file */

/* Badge styles for new columns */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-comunidad {
    background: #e8f5e8;
    color: #2e7d32;
}

.badge-colonia {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-institution {
    background: #fff3e0;
    color: #ef6c00;
    text-transform: capitalize;
}

.procedencia-text {
    font-size: 0.85rem;
    color: #555;
    max-width: 150px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-muted {
    color: #999;
    font-style: italic;
}

/* Responsive table adjustments */
@media (max-width: 1200px) {
    .table-container {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .procedencia-text {
        max-width: 100px;
    }
}

/* Add this CSS to your assets/styles.css file */

/* Incidencias Section Styles */
.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.incident-row {
    background: #fff5f5 !important;
}

.incident-row:hover {
    background: #ffebee !important;
}

.curp-duplicate {
    color: #d32f2f;
    font-family: monospace;
}

.person-name-duplicate:hover {
    color: #b71c1c !important;
    text-decoration: underline !important;
}

.badge-danger {
    background: #f44336;
    color: white;
}

.sports-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sport-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.sport-tag-more {
    background: #f5f5f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-style: italic;
}

.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-approved {
    background: #e3f2fd;
    color: #1565c0;
}

.status-rejected {
    background: #ffebee;
    color: #d32f2f;
}

.status-paid {
    background: #e8f5e8;
    color: #2e7d32;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

/* Modal Styles for Incidencias */
.modal-wide {
    max-width: 90%;
    width: 1000px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #d32f2f;
}

.incidencia-details {
    padding: 0;
}

.person-info-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.person-info-header h3 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.person-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.person-info-grid div {
    padding: 5px 0;
}

.curp-highlight {
    background: #fff3e0;
    color: #ef6c00;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

.registrations-section h3 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.registrations-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.registrations-table {
    width: 100%;
    margin: 0;
}

.registrations-table th {
    background: #d32f2f;
    color: white;
    padding: 10px 8px;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.registrations-table td {
    padding: 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

.registrations-table tr:hover {
    background: #f8f9fa;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-wide {
        width: 95%;
        max-width: 95%;
    }
    
    .person-info-grid {
        grid-template-columns: 1fr;
    }
    
    .sports-list {
        flex-direction: column;
    }
    
    .status-indicators {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .registrations-table-container {
        font-size: 0.8rem;
    }
}

/* Add this CSS to your assets/styles.css file */

/* Search Section Styles */
.search-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #d32f2f;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #b71c1c;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #999;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    background: #d32f2f;
    transform: translateY(-50%) scale(1.1);
}

.search-results-info {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
    margin: 20px 0;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.no-results-suggestion {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Search Highlight Effect */
.search-input:not(:placeholder-shown) {
    background: linear-gradient(45deg, #fff, #f8f9fa);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 0.9rem;
    }
    
    .search-clear-btn {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    .no-results {
        padding: 30px 15px;
    }
    
    .no-results-icon {
        font-size: 2.5rem;
    }
    
    .no-results-text {
        font-size: 1.1rem;
    }
}

/* Animation for search results */
.aceptado-row {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.aceptado-row[style*="display: none"] {
    opacity: 0;
    transform: translateX(-10px);
}

/* Search input animation */
@keyframes searchPulse {
    0% { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2); }
    100% { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
}

.search-input:focus {
    animation: searchPulse 2s ease-in-out infinite;
}

/* Add this CSS to your assets/styles.css file */

/* Approval Date Styles */
.approval-date {
    text-align: center;
    font-size: 0.85rem;
}

.date-part {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 2px;
}

.time-part {
    font-size: 0.75rem;
    color: #666;
    font-family: monospace;
}

/* Alternative compact style for approval dates */
.approval-timestamp {
    font-size: 0.8rem;
    color: #555;
    background: #f0f8f0;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Style for missing dates */
.text-muted {
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
}

/* Add this CSS to your assets/styles.css file */

/* Countdown Timer Styles */
.countdown-cell {
    min-width: 120px;
    padding: 8px !important;
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.countdown-display {
    text-align: center;
}

.countdown-time {
    font-weight: bold;
    font-size: 0.9rem;
    font-family: monospace;
    color: #2e7d32;
}

.countdown-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #ff9800, #f44336);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.no-countdown {
    text-align: center;
    padding: 10px 5px;
}

/* Urgent Row Styling */
.urgent-6h {
    background: #fff3e0 !important;
    border-left: 4px solid #ff9800;
}

.urgent-6h .countdown-time {
    color: #ef6c00;
}

.urgent-3h {
    background: #ffebee !important;
    border-left: 4px solid #ff5722;
}

.urgent-3h .countdown-time {
    color: #d84315;
}

.urgent-1h {
    background: #ffebee;
    border-left: 4px solid #f44336;
    animation: urgentPulse 2s ease-in-out infinite;
}

.urgent-1h .countdown-time {
    color: #c62828;
    font-weight: 900;
}

.expired {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    animation: expiredBlink 1s ease-in-out infinite alternate;
}

.expired .countdown-time {
    color: #b71c1c;
    font-weight: 900;
    text-transform: uppercase;
}

.expired .countdown-progress {
    background: #d32f2f !important;
}

/* Animations */
@keyframes urgentPulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

@keyframes expiredBlink {
    0% { background: #ffebee; }
    100% { background: #ffcdd2; }
}

/* Urgent Stats Card */
.urgent-card {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, #fff3e0, #ffffff);
}

.urgent-card .stat-number {
    color: #ef6c00;
}

.stat-sublabel {
    font-size: 0.7rem;
    color: #999;
    margin-top: 2px;
}

/* Sort Section */
.sort-section {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e0e0e0;
}

.sort-section label {
    font-weight: 600;
    color: #555;
    margin: 0;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid #d32f2f;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #b71c1c;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

/* Enhanced Table Styles for Countdown */
#aceptadosTable th:first-child {
    background: #1976d2;
    color: white;
    text-align: center;
    font-weight: 700;
}

/* Progress Bar Color Variations */
.countdown-progress {
    background: #4caf50; /* Default green */
}

.urgent-6h .countdown-progress {
    background: #ff9800; /* Orange for 6h warning */
}

.urgent-3h .countdown-progress {
    background: #ff5722; /* Deep orange for 3h warning */
}

.urgent-1h .countdown-progress {
    background: #f44336; /* Red for 1h warning */
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-cell {
        min-width: 100px;
    }
    
    .countdown-time {
        font-size: 0.8rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Tooltip for countdown explanation */
.countdown-timer[title] {
    cursor: help;
}

/* Loading state for countdown */
.countdown-time.calculating {
    color: #666;
    font-style: italic;
}

/* Medallero Step Wizard Styles */
.assignment-step {
    display: none;
}

.assignment-step.active {
    display: block;
}

.medal-types {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.medal-option {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.medal-option:hover {
    transform: scale(1.05);
}

.medal-option.selected .medal-card {
    border: 3px solid #d32f2f;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.3);
}

.medal-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.medal-card.gold { background: linear-gradient(145deg, #fff8e1, #ffecb3); }
.medal-card.silver { background: linear-gradient(145deg, #f5f5f5, #e0e0e0); }
.medal-card.bronze { background: linear-gradient(145deg, #efebe9, #d7ccc8); }

.medal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.medal-name {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.medal-position {
    font-size: 0.9rem;
    color: #666;
}

.athlete-item {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.athlete-item:hover:not(.disabled) {
    border-color: #d32f2f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.athlete-item.selected {
    border-color: #d32f2f;
    background: #fff3e0;
}

.athlete-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.athlete-code {
    font-weight: bold;
    color: #d32f2f;
    font-size: 1.1rem;
}

.athlete-name {
    font-size: 1rem;
    margin: 5px 0;
}

.athlete-details {
    font-size: 0.85rem;
    color: #666;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-prev, .btn-next, .btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #666;
    color: white;
}

.btn-next, .btn-confirm {
    background: #d32f2f;
    color: white;
}

.btn-prev:hover { background: #555; }
.btn-next:hover, .btn-confirm:hover { background: #b71c1c; }

.btn-next:disabled, .btn-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.no-athletes {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Medal Selection Styles */
.medal-types {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.medal-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 5px;
    margin: 0 10px; /* Replace gap with margin */
}

.medal-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.medal-option.selected {
    background: #fff3e0;
    border: 3px solid #d32f2f;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.3);
}

.medal-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
    position: relative;
}

.medal-card:hover {
    border-color: #d32f2f;
}

.medal-card.gold { 
    background: linear-gradient(145deg, #fff8e1, #ffecb3); 
    border-color: #ffc107;
}

.medal-card.silver { 
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0); 
    border-color: #9e9e9e;
}

.medal-card.bronze { 
    background: linear-gradient(145deg, #efebe9, #d7ccc8); 
    border-color: #8d6e63;
}

.medal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.medal-name {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.medal-position {
    font-size: 0.9rem;
    color: #666;
}

/* Selected state indicator */
.medal-option.selected::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Add this CSS to your assets/styles.css file */

/* Inscritos Section Styles */
.filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-select {
    padding: 12px;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #b71c1c;
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.2);
}

.filter-select:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.btn-clear-filters {
    padding: 12px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-filters:hover {
    background: #555;
    transform: translateY(-1px);
}

.export-section {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.export-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.export-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.export-details span:first-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.export-details span:last-child {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-export {
    padding: 12px 24px;
    background: white;
    color: #d32f2f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-export:active {
    transform: translateY(0);
}

.instructions-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #d32f2f;
}

.instructions-card h3 {
    color: #d32f2f;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.instruction-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.instruction-item h4 {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.instruction-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    border: 2px dashed #d32f2f;
    margin: 30px 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results-text {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-results-suggestion {
    font-size: 1rem;
    color: #777;
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Loading State */
.loading-filters {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .export-info {
        flex-direction: column;
        text-align: center;
    }
    
    .export-details {
        align-items: center;
    }
    
    .btn-export {
        width: 100%;
        justify-content: center;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
    
    .no-results-text {
        font-size: 1.2rem;
    }
}

/* Table Enhancements for Inscritos */
#inscritosTable th {
    background: #d32f2f;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

#inscritosTable td {
    text-align: center;
    padding: 12px 8px;
    font-size: 0.9rem;
}

#inscritosTable .dorsal-cell {
    background: #fff3e0;
    color: #ef6c00;
    font-weight: bold;
    font-size: 1rem;
}

#inscritosTable .codigo-cell {
    font-family: monospace;
    font-weight: 600;
    color: #d32f2f;
}

#inscritosTable .nombre-cell {
    text-align: left;
    font-weight: 600;
    color: #333;
}

#inscritosTable .rama-cell {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.rama-varonil {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 8px;
    border-radius: 12px;
}

.rama-femenil {
    background: #fce4ec;
    color: #c2185b;
    padding: 4px 8px;
    border-radius: 12px;
}

.rama-mixto {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Filter Animation */
.filter-select {
    position: relative;
}

.filter-select.loading::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Modern Button Styles - Replace the old button styles in your CSS */

/* Clear Filters Button - Modern Style */
.btn-clear-filters {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-clear-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-clear-filters:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-clear-filters:hover::before {
    left: 100%;
}

.btn-clear-filters:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Export Button - Premium Design */
.btn-export {
    padding: 16px 32px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #d32f2f;
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 16px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 8px 25px rgba(211, 47, 47, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-export::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-export:hover {
    color: white;
    border-color: #d32f2f;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(211, 47, 47, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-export:hover::before {
    opacity: 1;
}

.btn-export:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 8px 20px rgba(211, 47, 47, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-export i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-export:hover i {
    transform: translateY(-1px);
}

/* Modern Filter Selects */
.filter-select {
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    appearance: none;
    background-image: 
        linear-gradient(45deg, transparent 50%, #6c757d 50%),
        linear-gradient(135deg, #6c757d 50%, transparent 50%);
    background-position: 
        calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 
        0 0 0 3px rgba(211, 47, 47, 0.1),
        0 4px 12px rgba(211, 47, 47, 0.15);
    transform: translateY(-1px);
}

.filter-select:disabled {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Filter Labels - Modern Typography */
.filter-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.filter-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #d32f2f, #ff6b35);
    border-radius: 1px;
}

/* Enhanced Export Section */
.export-section {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 
        0 10px 30px rgba(211, 47, 47, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.export-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.export-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.export-details span:first-child {
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.export-details span:last-child {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Filters Section Enhancement */
.filters-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 32px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(211, 47, 47, 0.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Modern Table Styles */
#inscritosTable {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#inscritosTable th {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 16px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

#inscritosTable th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
}

#inscritosTable td {
    text-align: center;
    padding: 16px 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

#inscritosTable tr:hover td {
    background-color: rgba(211, 47, 47, 0.02);
}

/* Enhanced Badge Styles */
.rama-varonil {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
}

.rama-femenil {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    color: #c2185b;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(194, 24, 91, 0.2);
}

.rama-mixto {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-export {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-clear-filters {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .filters-section {
        padding: 20px;
        border-radius: 16px;
    }
    
    .export-section {
        padding: 20px;
        border-radius: 16px;
    }
    
    .export-info {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* Loading State for Buttons */
.btn-export.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-export.loading i {
    animation: spin 1s linear infinite;
}

.btn-clear-filters.loading {
    pointer-events: none;
    opacity: 0.8;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}