/* =========================================
   Fitpoprawny - Admin Dashboard CSS
   Autor: Aleksander Jasiulewicz
   ========================================= */

/* 🔹 Sekcje menu */
.fitpoprawny_admin_menu {
    margin-bottom: 30px;
}

/* 🔹 Wrapper dla panelu administratora - szerszy niż standardowy */
.fitpoprawny_admin_wrapper {
    max-width: 1200px !important;
}

.fitpoprawny_menu_section {
    margin-bottom: 25px;
}

.fitpoprawny_menu_section:last-child {
    margin-bottom: 0;
}

.fitpoprawny_menu_section_title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fitpoprawny-orange, #e57c34);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 5px;
}

/* Dodatkowe style dla sekcji administratora */
.fitpoprawny_dashboard_subtitle {
    font-size: 0.85rem;
    color: var(--fitpoprawny-orange, #e57c34);
    font-weight: 600;
    margin-bottom: 8px;
}

/* =========================================
   STATUS TRENINGU (NEXT/CURRENT)
   ========================================= */

.fitpoprawny_training_status {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 5px solid #ccc;
}

.fitpoprawny_status_active {
    border-left-color: #dc3545; /* Czerwony dla trwającego */
    background: #fff5f5;
}

.fitpoprawny_status_next {
    border-left-color: var(--fitpoprawny-orange, #e57c34);
}

.fitpoprawny_status_empty {
    border-left-color: #28a745;
}

.fitpoprawny_status_icon {
    font-size: 1.8rem;
}

.fitpoprawny_status_info {
    display: flex;
    flex-direction: column;
}

.fitpoprawny_status_label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.fitpoprawny_status_client {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fitpoprawny-dark, #141627);
}

.fitpoprawny_status_time {
    font-size: 0.9rem;
    color: #555;
}

/* =========================================
   SEKCJA DASHBOARD - STATYSTYKI (GRID)
   ========================================= */

.fitpoprawny_dashboard_stats_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* =========================================
   SEKCJA DASHBOARD - STATYSTYKI (SLIDER)
   ========================================= */

.fitpoprawny_dashboard_stats_slider {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 15px; /* Miejsce na scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--fitpoprawny-orange, #e57c34) #f0f0f0;
}

/* Stylizacja paska przewijania */
.fitpoprawny_dashboard_stats_slider::-webkit-scrollbar {
    height: 8px;
}

.fitpoprawny_dashboard_stats_slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.fitpoprawny_dashboard_stats_slider::-webkit-scrollbar-thumb {
    background-color: var(--fitpoprawny-orange, #e57c34);
    border-radius: 4px;
    border: 2px solid #f0f0f0;
}

.fitpoprawny_stat_card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

/* Ustawienia dla kart w sliderze */
.fitpoprawny_dashboard_stats_slider .fitpoprawny_stat_card {
    min-width: 280px; /* Minimalna szerokość karty */
    flex: 0 0 auto; /* Nie zmniejszaj ani nie rozciągaj */
    scroll-snap-align: start;
}

.fitpoprawny_stat_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 124, 52, 0.2);
    border-color: var(--fitpoprawny-orange, #e57c34);
}

.fitpoprawny_stat_icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8db 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.fitpoprawny_stat_content {
    flex: 1;
    width: 100%;
}

.fitpoprawny_stat_title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fitpoprawny_stat_value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fitpoprawny-orange, #e57c34);
    margin: 0 0 5px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.fitpoprawny_stat_description {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    font-weight: 500;
}

.fitpoprawny_stat_label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* =========================================
   OSTATNIE AKTYWNOŚCI
   ========================================= */

.fitpoprawny_dashboard_recent {
    margin-top: 30px;
}

.fitpoprawny_dashboard_clients_section {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fitpoprawny_recent_card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fitpoprawny_recent_card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fitpoprawny-dark, #141627);
    margin: 0 0 20px 0;
}

.fitpoprawny_activity_list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fitpoprawny_activity_item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.fitpoprawny_activity_item:hover {
    background: #f0f0f0;
}

.fitpoprawny_activity_icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}

.fitpoprawny_activity_content {
    flex: 1;
}

.fitpoprawny_activity_content p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: var(--fitpoprawny-dark, #141627);
}

.fitpoprawny_activity_time {
    font-size: 0.8rem;
    color: #999;
}

/* =========================================
   PRZYCISK WRÓĆ
   ========================================= */

.fitpoprawny_dashboard_section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.fitpoprawny_dashboard_section_header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fitpoprawny-dark, #141627);
    margin: 0;
}

.fitpoprawny_dashboard_btn_back {
    background: #f0f0f0;
    color: var(--fitpoprawny-dark, #141627);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fitpoprawny_dashboard_btn_back:hover {
    background: var(--fitpoprawny-orange, #e57c34);
    color: #fff;
}

/* =========================================
   RESPONSYWNOŚĆ DLA ADMIN
   ========================================= */

@media (max-width: 1200px) {
    .fitpoprawny_dashboard_stats_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fitpoprawny_dashboard_clients_section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fitpoprawny_menu_section_title {
        font-size: 0.85rem;
    }
    
    .fitpoprawny_dashboard_stats_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fitpoprawny_dashboard_clients_section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .fitpoprawny_stat_card {
        padding: 20px;
    }

    .fitpoprawny_stat_icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }

    .fitpoprawny_stat_value {
        font-size: 1.6rem;
    }
    
    .fitpoprawny_stat_title {
        font-size: 0.85rem;
    }

    .fitpoprawny_dashboard_section_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .fitpoprawny_dashboard_btn_back {
        width: 100%;
    }
}

/* =========================================
   MODAL & AVAILABILITY STYLES
   ========================================= */

.fitpoprawny_modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.fitpoprawny_modal_content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

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

.fitpoprawny_modal_header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fitpoprawny_modal_header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--fitpoprawny-dark);
}

.fitpoprawny_modal_close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.fitpoprawny_modal_close:hover,
.fitpoprawny_modal_close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.fitpoprawny_modal_body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.fitpoprawny_availability_row:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.fitpoprawny_input[type="time"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    color: #333;
}

.fitpoprawny_input[type="time"]:focus {
    border-color: var(--fitpoprawny-orange);
    outline: none;
}
