/* Gym Calendar Grid Layout */
.gym-calendar-grid-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

/* Header with days */
.gym-calendar-days-header {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    margin-bottom: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.gym-calendar-time-header {
    background: #7a5a8b;
    padding: 20px;
}

.gym-calendar-day-header {
    background: #7a5a8b;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Time grid */
.gym-calendar-time-grid {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    background: white;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.gym-calendar-time-slot-row {
    display: contents;
}

.gym-calendar-time-label {
    padding: 40px 20px;
    text-align: right;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.gym-calendar-class-cell {
    padding: 15px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    min-height: 120px;
    position: relative;
}

.gym-calendar-class-cell:last-child {
    border-right: none;
}

/* Class cards */
.gym-class-block {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gym-class-block:hover {
    transform: translateY(-1px);
}

.gym-class-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.gym-class-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.gym-class-instructor {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

/* Empty slots */
.gym-calendar-empty-slot {
    background: transparent;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .gym-calendar-days-header,
    .gym-calendar-time-grid {
        grid-template-columns: 80px repeat(5, 1fr);
    }

    .gym-calendar-time-label {
        padding: 30px 10px;
        font-size: 12px;
    }

    .gym-class-title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .gym-calendar-grid-container {
        padding: 10px;
    }

    .gym-calendar-days-header,
    .gym-calendar-time-grid {
        display: block;
    }

    .gym-calendar-day-header {
        display: block;
        margin-bottom: 10px;
    }

    .gym-calendar-time-header {
        display: none;
    }

    .gym-calendar-time-slot-row {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        padding: 15px;
    }

    .gym-calendar-time-label {
        border: none;
        padding: 10px 0;
        text-align: left;
        background: transparent;
        font-weight: 600;
    }

    .gym-calendar-class-cell {
        border: none;
        padding: 10px 0;
        min-height: auto;
    }
}

/* Loading state */
.gym-calendar-loading {
    text-align: center;
    padding: 60px;
    color: #999;
}

.gym-calendar-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #7a5a8b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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