/* Variables CSS globales */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --input-bg: #fff;
    --card-bg: #fff;
    --body-bg: #f8f9fa;
    --border-radius: 0.375rem;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Styles pour la page de connexion (même style que client.php) */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-header h2 i {
    color: #667eea;
    font-size: 24px;
}

.auth-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form input::placeholder {
    color: #999;
}

.btn-block {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.auth-footer .muted {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design pour la connexion */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .auth-form input {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .btn-block {
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Layout principal */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar .logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar .logo h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.nav-item {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

/* Contenu des sections */
.content-section {
    display: none;
}

.content-section.active-content {
    display: block;
}

/* Cartes de statistiques */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Boutons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Tableaux */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges de statut */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 12px;
}

/* Modales Bootstrap */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Formulaires */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styles pour la section client */
.client-section {
    padding: 20px;
}

.client-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.client-table {
    width: 100%;
    border-collapse: collapse;
}

.client-table th,
.client-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.client-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Vue détaillée du client */
.client-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.client-detail-content {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.client-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.client-info-section h5 {
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.client-info-item {
    margin-bottom: 15px;
}

.client-info-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
}

.client-info-value {
    color: #212529;
    font-size: 16px;
}

/* Recherche */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container .form-control {
    padding-left: 40px;
}

.search-container .fa-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Onglets */
.tab-container {
    margin-top: 20px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    color: #6c757d;
}

.tab:hover {
    color: #495057;
    border-bottom-color: #dee2e6;
}

.tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Styles spécifiques pour client.php */
.client-info-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.client-logo-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.client-details {
    flex: 1;
}

.client-details h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
}

.client-details p {
    margin: 0 0 5px 0;
    font-size: 16px;
    opacity: 0.9;
}

.client-stats {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    min-width: 100px;
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

/* Styles pour les onglets de client.php */
.tab-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    padding: 20px 30px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.05);
}

.tab.active {
    color: #667eea;
    background: white;
    border-bottom-color: #667eea;
}

.tab i {
    font-size: 18px;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* Styles pour les sections de contenu */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 24px;
}

/* Grille des bornes */
.bornes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.borne-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.borne-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.borne-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.borne-id {
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

.borne-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.borne-status.online {
    background: #d4edda;
    color: #155724;
}

.borne-status.offline {
    background: #f8d7da;
    color: #721c24;
}

.borne-status.maintenance {
    background: #fff3cd;
    color: #856404;
}

.borne-location {
    color: #666;
    margin-bottom: 10px;
}

.borne-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Section carte du magasin */
.store-map-section {
    margin-top: 40px;
}

.map-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.store-map {
    position: relative;
    width: 100%;
    height: 400px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.map-placeholder {
    text-align: center;
    color: #6c757d;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

/* Marqueurs de bornes sur la carte */
.borne-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.borne-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.borne-marker.online,
.borne-marker.active {
    background-color: #28a745;
}

.borne-marker.offline,
.borne-marker.inactive {
    background-color: #dc3545;
}

.borne-marker.maintenance {
    background-color: #ffc107;
}
    margin-bottom: 15px;
    opacity: 0.5;
}

.map-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.map-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-marker.online {
    background: #28a745;
}

.legend-marker.offline {
    background: #dc3545;
}

.legend-marker.maintenance {
    background: #ffc107;
}

/* Marqueurs de borne sur la carte */
.borne-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Correction pour la carte SVG chargée */
.store-map svg {
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
}

.store-map {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Notification de succès pour le drag & drop */
.drop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    font-weight: 500;
}

.drop-notification i {
    font-size: 20px;
}

.borne-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.borne-marker.online {
    background: #28a745;
}

.borne-marker.offline {
    background: #dc3545;
}

.borne-marker.maintenance {
    background: #ffc107;
}

/* Section statistiques */
.stats-management {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.stats-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.stats-filters select,
.stats-filters input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
}

/* Graphiques et listes */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
}

.chart-container h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 600;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
}

.chart-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.products-list {
    max-height: 300px;
    overflow-y: auto;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.product-item:last-child {
    border-bottom: none;
}

.product-name {
    color: #333;
    font-weight: 500;
}

.product-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Calendrier d'affluence */
.calendar-heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    max-width: 350px;
}

.calendar-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day.low {
    background: #e3f2fd;
    color: #1976d2;
}

.calendar-day.medium {
    background: #fff3e0;
    color: #f57c00;
}

.calendar-day.high {
    background: #ffebee;
    color: #d32f2f;
}

.calendar-day.very-high {
    background: #fce4ec;
    color: #c2185b;
}

/* Styles pour les modales personnalisées de client.php */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal .form-group {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal .form-group:last-of-type {
    border-bottom: none;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.modal .form-group input,
.modal .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal .form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e1e5e9;
    background: #f8f9fa;
    cursor: pointer;
}

.modal .form-group input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.coords-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.coord-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coord-input label {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

.coords-inputs input {
    text-align: center;
    font-weight: 600;
}

.modal .btn {
    margin: 0 25px 25px 25px;
    width: calc(100% - 50px);
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Animation pour les modales */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .client-info-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .client-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 15px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        padding: 15px 20px;
        justify-content: center;
    }
    
    .stats-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-filters {
        justify-content: center;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .bornes-grid {
        grid-template-columns: 1fr;
    }
    
    .client-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .client-table {
        font-size: 14px;
    }
    
    .client-table th,
    .client-table td {
        padding: 8px;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    /* Responsive pour les modales */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal .form-group {
        padding: 15px 20px;
    }
    
    .coords-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal .btn {
        margin: 0 20px 20px 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .auth-form input {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .btn-block {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .client-info-header {
        padding: 15px;
    }
    
    .client-details h3 {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    /* Responsive pour les modales */
    .modal-content {
        margin: 5% auto;
        width: 98%;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal .form-group {
        padding: 12px 15px;
    }
    
    .modal .btn {
        margin: 0 15px 15px 15px;
        width: calc(100% - 30px);
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Utilitaires */
.muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.ms-3 { margin-left: 1rem; }

.gap-2 { gap: 0.5rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

/* Animation pour les boutons */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Styles pour les marqueurs de bornes sur la carte SVG */
.borne-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.borne-marker:hover {
    transform: scale(1.1);
}

.borne-status.online {
    fill: #28a745;
}

.borne-status.offline {
    fill: #dc3545;
}

.borne-status.maintenance {
    fill: #ffc107;
}

/* Bouton de suppression */
.delete-borne-btn {
    transition: all 0.2s ease;
}

.delete-borne-btn:hover {
    transform: scale(1.2);
    fill: #c82333;
}

/* Notification de déplacement */
.drop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    font-weight: 500;
}

.drop-notification i {
    margin-right: 8px;
}

/* Amélioration de l'apparence des marqueurs SVG */
.borne-marker circle {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.borne-marker text {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-family: 'Arial', sans-serif;
}

/* Styles pour le drag & drop */
.borne-marker[draggable="true"] {
    cursor: grab;
}

.borne-marker[draggable="true"]:active {
    cursor: grabbing;
}

/* Amélioration de la visibilité des marqueurs */
.borne-marker circle.borne-status {
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.borne-marker text {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}
