/**************************************
 * CSS personnalisé pour le template  *
 * Bootstrap de BenKan Logistics      *
 **************************************/


/* Variables personnalisées */
:root {
    --primary-color: #083572;
    --primary-dark:  #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f8f9fa;
    --border-color: #dee2e6;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Style de base */
body {
    background-color: var(--body-bg);
    font-family: var(--font-family);
    color: #333;
    line-height: 1.6;
}

/* Entête et navigation */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Cartes */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 0.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
}

/* Boutons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.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);
}

/* Formulaires */
.form-control, .form-select {
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
}

/* Timeline pour le suivi des colis */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-point {
    position: absolute;
    left: -3rem;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
    box-shadow: 0 0 0 4px white;
}

.timeline-content {
    background-color: white;
    border-radius: 0.25rem;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Icônes de fonctionnalités */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Tableaux */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    font-weight: 600;
    padding: 0.75rem;
}

/* Icônes dans les boîtes statistiques */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.bg-primary{
    background-color: var(--primary-color) !important;
}

.bg-light-primary {
    background-color: rgba(0, 123, 255, 0.1);
}

.bg-light-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.btn-outline-primary{
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Footer */
footer {
    box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

footer a {
    transition: color 0.2s;
}

footer .list-inline-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(108, 117, 125, 0.1);
    border-radius: 50%;
    transition: all 0.2s;
}

footer .list-inline-item a:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .timeline {
        padding-left: 2.5rem;
    }
    
    .timeline-point {
        left: -2.5rem;
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* Style d'impression */
@media print {
    .navbar, footer, .btn, .no-print {
        display: none !important;
    }
    
    body, .card, .card-body {
        background-color: white !important;
        color: black !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .card {
        margin-bottom: 1rem !important;
    }
    
    .timeline:before {
        display: none;
    }
    
    .timeline-item {
        break-inside: avoid;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}