:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #ebf5fb;
    --accent: #e74c3c;
    --accent-light: #fdeaea;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --danger-light: #fdeaea;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #95a5a6;
    --gray-light: #ecf0f1;
    --gray-dark: #7f8c8d;
    --moto: #9b59b6;
    --velo: #1abc9c;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Navigation */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.nav-tab {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background: transparent;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-tab.active {
    background: var(--primary);
    color: white;
}

/* Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.card-title {
    font-size: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

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

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

.badge-info {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-admin {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.badge-moto {
    background: var(--moto);
    color: white;
}

.badge-velo {
    background: var(--velo);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

label {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Transport Types */
.transport-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.transport-type {
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transport-type:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.transport-type.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.transport-name {
    font-weight: 600;
    margin-top: 10px;
    color: var(--dark);
}

.transport-desc {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.transport-type.moto.selected {
    border-color: var(--moto);
    background: rgba(155, 89, 182, 0.1);
}

.transport-type.velo.selected {
    border-color: var(--velo);
    background: rgba(26, 188, 156, 0.1);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}

.file-upload-btn {
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.file-preview {
    margin-top: 15px;
    min-height: 60px;
}

.file-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* Preferences Grid */
.prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.pref-item {
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pref-item:hover {
    border-color: var(--primary);
}

.pref-item.selected {
    background: var(--primary-light);
    border-color: var(--primary);
}

.pref-item input {
    display: none;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-light);
    border-radius: 34px;
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .toggle-slider {
    background-color: var(--success);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Numéro de série */
.numero-serie-container {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #d6eaf8 100%);
    border-radius: var(--radius);
    margin: 25px 0;
}

.numero-serie {
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    border: 3px dashed var(--primary);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

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

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--dark);
}

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

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Search */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* Trips Grid */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.trip-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

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

.trip-card.inactive {
    opacity: 0.7;
}

.trip-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--success) 0%, #27ae60 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.trip-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.status-inactive {
    background: var(--gray);
    color: white;
}

.trip-type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 10px 0;
}

.trip-route {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trip-details {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    margin: 15px 0;
}

.trip-prefs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.pref-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.trip-serie {
    font-family: monospace;
    color: var(--gray);
    font-size: 0.9rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trip-driver {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
}

.driver-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.driver-rating {
    color: var(--warning);
    margin-top: 5px;
}

.stars-container {
    color: var(--warning);
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.profile-email {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.profile-details {
    display: flex;
    gap: 30px;
}

.profile-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
}

/* Inbox */
.inbox-container {
    margin: 30px 0;
}

.inbox-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.inbox-card:hover {
    transform: translateX(5px);
}

.inbox-card.inbox-unread {
    border-left-color: var(--accent);
    background: var(--accent-light);
}

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

.inbox-sender {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.inbox-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.inbox-subject {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.inbox-message {
    color: var(--dark);
    line-height: 1.6;
}

/* Chat */
.chat-box {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: var(--radius);
    max-width: 80%;
}

.message.bot {
    background: var(--primary-light);
    margin-right: auto;
}

.message.user {
    background: var(--accent-light);
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-btn {
    padding: 10px 20px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Admin */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.admin-card {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
}

.user-list, .trip-list {
    max-height: 400px;
    overflow-y: auto;
}

.user-item, .trip-item {
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-actions {
    display: flex;
    gap: 5px;
}

.admin-action-btn {
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.delete-btn {
    background: #fdeaea;
    color: var(--danger);
}

.info-bubble {
    position: relative;
    display: inline-block;
    cursor: help;
}

.bubble-content {
    display: none;
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    width: 300px;
    z-index: 100;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

.info-bubble:hover .bubble-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

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

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon {
    text-align: center;
    font-size: 4rem;
    color: var(--primary);
    margin: 20px 0;
}

/* Enhanced Modal */
.modal.enhanced .modal-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Login History Table */
.login-history-table {
    width: 100%;
    border-collapse: collapse;
}

.login-history-table th {
    background: var(--light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
}

.login-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-light);
}

.status-success {
    color: var(--success);
    font-weight: 600;
}

.status-failed {
    color: var(--danger);
    font-weight: 600;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 2.5rem;
}

.rating-star {
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-star.selected {
    color: var(--warning);
}

.rating-star.hovered {
    color: var(--warning);
    transform: scale(1.1);
}

.rating-value {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark);
    margin: 15px 0;
}

/* Mobile Menu */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    cursor: pointer;
}

.hamburger-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.menu-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.menu-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: var(--dark);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

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

.menu-footer {
    padding: 20px;
    text-align: center;
    color: var(--gray);
    border-top: 1px solid var(--gray-light);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.menu-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .form-grid,
    .transport-types,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .trips-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-open {
        overflow: hidden;
    }
    
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Rassemblement Info */
.rassemblement-info {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    margin: 15px 0;
    border-left: 4px solid var(--accent);
}

/* Social Buttons */
.btn-social {
    background: white;
    border: 2px solid var(--gray-light);
    color: var(--dark);
}

.btn-google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.btn-apple:hover {
    border-color: black;
    color: black;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 30px;
    animation: bannerSlide 0.5s ease;
}

@keyframes bannerSlide {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input {
    margin-top: 4px;
}

/* Reservation Trip Info */
.reservation-trip-info {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
}

/* Hamburger Menu Fix */
body.menu-open {
    overflow: hidden;
}

/* Trip Actions */
.trip-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #e67e22 100%);
    color: white;
}

/* Stars Empty */
.stars-empty {
    color: var(--gray-light);
}

/* Chat Container */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Menu Item Active */
.menu-item.active {
    background: var(--primary);
    color: white;
}

/* Button Disabled */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}
/* Style pour les notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Styles améliorés pour la boîte de réception */
.inbox-header-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.inbox-filter-btn {
    padding: 8px 15px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inbox-filter-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.inbox-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.inbox-search-container {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.inbox-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.inbox-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* Styles pour les actions de message */
.message-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inbox-card:hover .message-actions {
    opacity: 1;
}

.message-action-btn {
    padding: 5px 10px;
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.message-action-btn.delete:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

.message-action-btn.archive:hover {
    background: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning);
}

/* Étiquettes de message */
.message-label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 5px;
}

.label-reservation {
    background: var(--success-light);
    color: var(--success-dark);
}

.label-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.label-info {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.label-system {
    background: var(--gray-light);
    color: var(--gray-dark);
}

/* Panneau latéral pour la messagerie */
.messaging-sidebar {
    display: none;
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1003;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.messaging-sidebar.active {
    right: 0;
}

.messaging-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messaging-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.messaging-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.messaging-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Compteurs de messages */
.folder-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.folder-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
}

.folder-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.folder-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
}

/* Notification toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius);
    padding: 15px 20px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1004;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification-toast.active {
    transform: translateX(0);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

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

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

.notification-content {
    flex: 1;
}

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

.notification-message {
    font-size: 0.9rem;
    color: var(--gray);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
}

/* Bouton de nouvelle conversation */
.new-conversation-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1002;
    transition: all 0.3s ease;
}

.new-conversation-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Statut de lecture */
.read-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.read-status.unread {
    background: var(--primary);
}

.read-status.read {
    background: var(--gray-light);
}

/* Date relative */
.relative-date {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
}

/* Ajout de couleurs supplémentaires pour les étiquettes */
:root {
    --success-light: #d5f4e6;
    --success-dark: #27ae60;
    --warning-light: #fef9e7;
    --warning-dark: #f39c12;
    --primary-light: #ebf5fb;
    --primary-dark: #2980b9;
    --gray-light: #ecf0f1;
    --gray-dark: #7f8c8d;
}

/* Responsive pour la messagerie */
@media (max-width: 768px) {
    .messaging-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .inbox-header-actions {
        flex-direction: column;
    }
    
    .inbox-search-container {
        min-width: 100%;
    }
    
    .notification-toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Animation pour les nouveaux messages */
@keyframes newMessagePulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.inbox-card.new-message {
    animation: newMessagePulse 2s;
    border-left: 4px solid var(--primary);
}

/* Styles pour les pièces jointes */
.attachment-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: var(--light);
    border-radius: var(--radius);
}

.attachment-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.attachment-size {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Badge de priorité */
.priority-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
}

.priority-high {
    background: var(--danger-light);
    color: var(--danger);
}

.priority-medium {
    background: var(--warning-light);
    color: var(--warning);
}

.priority-low {
    background: var(--success-light);
    color: var(--success);
}
/* ========== STYLE GMAIL POUR LA BOÎTE DE RÉCEPTION ========== */
.gmail-inbox-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.gmail-sidebar {
    width: 250px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.gmail-compose-btn {
    width: 100%;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.gmail-compose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.gmail-folders {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gmail-folder {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
    text-decoration: none;
}

.gmail-folder:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.gmail-folder.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.gmail-folder-count {
    margin-left: auto;
    background: var(--gray-light);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gmail-folder.active .gmail-folder-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gmail-labels {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.gmail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gmail-label:hover {
    background: var(--light);
}

.gmail-label-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.gmail-main-content {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gmail-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-light);
    background: var(--light);
}

.gmail-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.gmail-action-btn {
    background: none;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gmail-action-btn:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.gmail-search-container {
    flex: 1;
    position: relative;
}

.gmail-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    font-size: 0.9rem;
}

.gmail-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.gmail-messages-list {
    max-height: 600px;
    overflow-y: auto;
}

.gmail-message-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gmail-message-row:hover {
    background: var(--light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gmail-message-row.unread {
    background: var(--primary-light);
    font-weight: 600;
}

.gmail-message-row.selected {
    background: #e3f2fd;
}

.gmail-message-checkbox {
    margin-right: 15px;
}

.gmail-star-btn {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

.gmail-star-btn.starred {
    color: var(--warning);
}

.gmail-sender {
    width: 200px;
    font-weight: 600;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmail-message-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmail-subject {
    font-weight: 600;
    color: var(--dark);
}

.gmail-preview {
    color: var(--gray-dark);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmail-date {
    width: 100px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray);
}

.gmail-label-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 5px;
}

.gmail-priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.priority-high {
    background: var(--danger);
}

.priority-medium {
    background: var(--warning);
}

/* ========== STYLES POUR LA GESTION DU PROFIL ========== */
.profile-management {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.profile-sidebar {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
    text-decoration: none;
}

.profile-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.profile-nav-item.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.profile-content {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.photo-upload-area {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.photo-preview-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    margin: 0 auto 20px;
    display: block;
}

.photo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.password-strength {
    height: 5px;
    background: var(--gray-light);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background: var(--danger);
}

.password-strength.medium .password-strength-bar {
    width: 66%;
    background: var(--warning);
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: var(--success);
}

.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--gray);
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.invalid {
    color: var(--danger);
}

/* ========== STYLES POUR LES STATISTIQUES DÉTAILLÉES ========== */
.detailed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detailed-stat-card {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.detailed-stat-card.success {
    border-left-color: var(--success);
}

.detailed-stat-card.warning {
    border-left-color: var(--warning);
}

.detailed-stat-card.danger {
    border-left-color: var(--danger);
}

.detailed-stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.detailed-stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========== STYLES POUR L'HISTORIQUE DES ACTIVITÉS ========== */
.activity-timeline {
    margin-top: 30px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-left: 3px solid var(--primary);
    margin-bottom: 15px;
    background: var(--light);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.activity-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .gmail-inbox-container {
        flex-direction: column;
    }
    
    .gmail-sidebar {
        width: 100%;
    }
    
    .profile-management {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gmail-toolbar {
        flex-wrap: wrap;
    }
    
    .gmail-search-container {
        order: 1;
        width: 100%;
        margin-top: 10px;
    }
    
    .gmail-message-row {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .gmail-sender {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .gmail-message-content {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .gmail-date {
        width: auto;
        margin-left: auto;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.new-message-indicator {
    animation: pulse 2s infinite;
}

/* ========== STYLES POUR LES MODALS DE CONFIRMATION ========== */
.confirm-modal .modal-content {
    max-width: 500px;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}
/* ========== STYLE GMAIL POUR LA BOÎTE DE RÉCEPTION ========== */
.gmail-inbox-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.gmail-sidebar {
    width: 250px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.gmail-compose-btn {
    width: 100%;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.gmail-compose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.gmail-folders {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gmail-folder {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
    text-decoration: none;
}

.gmail-folder:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.gmail-folder.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.gmail-folder-count {
    margin-left: auto;
    background: var(--gray-light);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gmail-folder.active .gmail-folder-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gmail-main-content {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gmail-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-light);
    background: var(--light);
}

.gmail-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.gmail-action-btn {
    background: none;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gmail-action-btn:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.gmail-search-container {
    flex: 1;
    position: relative;
}

.gmail-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    font-size: 0.9rem;
}

.gmail-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.gmail-messages-list {
    max-height: 600px;
    overflow-y: auto;
}

.gmail-message-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gmail-message-row:hover {
    background: var(--light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gmail-message-row.unread {
    background: var(--primary-light);
    font-weight: 600;
}

.gmail-message-row.selected {
    background: #e3f2fd;
}

.gmail-message-checkbox {
    margin-right: 15px;
}

.gmail-star-btn {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

.gmail-star-btn.starred {
    color: var(--warning);
}

.gmail-sender {
    width: 200px;
    font-weight: 600;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmail-message-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmail-subject {
    font-weight: 600;
    color: var(--dark);
}

.gmail-preview {
    color: var(--gray-dark);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmail-date {
    width: 100px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray);
}

.gmail-label-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 5px;
}

.gmail-priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.priority-high {
    background: var(--danger);
}

.priority-medium {
    background: var(--warning);
}

