.gym-attendance-frontend {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.gym-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gym-select-activity, .gym-datetime {
    margin-bottom: 10px;
}

.gym-select-activity select {
    padding: 8px;
    font-size: 16px;
}

.gym-datetime {
    text-align: right;
    font-size: 16px;
}

.gym-search {
    margin-bottom: 15px;
}

.gym-search input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gym-present-count {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.gym-athletes-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.gym-athletes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gym-athlete {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #ffffff;
}

/* Righe a colori alternati */
.gym-athlete:nth-child(even) {
    background-color: #f9f9f9;
}

.gym-athlete:hover {
    background-color: #f0f0f0;
}

/* Solo quando cliccato diventa verde */
.gym-athlete.present {
    background-color: #d4edda !important;
}

.gym-athlete:last-child {
    border-bottom: none;
}

/* Stili per la classifica */
.gym-leaderboard {
    margin: 20px 0;
}

.gym-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.gym-leaderboard-table th,
.gym-leaderboard-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.gym-leaderboard-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.gym-leaderboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.gym-leaderboard-table tr:hover {
    background-color: #f5f5f5;
}

.gym-leaderboard-table tr:first-child {
    background-color: #fff3cd;
    font-weight: bold;
}

.gym-leaderboard-table tr:nth-child(2) {
    background-color: #e9ecef;
}

.gym-leaderboard-table tr:nth-child(3) {
    background-color: #dae0e5;
}

@media (max-width: 600px) {
    .gym-controls {
        flex-direction: column;
    }
    
    .gym-datetime {
        text-align: left;
    }
}
/* Modale elegante */
.gym-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
}

.gym-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 3px solid #0073aa;
    animation: modalSlideIn 0.3s ease-out;
}

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

.gym-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.gym-modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.gym-modal-message {
    font-size: 16px;
    color: #5a6c7d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.gym-modal-athlete-name {
    color: #0073aa;
    font-weight: bold;
    font-size: 18px;
}

.gym-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.gym-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.gym-modal-btn-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.gym-modal-btn-confirm:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.gym-modal-btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.gym-modal-btn-cancel:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}