/* CBC Web Radio - Styles Personnalisés */

/* Variables CSS */
:root {
    --cbc-primary: #2798F5;
    --cbc-secondary: #266867;
    --cbc-dark: #051821;
    --cbc-light: #f8f9fa;
    --cbc-success: #28a745;
    --cbc-danger: #dc3545;
    --cbc-warning: #ffc107;
    --cbc-info: #17a2b8;
    --cbc-gradient: linear-gradient(135deg, #2798F5, #1976D2);
    --cbc-shadow: 0 8px 25px rgba(0,0,0,0.1);
    --cbc-shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
}

/* Force l'application des styles */
body {
    font-family: 'Barlow', sans-serif !important;
}

/* S'assurer que les couleurs CBC sont appliquées */
.vs-btn.style2, .vs-btn.style4 {
    background-color: var(--cbc-primary) !important;
    border-color: var(--cbc-primary) !important;
}

.text-theme, .sec-subtitle2 .icon {
    color: var(--cbc-primary) !important;
}

/* Améliorations générales */
.text-cbc-primary { color: var(--cbc-primary) !important; }
.bg-cbc-primary { background-color: var(--cbc-primary) !important; }
.border-cbc-primary { border-color: var(--cbc-primary) !important; }

/* Alertes personnalisées */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid var(--cbc-success);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid var(--cbc-danger);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid var(--cbc-info);
}

/* Formulaires améliorés */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--cbc-primary);
    box-shadow: 0 0 0 0.2rem rgba(39, 152, 245, 0.25);
}

.form-group label {
    font-weight: 600;
    color: var(--cbc-dark);
    margin-bottom: 8px;
}

/* Boutons personnalisés */
.btn-cbc-primary {
    background-color: var(--cbc-primary);
    border-color: var(--cbc-primary);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cbc-primary:hover {
    background-color: #1976D2;
    border-color: #1976D2;
    color: white;
    transform: translateY(-2px);
}

/* Tables améliorées */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table-custom thead th {
    background: var(--cbc-primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table-custom tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.table-custom tbody tr:hover {
    background-color: rgba(245, 136, 0, 0.05);
}

/* Cards personnalisées */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--cbc-primary), #1976D2);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
    border: none;
}

/* Badges de statut */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--cbc-success);
}

.status-badge.status-inactive {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--cbc-warning);
}

/* Lecteur audio personnalisé */
.audio-player-custom {
    background: linear-gradient(135deg, var(--cbc-secondary), #1e5a59);
    border-radius: 15px;
    padding: 20px;
    color: white;
    margin: 20px 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.audio-btn-custom {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn-custom:hover {
    background: white;
    color: var(--cbc-secondary);
}

.audio-btn-custom.primary {
    background: var(--cbc-primary);
    border-color: var(--cbc-primary);
}

.audio-btn-custom.primary:hover {
    background: #1976D2;
    border-color: #1976D2;
}

/* Progress bar personnalisée */
.progress-custom {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.2);
    overflow: hidden;
}

.progress-bar-custom {
    background: linear-gradient(90deg, var(--cbc-primary), #1976D2);
    transition: width 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .card-custom {
        margin-bottom: 20px;
    }
    
    .audio-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-responsive {
        border-radius: 10px;
    }
}

/* États de chargement */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(245, 136, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--cbc-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltips personnalisés */
.tooltip-custom {
    position: relative;
    cursor: help;
}

.tooltip-custom:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cbc-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Sidebar admin */
.admin-sidebar {
    background: linear-gradient(180deg, var(--cbc-dark), #0a2832);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--cbc-primary);
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Breadcrumb personnalisé */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-custom .breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--cbc-primary);
    font-weight: 600;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Utilitaires */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.box-shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.box-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.box-shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.border-radius-lg {
    border-radius: 15px;
}

.border-radius-xl {
    border-radius: 20px;
}

/* Styles modernes pour cartes */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--cbc-shadow);
    transition: all 0.4s ease;
    overflow: hidden;
    border: none;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cbc-shadow-hover);
}

/* Boutons modernes */
.modern-btn {
    background: var(--cbc-gradient);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 136, 0, 0.3);
    color: white;
}

.modern-btn.secondary {
    background: var(--cbc-secondary);
}

.modern-btn.secondary:hover {
    background: #1e5453;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Améliorations responsive */
@media (max-width: 768px) {
    .modern-card {
        margin-bottom: 25px;
    }

    .counter-card {
        margin-bottom: 20px;
    }

    .feature-card {
        margin-bottom: 20px;
    }
}
