/* Dashboard Styles - Espace Client Protégé */

/* Règle globale pour tous les textes tronqués - ajouter title automatiquement */
[class*="route-point-address"],
[class*="favorite-item-title"],
[class*="driver-name"],
[class*="route-card-title"],
[class*="route-point"] {
    position: relative;
}

.dashboard-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    background: #0f0f1e;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1a1a2e;
    border-right: 2px solid rgba(80, 200, 120, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(80, 200, 120, 0.1);
    color: #ffffff;
    border-left-color: #50c878;
}

.sidebar-link.active {
    background: rgba(80, 200, 120, 0.15);
    color: #50c878;
    border-left-color: #50c878;
    font-weight: 600;
}

.sidebar-text {
    font-size: 0.95rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.dashboard-body.no-sidebar .dashboard-main {
    margin-left: 0;
}

.dashboard-body:not(.no-sidebar) .dashboard-section {
    margin-top: 0;
    background: #0f0f1e;
    background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Image de fond spécifique pour la page Drivers */
body.dashboard-body:not(.no-sidebar) .dashboard-section.drivers-page {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.dashboard-body:not(.no-sidebar) .dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 30, 0.90);
    z-index: 0;
}

/* Dashboard Header */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(80, 200, 120, 0.3);
    padding: 1.5rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dashboard-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header-logo {
    font-size: 1.65rem;
    font-weight: bold;
    color: #50c878;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 11px rgba(80, 200, 120, 0.3);
    transition: all 0.3s ease;
}

.dashboard-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dashboard-header-btn {
    background: rgba(80, 200, 120, 0.2);
    border: 1px solid #50c878;
    color: #50c878;
    padding: 0.45rem 1.125rem;
    border-radius: 6px;
    font-size: 0.71rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-header-btn:hover {
    background: rgba(80, 200, 120, 0.3);
    border-color: #45b869;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
}

/* Header Scrolled State */
.dashboard-header.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(15, 15, 30, 0.90);
    border-bottom-color: rgba(80, 200, 120, 0.25);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

.dashboard-header.scrolled .dashboard-header-logo {
    font-size: 0.825rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(80, 200, 120, 0.2);
}

.dashboard-header.scrolled .dashboard-header-btn {
    padding: 0.225rem 0.5625rem;
    font-size: 0.355rem;
    background: rgba(80, 200, 120, 0.15);
}

.dashboard-section {
    background: #0f0f1e;
    background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 3rem 2rem 4rem;
    min-height: 100vh;
    margin-top: 68px;
}

/* Image de fond spécifique pour la page Drivers */
.dashboard-section.drivers-page {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 30, 0.90);
    z-index: 0;
}

.dashboard-section > * {
    position: relative;
    z-index: 1;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.8rem;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dashboard-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #50c878;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: #45b869;
    box-shadow: 0 8px 30px rgba(80, 200, 120, 0.3);
    background: rgba(26, 26, 46, 0.95);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.card-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-preview {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.preview-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.preview-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #50c878;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar-toggle {
        display: block;
    }

    .dashboard-body.sidebar-collapsed .sidebar {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-section {
        padding: 2rem 1.5rem 3rem;
    }

    .dashboard-title {
        font-size: 2.2rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-icon {
        font-size: 2rem;
    }
}

/* Page Content Styles */
.page-header {
    margin-bottom: 3rem;
}

.page-content {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #50c878;
    border-radius: 12px;
    padding: 3rem;
    min-height: 400px;
    position: relative;
}

.btn-reset-route {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: rgba(255, 107, 107, 1);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
    z-index: 10;
}

.btn-reset-route:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-back-route {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(80, 200, 120, 0.2);
    border: 1px solid rgba(80, 200, 120, 0.5);
    color: rgba(80, 200, 120, 1);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(80, 200, 120, 0.2);
    z-index: 10;
}

.btn-back-route:hover {
    background: rgba(80, 200, 120, 0.3);
    border-color: rgba(80, 200, 120, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.placeholder-box {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

/* Drivers Page Styles */
.drivers-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-add-driver {
    background: #50c878;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.btn-add-driver:hover {
    background: #45b869;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.4);
}

.drivers-search {
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #50c878;
    box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.driver-card {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(80, 200, 120, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    cursor: default;
    backdrop-filter: blur(15px);
}

.driver-card:hover {
    border-color: rgba(80, 200, 120, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.08);
    background: rgba(26, 26, 46, 0.5);
}

.driver-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.6rem;
}

.driver-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    flex: 1;
}

.driver-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit,
.btn-delete {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
}

.btn-edit {
    color: #50c878;
    filter: brightness(0) saturate(100%) invert(67%) sepia(95%) saturate(500%) hue-rotate(90deg) brightness(110%) contrast(120%);
}

.btn-edit:hover {
    background: rgba(80, 200, 120, 0.1);
    border-color: rgba(80, 200, 120, 0.3);
    transform: scale(1.02);
    opacity: 1;
    color: #50c878;
}

.btn-delete:hover {
    background: rgba(255, 120, 120, 0.08);
    border-color: rgba(255, 150, 150, 0.3);
    transform: scale(1.02);
    opacity: 1;
}

.driver-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.driver-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.driver-info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.driver-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(80, 200, 120, 0.8);
}

.driver-favorite-truck {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.driver-favorite-truck-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

.driver-favorite-truck-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .drivers-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .drivers-search {
        max-width: 100%;
    }

    .drivers-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: rgba(15, 15, 30, 0.7);
    border: 1px solid rgba(80, 200, 120, 0.2);
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
    backdrop-filter: blur(25px);
}

.modal-content-large {
    max-width: 600px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(80, 200, 120, 0.2);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #50c878;
    background: rgba(80, 200, 120, 0.1);
}

.modal-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background: rgba(15, 15, 30, 0.4);
    border: 1px solid rgba(80, 200, 120, 0.18);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(80, 200, 120, 0.35);
    box-shadow: 0 0 0 2px rgba(80, 200, 120, 0.08);
    background: rgba(15, 15, 30, 0.5);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-select {
    width: 100%;
    background: rgba(15, 15, 30, 0.4);
    border: 1px solid rgba(80, 200, 120, 0.18);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: rgba(80, 200, 120, 0.35);
    box-shadow: 0 0 0 2px rgba(80, 200, 120, 0.08);
    background: rgba(15, 15, 30, 0.5);
}

.form-select option {
    background: rgba(15, 15, 30, 0.95);
    color: rgba(255, 255, 255, 0.9);
}

/* Composant de recherche personnalisé */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    position: relative;
    display: flex;
    align-items: center;
}

.searchable-select-input input {
    width: 100%;
    background: rgba(15, 15, 30, 0.4);
    border: 1px solid rgba(80, 200, 120, 0.18);
    border-radius: 8px;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    cursor: text;
}

.searchable-select-input input:focus {
    outline: none;
    border-color: rgba(80, 200, 120, 0.35);
    box-shadow: 0 0 0 2px rgba(80, 200, 120, 0.08);
    background: rgba(15, 15, 30, 0.5);
}

.searchable-select-arrow {
    position: absolute;
    right: 1rem;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.searchable-select-dropdown.show .searchable-select-arrow {
    transform: rotate(180deg);
}

.searchable-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(80, 200, 120, 0.25);
    border-radius: 8px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-option {
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.searchable-select-option:last-child {
    border-bottom: none;
}

.searchable-select-option:hover {
    background: rgba(80, 200, 120, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.searchable-select-option:active {
    background: rgba(80, 200, 120, 0.25);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(80, 200, 120, 0.2);
}

.btn-cancel,
.btn-submit,
.btn-delete {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-submit {
    background: rgba(80, 200, 120, 0.5);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(80, 200, 120, 0.15);
    border: 1px solid rgba(80, 200, 120, 0.3);
}

.btn-submit:hover {
    background: rgba(80, 200, 120, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
    border-color: rgba(80, 200, 120, 0.4);
}

.btn-delete {
    background: rgba(255, 120, 120, 0.15);
    color: rgba(255, 200, 200, 0.75);
    box-shadow: 0 2px 8px rgba(255, 120, 120, 0.1);
    border: 1px solid rgba(255, 150, 150, 0.25);
}

.btn-delete:hover {
    background: rgba(255, 140, 140, 0.25);
    color: rgba(255, 220, 220, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 120, 120, 0.15);
    border-color: rgba(255, 150, 150, 0.4);
}

.delete-warning {
    color: rgba(255, 180, 180, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Bouton Indexation */
.indexation-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.btn-indexation {
    background: rgba(80, 200, 120, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(80, 200, 120, 0.25);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-indexation:hover {
    background: rgba(80, 200, 120, 0.4);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(80, 200, 120, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 200, 120, 0.2);
}

/* Styles pour la sélection des chauffeurs */
.select-all-container {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drivers-selection-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(15, 15, 30, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(80, 200, 120, 0.15);
}

.driver-checkbox-item {
    margin-bottom: 0.6rem;
}

.driver-checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: rgba(255, 255, 255, 0.95);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: rgba(80, 200, 120, 0.6);
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.4rem;
    font-style: italic;
}

.dimensions-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.dimensions-group.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.dimension-input {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dimension-input label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.dimension-input input {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dimension-input input:focus {
    outline: none;
    border-color: #50c878;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .dimensions-group {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-header {
        padding: 1.2rem;
    }

    .modal-form {
        padding: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .indexation-button-container {
        bottom: 1rem;
        right: 1rem;
    }

    .btn-indexation {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

/* Route Planner Page Styles */
.route-planner-page {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

/* Current Routes Page Styles */
.current-routes-page {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.current-routes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.current-route-card {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.current-route-card:hover {
    border-color: rgba(80, 200, 120, 0.5);
    box-shadow: 0 4px 20px rgba(80, 200, 120, 0.2);
}

.current-route-card.route-completed {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.2);
}

.route-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.route-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(80, 200, 120, 0.2);
    gap: 1rem;
}

.route-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.route-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.route-card-actions-bottom {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(80, 200, 120, 0.2);
    justify-content: flex-end;
}

.route-card-actions-bottom .btn-edit,
.route-card-actions-bottom .btn-delete {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.route-card-actions-bottom .btn-edit {
    color: #50c878;
}

.route-card-actions-bottom .btn-edit:hover {
    background: rgba(80, 200, 120, 0.2);
    border-color: rgba(80, 200, 120, 0.5);
    color: #50c878;
}

.route-card-actions-bottom .btn-delete:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}

.route-title-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.route-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.route-route-info-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.5rem;
}

.route-route-info-inline .route-point {
    font-size: 0.75rem;
}

.route-route-info-inline .route-arrow {
    font-size: 0.8rem;
}

.route-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.route-badge-optimized {
    background: rgba(80, 200, 120, 0.2);
    color: #50c878;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(80, 200, 120, 0.2);
    color: #50c878;
}

.status-completed {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.route-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.route-route-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.route-point {
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
}

.route-point-start {
    color: #50c878;
}

.route-point-end {
    color: #ff6b6b;
}

.route-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.route-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.route-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.metric-price {
    color: #50c878;
    font-size: 0.9rem;
}

.route-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(80, 200, 120, 0.2);
}

.route-details-horizontal {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(80, 200, 120, 0.2);
    flex-wrap: wrap;
    align-items: flex-start;
}

.route-details-horizontal .route-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 120px;
}

.route-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.detail-value {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
}

.empty-routes-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(15px);
}

.empty-routes-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0.5rem 0;
}

.empty-routes-hint {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9rem !important;
}

/* Responsive pour Current Routes */
@media (max-width: 768px) {
    .route-metrics {
        grid-template-columns: 1fr;
    }

    .route-details {
        grid-template-columns: 1fr;
    }

    .route-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

.route-planner-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #50c878;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.1);
}

.form-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input[type="datetime-local"],
.form-group input[type="time"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input[type="datetime-local"]:focus,
.form-group input[type="time"]:focus {
    outline: none;
    border-color: #50c878;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.1);
}

/* Style pour les champs datetime-local et time sur Chrome/Firefox */
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Style pour les champs date - icône calendrier verte */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: brightness(0) saturate(100%) invert(67%) sepia(95%) saturate(500%) hue-rotate(90deg) brightness(110%) contrast(120%);
    cursor: pointer;
    opacity: 0.9;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.arrival-time-range {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.arrival-time-range input[type="time"] {
    flex: 1;
}

.time-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
    margin-top: 0.5rem;
}

.checkbox-label-inline:hover {
    color: rgba(255, 255, 255, 0.9);
}

.checkbox-label-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: rgba(80, 200, 120, 0.6);
    flex-shrink: 0;
}

.checkbox-label-inline span {
    flex: 1;
}

.location-name-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(80, 200, 120, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.location-name-input:focus {
    outline: none;
    border-color: #50c878;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(80, 200, 120, 0.1);
}

.location-name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.favorites-inline-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(80, 200, 120, 0.15);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 200, 120, 0.3) transparent;
}

.favorites-inline-list::-webkit-scrollbar {
    height: 6px;
}

.favorites-inline-list::-webkit-scrollbar-track {
    background: transparent;
}

.favorites-inline-list::-webkit-scrollbar-thumb {
    background: rgba(80, 200, 120, 0.3);
    border-radius: 3px;
}

.favorites-inline-list::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 200, 120, 0.5);
}

.btn-favorite-inline {
    background: rgba(80, 200, 120, 0.15);
    border: 1px solid rgba(80, 200, 120, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite-inline:hover {
    background: rgba(80, 200, 120, 0.25);
    border-color: rgba(80, 200, 120, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.favorite-inline-item {
    display: inline-block;
    flex-shrink: 0;
}

/* Styles pour les points d'étape */
.waypoints-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: -1.85rem;
    align-items: start;
}

.waypoints-category {
    display: flex;
    flex-direction: column;
    gap: 0.07rem;
    align-items: center;
}

.waypoints-header {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.waypoints-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.4rem;
    margin-top: 0;
}

.waypoints-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 0;
    margin-bottom: 0;
}

.waypoint-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(80, 200, 120, 0.2);
    border: 1px solid rgba(80, 200, 120, 0.4);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: #ffffff;
}

.waypoint-chip-name {
    font-weight: 500;
}

.waypoint-chip-weight {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-left: 0.3rem;
}

.waypoint-chip-remove {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.waypoint-chip-remove:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.waypoint-chip-edit {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.waypoint-chip-edit:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.favorite-inline-edit {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.favorite-inline-edit:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.favorite-dropdown-edit {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.favorite-dropdown-edit:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.btn-add-waypoint {
    background: rgba(80, 200, 120, 0.15);
    border: 1px solid rgba(80, 200, 120, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    width: 95%;
}

.btn-add-waypoint:hover {
    background: rgba(80, 200, 120, 0.25);
    border-color: rgba(80, 200, 120, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .waypoints-section {
        grid-template-columns: 1fr;
    }
}

.favorite-route-selector {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(80, 200, 120, 0.2);
}

.favorite-route-selector label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.6rem;
}

.form-save-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(80, 200, 120, 0.2);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-calculate-route {
    background: #50c878;
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.btn-calculate-route:hover {
    background: #45b869;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.4);
}

/* Section Favoris */
.favorites-section {
    margin-top: 2rem;
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.favorites-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.btn-toggle-favorites {
    background: rgba(80, 200, 120, 0.2);
    color: #50c878;
    border: 1px solid rgba(80, 200, 120, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-favorites:hover {
    background: rgba(80, 200, 120, 0.3);
    border-color: rgba(80, 200, 120, 0.5);
}

.favorites-content {
    margin-top: 1rem;
}

.favorites-category {
    margin-bottom: 2rem;
}

.favorites-category:last-child {
    margin-bottom: 0;
}

.favorites-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(80, 200, 120, 0.2);
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(80, 200, 120, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 80px;
    max-height: 80px;
    min-height: 80px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(80, 200, 120, 0.4);
    transform: translateX(5px);
}

.favorite-item-content {
    flex: 1;
    min-width: 0; /* Permet au texte de se tronquer correctement */
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 100%;
    max-width: calc(100% - 100px); /* Réserver de l'espace pour les boutons */
}

.favorite-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.favorite-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    display: block;
    line-height: 1.4;
    height: 1.4em;
    flex-shrink: 1;
    min-width: 0;
}

.favorite-item-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.favorite-item-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.btn-delete-favorite {
    background: rgba(255, 120, 120, 0.1);
    border: 1px solid rgba(255, 120, 120, 0.3);
    color: rgba(255, 200, 200, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.btn-delete-favorite:hover {
    background: rgba(255, 120, 120, 0.2);
    border-color: rgba(255, 120, 120, 0.5);
    color: rgba(255, 220, 220, 0.95);
    transform: translateY(-1px);
}

.favorites-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 1rem;
    font-style: italic;
}

/* Page Favoris - Layout avec deux sections */
.favorites-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.favorites-section-box {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 250px);
    max-height: 800px;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.favorites-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(80, 200, 120, 0.3);
}

.favorites-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #50c878;
    margin: 0;
}

.favorites-section-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.favorites-section-content .favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.favorite-item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1rem;
    min-width: fit-content;
}

.btn-delete-favorite {
    background: rgba(255, 120, 120, 0.1);
    border: 1px solid rgba(255, 120, 120, 0.3);
    color: rgba(255, 200, 200, 0.8);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-favorite:hover {
    background: rgba(255, 120, 120, 0.2);
    border-color: rgba(255, 120, 120, 0.5);
    color: rgba(255, 220, 220, 0.95);
    transform: translateY(-1px);
}

/* Responsive pour la page favoris */
@media (max-width: 1024px) {
    .favorites-page-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Layout Route Results - Nouvelle organisation */
.route-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: end;
}

.route-cards-side-by-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.route-ml-suggestions-section {
    margin-top: 2rem;
    clear: both;
    width: 100%;
}

.route-ml-suggestions-content {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.route-ml-suggestion-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.route-ml-new-time {
    color: #50c878;
    font-size: 0.9rem;
    font-weight: 600;
}

.route-ml-new-time span {
    color: #50c878;
}

.btn-accept-suggestion {
    background: rgba(80, 200, 120, 0.5);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(80, 200, 120, 0.15);
}

.btn-accept-suggestion:hover {
    background: rgba(80, 200, 120, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
    border-color: rgba(80, 200, 120, 0.4);
}

.route-stats-section {
    margin-top: 2rem;
    clear: both;
    width: 100%;
}

.route-stats-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.route-stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(80, 200, 120, 0.2);
    transition: all 0.2s ease;
}

.route-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(80, 200, 120, 0.3);
}

.route-stat-item .route-option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.route-stat-item .route-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.route-stat-item .route-option-label {
    font-size: 0.75rem;
}

.route-stat-item .route-option-value {
    font-size: 1rem;
}

.route-send-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    width: 100%;
}

.btn-send-route {
    background: #50c878;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.btn-send-route:hover:not(:disabled) {
    background: #45b869;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.4);
}

.btn-send-route:disabled {
    background: rgba(80, 200, 120, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.route-actions-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    width: 100%;
}

/* Cartes de route style TomTom - Design plus sombre */
.route-card-tomtom {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 280px;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.route-card-tomtom:hover {
    border-color: rgba(80, 200, 120, 0.5);
    box-shadow: 0 4px 20px rgba(80, 200, 120, 0.2);
}

.route-card-tomtom.route-selected {
    border: 4px solid rgba(80, 200, 120, 0.05);
    background: rgba(80, 200, 120, 0.05);
    box-shadow: 0 0 0 2px rgba(80, 200, 120, 0.3), 0 4px 20px rgba(80, 200, 120, 0.3);
}

.route-navyra {
    border-color: rgba(80, 200, 120, 0.5);
    background: rgba(26, 26, 46, 0.75);
}

.route-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(80, 200, 120, 0.2);
}

.route-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    display: block;
}

.route-card-title-navyra {
    color: #50c878;
}

.route-type-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.route-type-badge-navyra {
    background: rgba(80, 200, 120, 0.2);
    color: #50c878;
}

.route-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.route-time-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.route-time-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.route-price-compact {
    display: flex;
    align-items: center;
}

.route-price-compact .route-price-value {
    font-size: 1.1rem;
    color: #50c878;
    font-weight: 700;
}

.traffic-icon {
    font-size: 1.2rem;
}

.traffic-text {
    font-weight: 500;
}

.route-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.route-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.route-detail-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-detail-value {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.route-points-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(80, 200, 120, 0.2);
}

.route-point-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    overflow: hidden;
}

.route-point-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #50c878;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.route-point-item:last-child .route-point-marker {
    background: #ff6b6b;
}

.route-point-address {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.route-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin-top: 0.6rem;
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
}

.route-price-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-price-value {
    font-size: 1.3rem;
    color: #50c878;
    font-weight: 700;
}

.route-actions-top {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.btn-new-route {
    background: rgba(80, 200, 120, 0.1);
    color: #50c878;
    border: 2px solid #50c878;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new-route:hover {
    background: rgba(80, 200, 120, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
}

/* Panels d'options à droite */
.route-option-panel {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(15px);
}

.route-option-header {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(80, 200, 120, 0.2);
}

.route-option-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.route-option-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-option-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.route-option-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.route-option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.route-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.route-option-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.route-option-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.route-option-value-savings {
    color: #50c878;
}

.route-option-btn {
    background: rgba(80, 200, 120, 0.1);
    color: #50c878;
    border: 1px solid rgba(80, 200, 120, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-option-btn:hover {
    background: rgba(80, 200, 120, 0.2);
    border-color: rgba(80, 200, 120, 0.5);
}

/* Section Carte - Version compacte */
.route-map-section-compact {
    background: rgba(26, 26, 46, 0.7);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.route-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.8rem;
}

.route-description-select {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.route-description-select:hover {
    border-color: rgba(80, 200, 120, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.route-description-select:focus {
    outline: none;
    border-color: #50c878;
    box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.1);
}

.btn-enlarge-map {
    padding: 0.5rem 1rem;
    background: rgba(80, 200, 120, 0.2);
    color: #50c878;
    border: 2px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-enlarge-map:hover {
    background: rgba(80, 200, 120, 0.3);
    border-color: rgba(80, 200, 120, 0.5);
    transform: translateY(-2px);
}

.route-map-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(80, 200, 120, 0.2);
}

.route-map-overlay {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.route-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive pour Route Planner */
@media (max-width: 1024px) {
    .route-top-section {
        grid-template-columns: 1fr;
    }

    .route-cards-side-by-side {
        grid-template-columns: 1fr;
    }

    .route-stats-content {
        grid-template-columns: 1fr;
    }

    .route-details {
        grid-template-columns: 1fr;
    }

    .route-details-horizontal {
        flex-direction: column;
        gap: 0.8rem;
    }

    .route-details-horizontal .route-detail-item {
        min-width: 100%;
    }

    .route-map-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-enlarge-map {
        width: 100%;
    }

    .route-map-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-calculate-route {
        width: 100%;
        padding: 1rem;
    }

    .route-card-tomtom {
        padding: 0.8rem;
    }

    .route-card-title {
        font-size: 0.9rem;
    }

    .route-time-value {
        font-size: 1.2rem;
    }

    .route-map-container {
        height: 300px;
    }

    .arrival-time-range {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-separator {
        display: none;
    }
}

/* Analytics Page Styles */
.analytics-period-selector {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #50c878;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.analytics-period-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.analytics-period-btn {
    background: rgba(80, 200, 120, 0.15);
    border: 2px solid rgba(80, 200, 120, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.analytics-period-btn:hover {
    background: rgba(80, 200, 120, 0.25);
    border-color: rgba(80, 200, 120, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.analytics-period-btn.active {
    background: #50c878;
    border-color: #50c878;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.analytics-period-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.analytics-period-display #periodText {
    color: #50c878;
    font-weight: 600;
}

/* Notice d'estimation */
.analytics-estimation-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.analytics-estimation-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.analytics-estimation-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Badge optionnel pour les dépenses */
.analytics-optional-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.5rem;
    font-weight: 500;
}

.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-stat-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #50c878;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    min-height: 160px;
    height: 160px;
    box-sizing: border-box;
}

.analytics-stat-card:hover {
    transform: translateY(-5px);
    border-color: #45b869;
    box-shadow: 0 8px 30px rgba(80, 200, 120, 0.3);
    background: rgba(26, 26, 46, 0.95);
}

.analytics-stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.7;
}

.analytics-stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 3rem;
}

.analytics-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #50c878;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.analytics-stat-change.positive {
    color: #50c878;
    background: rgba(80, 200, 120, 0.15);
}

.analytics-stat-change.negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.analytics-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.analytics-section-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #50c878;
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 500px;
}

.analytics-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(80, 200, 120, 0.3);
}

.analytics-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #50c878;
    margin: 0;
}

.analytics-section-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.analytics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analytics-list-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(80, 200, 120, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analytics-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(80, 200, 120, 0.4);
    transform: translateX(5px);
}

.analytics-list-item-rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: #50c878;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.analytics-list-item-content {
    flex: 1;
    min-width: 0;
}

.analytics-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.analytics-list-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.analytics-list-item-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #50c878;
    flex-shrink: 0;
}

.analytics-list-item-details {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    align-items: center;
    flex-wrap: wrap;
}

.analytics-list-item-details span {
    white-space: nowrap;
}

.analytics-list-item-progress {
    margin-top: 0.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.analytics-list-item-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #50c878, #45b869);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.analytics-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 2rem;
    font-style: italic;
}

.analytics-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.analytics-chart-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #50c878;
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.analytics-chart-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(80, 200, 120, 0.3);
}

.analytics-chart-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #50c878;
    margin: 0;
}

.analytics-chart-content {
    display: flex;
    flex-direction: column;
}

.analytics-chart-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.analytics-chart-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(80, 200, 120, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.analytics-chart-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(80, 200, 120, 0.4);
}

.analytics-chart-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.analytics-chart-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #50c878;
}

/* Responsive pour Analytics */
@media (max-width: 1400px) {
    .analytics-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .analytics-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-sections-grid {
        grid-template-columns: 1fr;
    }

    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }

    .analytics-period-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .analytics-period-buttons {
        justify-content: center;
    }

    .analytics-period-display {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .analytics-stats-grid {
        grid-template-columns: 1fr;
    }

    .analytics-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .analytics-stat-icon {
        font-size: 2rem;
    }

    .analytics-stat-value {
        font-size: 1.5rem;
    }

    .analytics-chart-stats {
        grid-template-columns: 1fr;
    }

    .analytics-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .analytics-list-item-rank {
        align-self: center;
    }
}

