.gym-calendar-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.gym-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gym-calendar-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.gym-calendar-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gym-filter {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gym-filter:hover,
.gym-filter:focus {
    border-color: #4a90e2;
    outline: none;
}

.gym-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.gym-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.gym-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.gym-btn-secondary:hover {
    background: #d0d0d0;
}

.gym-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.gym-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gym-day-column {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.gym-day-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.gym-day-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    color: white;
}

.gym-day-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gym-class-count {
    font-size: 12px;
    opacity: 0.9;
}

.gym-day-classes {
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.gym-no-classes {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.gym-class-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.gym-class-card:hover {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.gym-class-time {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.time-separator {
    margin: 0 5px;
}

.gym-class-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.gym-instructor {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.gym-instructor .label {
    font-weight: 600;
}

.gym-capacity {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #4a90e2;
    margin: 8px 0;
}

.gym-notes {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin: 8px 0;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
}

.gym-class-actions {
    margin-top: 12px;
}

.gym-list-view {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.gym-day-section {
    border-bottom: 2px solid #f0f0f0;
}

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

.gym-day-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
}

.gym-class-row {
    display: grid;
    grid-template-columns: 120px 1fr auto 100px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background 0.3s ease;
}

.gym-class-row:hover {
    background: #f8f9fa;
}

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

.gym-class-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gym-class-time-block .start-time {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.gym-class-time-block .duration {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.gym-class-details h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #2c3e50;
}

.gym-class-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.gym-class-capacity {
    text-align: center;
    padding: 8px 15px;
    background: #e8f4fd;
    border-radius: 20px;
    color: #4a90e2;
    font-size: 14px;
    font-weight: 600;
}

.gym-loading {
    text-align: center;
    padding: 60px;
}

.gym-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.gym-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gym-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.gym-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gym-modal-close:hover {
    color: #333;
}

.gym-modal h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #2c3e50;
}

.gym-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.gym-calendar-error {
    background: #fee;
    color: #c00;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c00;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .gym-calendar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .gym-calendar-filters {
        flex-direction: column;
        width: 100%;
    }

    .gym-filter {
        width: 100%;
    }

    .gym-week-grid {
        grid-template-columns: 1fr;
    }

    .gym-class-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gym-class-time-block,
    .gym-class-capacity {
        justify-self: start;
        width: 100%;
    }
}