/* Aanvullende CSS voor de statistieken modal */

/* Achtergrond voor de modal footer in de stats modal */
.audiocoach-stats-modal-footer {
    background-color: var(--audiocoach-card-bg);
    border-bottom-left-radius: var(--audiocoach-border-radius);
    border-bottom-right-radius: var(--audiocoach-border-radius);
    margin-top: 0;
}

/* Verbeteringen voor de statistieken tabel */
.audiocoach-stats-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.audiocoach-stats-table th, 
.audiocoach-stats-table td {
    padding: 12px 15px;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.audiocoach-stats-table th {
    background-color: var(--audiocoach-green-btn);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.audiocoach-stats-table tr:last-child td {
    border-bottom: none;
}

.audiocoach-stats-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.35);
}

.audiocoach-stats-table tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Verbeteringen voor de statistieken samenvatting */
.audiocoach-stats-summary {
    background-color: var(--audiocoach-card-bg);
    border-radius: var(--audiocoach-border-radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.audiocoach-stats-summary h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.audiocoach-stats-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.audiocoach-stats-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 15px 5px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    height: auto;
}

.audiocoach-stats-value {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--audiocoach-green-btn);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audiocoach-stats-label {
    font-size: 0.8em;
    color: #555;
    font-weight: 500;
    white-space: normal;
    overflow: visible;
    min-height: 2.5em; /* Vaste hoogte voor labels */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Styling voor tweeregelige waarden */
.audiocoach-stats-value br {
    display: block;
    margin: 2px 0;
    content: "";
}

/* Verbeteringen voor de statistieken grafiek */
.audiocoach-stats-chart {
    background-color: var(--audiocoach-card-bg);
    padding: 20px;
    border-radius: var(--audiocoach-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 300px;
    position: relative;
}

.audiocoach-stats-chart canvas {
    width: 100%;
    height: 100%;
}

.audiocoach-stats-clients {
    margin-bottom: 25px;
}

.audiocoach-stats-clients h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive styling voor kleine schermen */
@media screen and (max-width: 768px) {
    .audiocoach-stats-row {
        flex-direction: column;
    }
    
    .audiocoach-stats-item {
        width: 100%;
        height: auto;
        padding: 15px 10px;
    }
    
    .audiocoach-stats-value {
        font-size: 1.5em;
    }
    
    .audiocoach-stats-label {
        font-size: 0.85em;
        min-height: auto;
    }
    
    .audiocoach-stats-table th,
    .audiocoach-stats-table td {
        padding: 8px;
        font-size: 0.9em;
    }
    
    .audiocoach-stats-chart {
        height: 250px;
    }
}

/* Print styles */
@media print {
    .audiocoach-stats-value,
    .audiocoach-stats-label {
        white-space: normal;
    }
    
    .audiocoach-stats-item {
        height: auto;
    }
}