/* Graphiques CSS pour ForumMonitoring - Style similaire à PrivateMessaging */

/* Hour chart - Graphique par heure */
.hour-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    gap: 2px;
}

.hour-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    padding: 0 1px;
}

.hour-label {
    font-size: 0.7rem;
    color: #495057;
    margin-bottom: 6px;
    font-weight: 500;
    white-space: nowrap;
    min-height: 20px;
}

.bar-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 80%;
    background: linear-gradient(to top, #0d6efd, #0dcaf0);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 2px;
}

.bar-peak {
    background: linear-gradient(to top, #dc3545, #fd7e14);
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.bar-value {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar:hover .bar-value {
    opacity: 1;
}

/* Activity timeline - Graphique d'activité par jour */
.activity-timeline {
    max-height: 400px;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.timeline-date {
    width: 80px;
    text-align: right;
    padding-right: 1rem;
    flex-shrink: 0;
}

.timeline-bar-container {
    flex: 1;
    background: #e9ecef;
    border-radius: 4px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.timeline-bar {
    height: 100%;
    background: linear-gradient(to right, #0d6efd, #0dcaf0);
    border-radius: 4px;
    position: relative;
    transition: width 0.3s ease;
}

.timeline-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.timeline-legend {
    min-width: 100px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Category chart - Graphique des catégories */
.category-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.category-label {
    min-width: 200px;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.category-color.badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.category-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-bar {
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease;
}

/* Les couleurs sont maintenant définies inline dans le HTML pour utiliser les couleurs de catégories */
.category-bar.discussions {
    /* Couleur définie inline */
}

.category-bar.posts {
    /* Couleur définie inline avec opacity */
}

/* Scrollable pour Top Discussions et autres listes */
.admin-card-body-scrollable {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-card-body-scrollable::-webkit-scrollbar {
    width: 8px;
}

.admin-card-body-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.admin-card-body-scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.admin-card-body-scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Styles pour les boutons de tri */
.btn-group .btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-group .btn.active:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: white;
}

