/* SB Admin 2 - Styles de base pour PilPerf */
/* Bootstrap est chargé via CDN, ces styles complètent le template */

:root {
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --primary-light: #7c8fd4;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* Dégradé de fond principal */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Image de fond pour le login */
.bg-login-image {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    background-size: cover;
    min-height: 100%;
}

/* Styles pour les formulaires */
.form-control-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 0.75rem 1rem;
}

.btn-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 0.75rem 1rem;
}

/* Couleurs de texte */
.text-gray-900 {
    color: #3a3b45 !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-700 {
    color: #6e707e !important;
}

.text-gray-600 {
    color: #858796 !important;
}

.text-gray-500 {
    color: #b7b9cc !important;
}

.text-gray-400 {
    color: #dddfeb !important;
}

.text-gray-300 {
    color: #e3e6f0 !important;
}

/* Bouton primaire */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Card avec ombre */
.shadow-lg {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.o-hidden {
    overflow: hidden !important;
}

/* Sidebar */
.sidebar {
    min-height: calc(100vh - 0px);
    background-color: #224abe;
    background-image: linear-gradient(180deg, #224abe 10%, #224abe 100%);
    background-size: cover;
}

.sidebar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.sidebar-brand {
    height: 4.375rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    padding: 1.5rem 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-brand-icon {
    font-size: 2rem;
}

.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 1rem 1rem;
}

/* Wrapper */
#wrapper {
    display: flex;
    width: 100%;
    overflow-x: hidden;
}

#wrapper #content-wrapper {
    background-color: #f8f9fc;
    width: 100%;
    overflow-x: hidden;
    margin-left: 14rem;
    transition: margin-left 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar positioning */
#wrapper .sidebar {
    width: 14rem;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: margin-left 0.3s;
}

/* Responsive */
@media (max-width: 767.98px) {
    #wrapper .sidebar {
        margin-left: -14rem;
    }
    
    #wrapper.toggled .sidebar {
        margin-left: 0;
    }
    
    #wrapper #content-wrapper {
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) {
    .sidebar {
        width: 14rem !important;
    }
}
