* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #2c3e50;
    --secondary-light: #34495e;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-color: #e1e8ed;
    --text-color: #5a6c7d;
    --text-light: #7f8c8d;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 10px;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
h5 { font-size: 12px; }
h6 { font-size: 11px; }

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 8px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.logo i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.btn-logout {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-logout:hover {
    background: var(--primary-dark);
}

/* Global Search */
.global-search {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.global-search form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 32px;
}

.global-search form:hover,
.global-search form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.global-search input {
    flex: 1;
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: white;
    font-size: 11px;
    outline: none;
}

.global-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.global-search button {
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.global-search button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-hover);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: 2px;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
}

.search-result-item:hover {
    background: var(--light-color);
}

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

.search-result-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2px;
    font-size: 11px;
}

.search-result-subtitle {
    color: var(--text-light);
    font-size: 10px;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.notification-btn i {
    font-size: 14px;
}

.notification-count {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--primary-color);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-count:empty {
    display: none;
}

.notifications-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    display: none;
    max-height: 350px;
    overflow: hidden;
    margin-top: 3px;
}

.notifications-panel.show {
    display: block;
}

.notifications-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-color);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 10px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.mark-all-read:hover {
    background: rgba(231, 76, 60, 0.1);
}

.notifications-list {
    max-height: 240px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f2f6;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.notification-item:hover {
    background: var(--light-color);
}

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

.notification-item.unread {
    background: rgba(231, 76, 60, 0.05);
    border-left: 2px solid var(--primary-color);
}

.notification-content {
    font-size: 11px;
}

.notification-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 3px;
    font-size: 11px;
}

.notification-message {
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 3px;
    font-size: 11px;
}

.notification-time {
    color: var(--text-light);
    font-size: 10px;
}

.notifications-footer {
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--light-color);
}

.notifications-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 3px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-avatar.large {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.user-name {
    font-weight: 600;
    line-height: 1.2;
    font-size: 11px;
}

.user-role {
    font-size: 9px;
    opacity: 0.8;
    line-height: 1.2;
}

.user-btn i {
    font-size: 9px;
    transition: transform 0.3s ease;
}

.user-btn.active i {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    display: none;
    margin-top: 3px;
}

.user-menu.show {
    display: block;
}

.user-menu-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-header .user-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 12px;
    margin-bottom: 1px;
}

.user-email {
    color: var(--text-light);
    font-size: 10px;
    margin-bottom: 1px;
}

.structure-name {
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 500;
}

.user-menu-body {
    padding: 6px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.menu-item:hover {
    background: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
}

.menu-item i {
    width: 14px;
    font-size: 12px;
    color: var(--text-light);
}

.menu-item.logout {
    color: var(--danger-color);
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
}

.menu-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.menu-separator {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 50px;
    width: 220px;
    height: calc(100vh - 50px);
    background: white;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-220px);
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
}

.sidebar-header h3 {
    font-size: 14px;
    color: var(--dark-color);
    font-weight: 600;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    border-bottom: 1px solid #f1f2f6;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.nav-link i {
    margin-right: 10px;
    width: 16px;
    font-size: 13px;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    margin-top: 50px;
    padding: 20px;
    min-height: calc(100vh - 50px);
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.card-title {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 11px;
    color: var(--text-light);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.section-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 10px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 13px;
}

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

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

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

.btn-secondary:hover {
    background: #6c7b7d;
    color: white;
}

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

.btn-success:hover {
    background: #229954;
    color: white;
}

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

.btn-warning:hover {
    background: #e67e22;
    color: white;
}

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

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

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

.btn-info:hover {
    background: #2980b9;
    color: white;
}

/* Tables */
.table-container {
    padding: 20px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    background: var(--light-color);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f2f6;
    color: var(--text-color);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--light-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge, .badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.status-available, .status-disponible {
    background: #d4edda;
    color: #155724;
}

.status-rented, .status-loue, .status-active {
    background: #fff3cd;
    color: #856404;
}

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

.status-inactive, .status-inactif {
    background: #e2e3e5;
    color: #6c757d;
}

.status-terminee, .status-payee {
    background: #d1ecf1;
    color: #0c5460;
}

.status-planifiee {
    background: #fdeaa7;
    color: #6c5ce7;
}

.status-en_cours {
    background: #fd79a8;
    color: #ffffff;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d3e2;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    transition: border-color 0.3s;
    background: white;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-control:disabled {
    background: #f8f9fa;
    color: #6c757d;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-color);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Actions Group */
.actions-group {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

/* Filters */
.filters-section {
    padding: 15px 20px;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.filters-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.filter-group .form-control {
    width: auto;
    min-width: 120px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

/* Notifications */
.notification {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 12px;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-hover);
}

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

.notification-error {
    background: var(--danger-color);
}

.notification-warning {
    background: var(--warning-color);
}

.notification-info {
    background: var(--info-color);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--border-color);
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Vehicle Photo */
.vehicle-photo {
    width: 40px;
    height: 30px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.vehicle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statistics Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Color Variations */
.card-vehicles .card-icon { background: var(--info-color); }
.card-clients .card-icon { background: #9b59b6; }
.card-locations .card-icon { background: #e67e22; }
.card-maintenance .card-icon { background: var(--danger-color); }
.card-pieces .card-icon { background: #1abc9c; }
.card-revenue .card-icon { background: var(--success-color); }

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(100px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-220px);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .header {
        padding: 8px 12px;
    }

    .user-info {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        margin-bottom: 10px;
    }

    .quick-actions {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .section-actions {
        justify-content: center;
    }

    .table-container {
        padding: 10px;
    }

    .data-table {
        font-size: 11px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    .actions-group {
        flex-direction: column;
        gap: 2px;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 15px;
    }

    .card-value {
        font-size: 20px;
    }

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

    .data-table th,
    .data-table td {
        padding: 6px 4px;
    }

    .notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .quick-actions,
    .section-actions,
    .actions-group,
    .mobile-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    .content-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .data-table {
        font-size: 10px !important;
    }

    .data-table th,
    .data-table td {
        padding: 4px !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a;
        --text-color: #e0e0e0;
        --text-light: #b0b0b0;
        --border-color: #333;
        --dark-color: #f0f0f0;
    }

    body {
        background-color: #121212;
        color: var(--text-color);
    }

    .content-section,
    .dashboard-card,
    .form-control,
    .modal-content {
        background: #1e1e1e;
        border-color: var(--border-color);
    }

    .data-table th {
        background: #2a2a2a;
    }

    .data-table tr:hover {
        background: #2a2a2a;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff0000;
        --border-color: #000;
        --text-color: #000;
        --shadow: 0 0 0 2px #000;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .form-control:focus {
        box-shadow: 0 0 0 3px var(--primary-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.font-weight-bold { font-weight: 600; }
.font-weight-normal { font-weight: 400; }
.font-weight-light { font-weight: 300; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-info { color: var(--info-color); }
.text-light { color: var(--text-light); }
.text-dark { color: var(--dark-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--text-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-info { background-color: var(--info-color); }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }

.m-0 { margin: 0; }
.m-1 { margin: 5px; }
.m-2 { margin: 10px; }
.m-3 { margin: 15px; }
.m-4 { margin: 20px; }
.m-5 { margin: 25px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 25px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 25px; }

.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 25px; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }

.gap-1 { gap: 5px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }
.gap-4 { gap: 20px; }
.gap-5 { gap: 25px; }

.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }

.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }

.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: var(--shadow); }
.shadow-hover { box-shadow: var(--shadow-hover); }
.shadow-none { box-shadow: none; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.user-select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Component-specific styles */
.client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    margin-bottom: 15px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-hover);
    min-width: 160px;
    padding: 5px 0;
    margin-top: 2px;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 6px 16px;
    clear: both;
    font-weight: 400;
    color: var(--text-color);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 12px;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    text-decoration: none;
}

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Print invoice styles */
.invoice-print {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #000;
}

.invoice-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
}

.invoice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.invoice-table th,
.invoice-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
}

.invoice-table th {
    background: #f0f0f0;
    font-weight: bold;
}

.invoice-total {
    text-align: right;
    font-weight: bold;
    font-size: 14px;
}

/* Calendar styles */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.calendar-header {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
}

.calendar-day {
    background: white;
    padding: 8px;
    min-height: 80px;
    position: relative;
    font-size: 11px;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #6c757d;
}

.calendar-day.today {
    background: #fff3cd;
}

.calendar-event {
    background: var(--primary-color);
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 9px;
    margin-bottom: 2px;
    cursor: pointer;
}

/* Charts container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.chart-container canvas {
    max-height: 100%;
}

/* Performance indicators */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.kpi-card {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.kpi-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-change {
    font-size: 10px;
    margin-top: 5px;
}

.kpi-change.positive {
    color: var(--success-color);
}

.kpi-change.negative {
    color: var(--danger-color);
}

/* Data export styles */
.export-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
}

.export-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Advanced search */
.search-advanced {
    background: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.search-actions {
    text-align: right;
}

/* File upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.05);
}

.file-upload.dragover {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
}

.file-upload-icon {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.file-upload-text {
    color: var(--text-color);
    font-size: 12px;
}

/* Maintenance schedule */
.maintenance-timeline {
    position: relative;
    padding-left: 30px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-date {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 12px;
}

/* Location map */
.location-map {
    height: 300px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Fleet overview */
.fleet-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fleet-section {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.fleet-section h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 14px;
}

.vehicle-list {
    list-style: none;
}

.vehicle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f6;
    font-size: 11px;
}

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

.vehicle-name {
    font-weight: 600;
}

.vehicle-status {
    font-size: 10px;
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
}

/* Print-specific adjustments */
@page {
    margin: 1cm;
    size: A4;
}

@media print {
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    .print-avoid-break {
        page-break-inside: avoid;
    }
}


/* Styles supplémentaires pour le module clients */

/* Améliorations des avatars clients */
.client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.client-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.client-avatar.large {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.client-avatar.small {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

/* Styles pour les listes de clients */
.client-list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background: white;
}

.client-list-item:hover {
    background: #f8f9fa;
    border-color: #e74c3c;
    transform: translateX(4px);
}

.client-info {
    flex: 1;
    margin-left: 12px;
}

.client-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 2px;
}

.client-details {
    color: #7f8c8d;
    font-size: 12px;
}

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

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

.client-stat-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.client-stat-label {
    color: #7f8c8d;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alertes d'expiration de permis */
.license-expiration-alert {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.license-expiration-alert.expired {
    background: #f8d7da;
    color: #721c24;
}

.license-expiration-alert.expiring {
    background: #fff3cd;
    color: #856404;
}

.license-expiration-alert i {
    font-size: 10px;
}

/* Filtres avancés */
.advanced-filters {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.advanced-filters.collapsed {
    display: none;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-toggle {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* Actions en lot */
.bulk-actions-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 250px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.bulk-actions-panel.show {
    transform: translateY(0);
    opacity: 1;
}

.bulk-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
}

.bulk-actions-count {
    font-weight: 600;
    color: #2c3e50;
}

.bulk-actions-close {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.bulk-actions-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.bulk-actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Dropdown export */
.export-dropdown {
    position: relative;
}

.export-dropdown .dropdown-menu {
    min-width: 150px;
}

.export-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.export-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Pagination personnalisée */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-info {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e1e8ed;
    font-size: 12px;
    color: #5a6c7d;
}

.pagination-nav {
    display: flex;
    gap: 8px;
}

.pagination-nav .btn {
    min-width: 40px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Indicateurs de statut client */
.client-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.client-status-indicator.active {
    background: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.client-status-indicator.inactive {
    background: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Cartes de performance client */
.client-performance-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.client-performance-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.client-performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.client-performance-metrics {
    display: flex;
    gap: 20px;
}

.client-performance-metric {
    text-align: center;
}

.client-performance-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.client-performance-label {
    font-size: 10px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Autocomplete clients */
.client-autocomplete {
    position: relative;
}

.client-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f2f6;
}

.client-autocomplete-item:hover {
    background: #f8f9fa;
}

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

.client-autocomplete-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
}

.client-autocomplete-details {
    color: #7f8c8d;
    font-size: 11px;
}

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

.client-card {
    animation: fadeInUp 0.3s ease;
}

.client-card:nth-child(even) {
    animation-delay: 0.1s;
}

.client-card:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Responsive design */
@media (max-width: 768px) {
    .client-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .client-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .bulk-actions-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .bulk-actions-buttons {
        flex-direction: column;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .client-performance-metrics {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .client-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .client-name {
        font-size: 13px;
    }
    
    .client-details {
        font-size: 11px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .client-list-item {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .client-list-item:hover {
        background: #34495e;
    }
    
    .client-name {
        color: #ecf0f1;
    }
    
    .client-details {
        color: #bdc3c7;
    }
    
    .bulk-actions-panel {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .client-performance-card {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .client-autocomplete-results {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .client-autocomplete-item:hover {
        background: #34495e;
    }
}

/* Mode haute accessibilité */
@media (prefers-contrast: high) {
    .client-avatar {
        border: 2px solid #000;
    }
    
    .client-list-item {
        border: 2px solid #000;
    }
    
    .client-status-indicator {
        border: 2px solid #000;
    }
}

/* Réduction du mouvement */
@media (prefers-reduced-motion: reduce) {
    .client-avatar,
    .client-list-item,
    .client-performance-card,
    .bulk-actions-panel {
        transition: none;
    }
    
    .client-card {
        animation: none;
    }
}

