/* Custom CSS pour le panel admin moderne - SERVICES-AE */

/* Variables CSS personnalisées - Materio Theme Colors */
:root {
    --services-primary: #696cff;    /* Materio primary */
    --services-secondary: #8592a3;  /* Materio secondary */
    --services-success: #71dd37;    /* Materio success */
    --services-warning: #ffab00;    /* Materio warning */
    --services-danger: #ff3e1d;     /* Materio danger */
    --services-info: #03c3ec;       /* Materio info */
    --services-dark: #233446;       /* Materio dark */
}

/* Branding SERVICES-AE avec couleurs Materio */
.services-brand {
    background: linear-gradient(45deg, var(--services-primary), var(--services-info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Cartes de statistiques avec couleurs Materio */
.stats-card-custom {
    background: linear-gradient(135deg, var(--services-primary) 0%, var(--services-info) 100%);
}

/* Override pour les couleurs bg-label */
.bg-label-primary {
    background-color: rgba(105, 108, 255, 0.16) !important;
    color: var(--services-primary) !important;
}

.bg-label-success {
    background-color: rgba(113, 221, 55, 0.16) !important;
    color: var(--services-success) !important;
}

.bg-label-warning {
    background-color: rgba(255, 171, 0, 0.16) !important;
    color: var(--services-warning) !important;
}

.bg-label-danger {
    background-color: rgba(255, 62, 29, 0.16) !important;
    color: var(--services-danger) !important;
}

.bg-label-info {
    background-color: rgba(3, 195, 236, 0.16) !important;
    color: var(--services-info) !important;
}

/* Animations personnalisées */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* Amélioration des badges */
.badge.rounded-pill {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* Cards hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Boutons personnalisés */
.btn-gradient-primary {
    background: linear-gradient(45deg, var(--services-primary), var(--services-secondary));
    border: none;
    color: white;
}

.btn-gradient-primary:hover {
    background: linear-gradient(45deg, var(--services-secondary), var(--services-primary));
    color: white;
}

/* Menu icons */
.menu-icon.icon-base {
    width: 20px;
    height: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table améliorées */
.table-modern {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-modern thead {
    background: linear-gradient(45deg, var(--services-primary), var(--services-secondary));
    color: white;
}

/* Activity feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 6px;
}

.activity-item:hover {
    background-color: rgba(0,0,0,0.03);
}

/* Progress bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.25rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .activity-item:hover {
        background-color: rgba(255,255,255,0.05);
    }
}

/* Scrollbar personnalisé */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--services-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--services-secondary);
}

/* Loading states */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Status indicators */
.status-online {
    color: var(--services-success);
}

.status-busy {
    color: var(--services-warning);
}

.status-offline {
    color: var(--services-danger);
}

/* Quick actions */
.quick-action-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    transform: scale(1.02);
}

/* Modern tooltips */
.tooltip-modern {
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
}

/* Real-time indicators */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Enhanced focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--services-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Success states */
.form-control.is-valid:focus {
    border-color: var(--services-success);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Error states */
.form-control.is-invalid:focus {
    border-color: var(--services-danger);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Modern switches */
.form-switch .form-check-input:checked {
    background-color: var(--services-primary);
    border-color: var(--services-primary);
}

/* Enhanced modals */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

/* Print styles */
@media print {
    .sidebar, .navbar, .btn, .badge {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}