:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #c8cce0;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --border-color: #e1e1e1;
    --border-color-dark: #c5c5c5;
    --green-color: #27ae60;
    --sidebar-width: 250px;
    --sidebar-width-collapsed: 70px;
    --transition-speed: 0.3s;
    --card-header-bg: #f8f9fa;
    --hover-bg: #e3e3e3;
    --primary-dark: #2a3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
}

.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-speed) ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .user-name,
.sidebar.collapsed .user-status,
.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.25rem;
}

.user-profile {
    padding: 1rem;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

#onlineUsersWidget .user-info {
    display:block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    margin-left: 26px;
    margin-top: -10px;
}

#onlineUsersWidget .user-name {
    margin-left: 0px;
    margin-top: 0px;
    font-size: 0.9em;
    padding-top: 0px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
}

.nav-section {
    flex: 1;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    background-color: var(--secondary-color);
}

.content-area {
    flex: 1;
    padding: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr 1fr;
    gap: 1rem;
    overflow-y: auto;
    height: 100%;
    transition: margin-left var(--transition-speed) ease;
}

.large-content-area.content-area {
    grid-template-columns: none;
    grid-template-rows: auto 1fr 1fr;
}

.global-search {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0.5rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-search .search-box {
    width: 400px;
}

.global-search input {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: white;
    font-size: 1rem;
}

.global-search .search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.tasks-column,
.customers-column,
.drivers-column {
    grid-column: 1;
    grid-row: 2 / -1;
}
.bookings-column{
    grid-column: 1;
    grid-row: 2 / -1;
}

.customers-column {
    grid-column: 1;
    grid-row: 2 / -1;
}

.customer-tasks-column {
    grid-column: 2;
    grid-row: 2 / -1;
}

.calendar-column {
    grid-row: 2 / -1;
}

.columns-container {
    grid-column: 1;
    grid-row: 2 / -1;
}

.rides-column {
    grid-column: 2;
    grid-row: 3;
}

.card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

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

.card-header .d-flex {
    gap: 1rem;
}

.card-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.card-header .btn i {
    font-size: 1rem;
}

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

.card-header .btn:not(.active):hover {
    background-color: var(--hover-bg);
}

.card-header .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
}

.card-header .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.card-header .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    padding-right: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color-dark);
    background-color: white;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.task-creation-card {
    margin-top: 1rem;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.task-creation-card .card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.task-creation-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.task-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.task-form .form-group {
    margin-bottom: 1rem;
}

.task-form .btn {
    width: 100%;
}

.card-body {
    padding: 0rem;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.message-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    resize: none;
}

.message {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.task-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.task-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.task-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.task-checkbox input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
}

.task-item:hover {
    background-color: #f5f8fa;
}

.task-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

.task-meta,
.reminder-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
}

.task-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.task-priority.high {
    background-color: #e74c3c;
    color: white;
}

.task-priority.medium {
    background-color: #f1c40f;
    color: white;
}

.task-priority.low {
    background-color: #2ecc71;
    color: white;
}

.task-description {
    color: #666;
    font-size: 0.875rem;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-assignee img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.ride-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ride-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
}

.floating-buttons {
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
}

.floating-button:nth-child(2) {
    background-color: #27ae60;
}

.floating-button:nth-child(3) {
    background-color: #8e44ad;
}

.floating-button:nth-child(4) {
    background-color: #e67e22;
}

.floating-button:hover {
    transform: translateY(-2px);
    background-color: #2980b9;
}

.floating-button:nth-child(2):hover {
    background-color: #219a52;
}

.floating-button:nth-child(3):hover {
    background-color: #7d3c98;
}

.floating-button:nth-child(4):hover {
    background-color: #d35400;
}

.floating-button.active {
    background-color: #e74c3c;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.char-count {
    text-align: right;
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: white;
    margin: 30px auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

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

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

.mention-dropdown {
    position: absolute;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.mention-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mention-item:hover {
    background-color: #f8f9fa;
}

.mention-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.mention-item .name {
    font-weight: 500;
}

.mention-item .type {
    font-size: 0.75rem;
    color: #666;
}

.form-group {
    position: relative;
}

.user-mention, .customer-mention {
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
}

.user-mention:hover, .customer-mention:hover {
    opacity: 0.8;
}

.mention-item.selected {
    background-color: #f8f9fa;
    border-left: 3px solid var(--secondary-color);
}


.user-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: #2ecc71;
}

.status-dot.away {
    background-color: #f1c40f;
}

.status-dot.busy {
    background-color: #e74c3c;
}

.user-activity {
    font-size: 0.75rem;
    color: #999;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
}

.nav-tabs .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-tabs .badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-tabs .btn.active .badge {
    background-color: white;
    color: var(--secondary-color);
}

.calendar-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 300px;
}

.calendar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-body {
    padding: 1rem;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.calendar-event {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
}

.calendar-event-time {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.calendar-event-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.calendar-event-location {
    font-size: 0.75rem;
    color: #666;
}

.calendar-event.urgent {
    border-left-color: #e74c3c;
}

.calendar-event.regular {
    border-left-color: #2ecc71;
}

.task-item:nth-child(even) {
    background-color: #f8f9fa;
}

.calendar-event:nth-child(even) {
    background-color: #f8f9fa;
}

.ride-card:nth-child(even) {
    background-color: #f8f9fa;
}

.user-item:nth-child(even) {
    background-color: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #2980b9;
}

.action-button:nth-child(2) {
    background-color: #27ae60;
}

.action-button:nth-child(2):hover {
    background-color: #219a52;
}

.action-button:nth-child(3) {
    background-color: #8e44ad;
}

.action-button:nth-child(3):hover {
    background-color: #7d3c98;
}

.action-button:nth-child(4) {
    background-color: #3498db;
}

.action-button:nth-child(4):hover {
    background-color: #2980b9;
}

.action-button:nth-child(5) {
    background-color: #f39c12;  
}

.action-button:nth-child(5):hover {
    background-color: #d39e00;
}

.action-button.floating-button {
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.action-button.floating-button:hover {
    transform: translateY(-2px);
}

.add-task-btn {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #27ae60;
    color: white;
    border-radius: 6px;
    margin: 0 0.5rem;
}

.add-task-btn:hover {
    color:white;
    background-color: #219a52;
}

.add-task-btn i {
    font-size: 0.875rem;
}

.mention-input-container {
    position: relative;
}

.selected-mentions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.selected-mention {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
}

.selected-mention.user {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.selected-mention.customer {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.selected-mention.driver {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.selected-mention .remove-mention {
    color: inherit;
    opacity: 0.7;
}

.selected-mention:hover .remove-mention {
    opacity: 1;
}

.mention-category {
    margin-bottom: 1rem;
    display: none;
}

.category-header {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--text-color);
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.category-items {
    max-height: 150px;
    overflow-y: auto;
}

.mention-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mention-item:hover, .mention-item.selected {
    background-color: #f8f9fa;
}

.mention-item.selected {
    border-left: 3px solid var(--secondary-color);
}

.selected-mention {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.selected-mention.user {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.selected-mention.customer {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.selected-mention.driver {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.selected-mention .remove-mention {
    opacity: 0.7;
}

.selected-mention:hover .remove-mention {
    opacity: 1;
}

.mentions-dropdown {
    position: absolute;
    z-index: 1000;
    background: white;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.task-mentions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.task-mention {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-mention:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.task-mention.before {
    font-size: 0.9rem !important;
}

.task-mention.user {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.task-mention.customer {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.task-mention.driver {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.edit-note-modal .form-group {
    margin-bottom: 1rem;
}

.avatar-initials {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 8px;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mention-item .avatar-initials {
    width: 24px;
    height: 24px;
    font-size: 10px;
}



/* Couleurs différentes pour les avatars selon la première lettre du nom */
.avatar-initials[data-color="1"] { background-color: #3498db; }
.avatar-initials[data-color="2"] { background-color: #2ecc71; }
.avatar-initials[data-color="3"] { background-color: #e74c3c; }
.avatar-initials[data-color="4"] { background-color: #f39c12; }
.avatar-initials[data-color="5"] { background-color: #9b59b6; }
.avatar-initials[data-color="6"] { background-color: #1abc9c; }
.avatar-initials[data-color="7"] { background-color: #d35400; }
.avatar-initials[data-color="8"] { background-color: #34495e; }

.task-dates,
.reminder-dates,
.report-date {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    color: #42b478;
    text-align: right;
}

.task-date-label {
    font-weight: 500;
    margin-right: 0.25rem;
}

.toggle-sidebar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
}

.toggle-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.logo-selector {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.logo-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    width: 22%;
    transition: all 0.2s;
}

.logo-option:hover {
    background-color: #f5f5f5;
}

.logo-option.selected {
    background-color: #e3f2fd;
    border-color: #3498db;
}

.logo-option i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #555;
}

.logo-option span {
    font-size: 12px;
    color: #666;
}

.panel-preview {
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Styles pour les en-têtes de modal */
.modal-header {
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin: -20px -20px 20px -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.modal-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .close-btn:hover {
    opacity: 1;
}

/* Variations de couleur pour différents types de modales */
.modal-header.primary {
    background-color: #3498db;
}

.modal-header.success {
    background-color: #2ecc71;
}

.modal-header.warning {
    background-color: #f39c12;
}

.modal-header.danger {
    background-color: #e74c3c;
}

.modal-header.info {
    background-color: #00bcd4;
}

.task-item-wrapper {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.task-content {
    flex: 1;
    margin-left: 10px;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
}

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

.delete-task-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-task-btn:hover {
    opacity: 1;
}

.make-task-btn {
    width: 20px;
    height: 20px;
    border: none;
    background-color: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.make-task-btn:hover {
    color: #2980b9;
    transform: scale(1.1);
}

/* Animations et transitions pour les tâches */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.highlight {
    animation: highlight 2s ease-in-out;
}

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

@keyframes highlight {
    0% { background-color: rgba(52, 152, 219, 0.2); }
    50% { background-color: rgba(52, 152, 219, 0.1); }
    100% { background-color: transparent; }
}

/* Structure des tâches et notes */
.task-item-wrapper {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.task-item-wrapper:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.task-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-color);
    white-space: pre-line;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.btn-icon:hover {
    opacity: 1;
    color: var(--primary-color);
}

.delete-task-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.delete-task-btn:hover {
    opacity: 1;
    color: #c82333;
}

/* Message pour aucun élément à afficher */
.no-tasks-message {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Styles pour les compteurs de tâches */
.nav-tabs .badge {
    background-color: var(--secondary-color);
}

.nav-tabs .badge-secondary {
    background-color: #6c757d;
}

.nav-tabs .badge-success {
    background-color: var(--green-color);
}

/* Système de notifications toast */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    max-width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    color: #fff;
    transform: translateX(120%);
    opacity: 0;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.fade-out {
    transform: translateX(120%);
    opacity: 0;
}

.toast-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-title i {
    font-size: 18px;
}

.toast-body {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.toast-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-left: 5px solid #27ae60;
}

.toast-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-left: 5px solid #c0392b;
}

.toast-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-left: 5px solid #e67e22;
}

.toast-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-left: 5px solid #2980b9;
}

/* Animation d'entrée pour les toasts */
@keyframes toastEnter {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation de sortie pour les toasts */
@keyframes toastExit {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Responsive design pour mobiles */
@media (max-width: 576px) {
    #toastContainer {
        top: auto;
        bottom: 20px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .toast {
        max-width: 100%;
    }
}

/* Styles pour les réservations */
.bookings-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 20px;
}

.booking-item-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.booking-item-wrapper:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.booking-content {
    padding: 15px;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.booking-source {
    font-weight: bold;
    color: #333;
}

.booking-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-waiting {
    background-color: #f8f9fa;
    color: #6c757d;
}

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

.status-on-way {
    background-color: #cce5ff;
    color: #004085;
}

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

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-unknown {
    background-color: #f8f9fa;
    color: #6c757d;
}

.booking-details {
    margin-bottom: 10px;
}

.booking-reference, .booking-dates, .booking-info {
    margin-bottom: 8px;
}

.booking-reference span, .booking-dates span, .booking-info span {
    margin-right: 15px;
    display: inline-block;
    font-size: 0.9em;
    color: #495057;
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
}

.booking-actions button {
    margin-left: 5px;
}

/* Animation pour les nouvelles réservations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Message quand aucune réservation n'est disponible */
.no-bookings-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Styles pour les tabs */
#bookings-column .nav-tabs .btn.active {
    background-color: #4e73df;
    color: white;
}

#bookings-column .nav-tabs .btn:not(.active) {
    background-color: #f8f9fa;
    color: #495057;
}

#bookings-column .nav-tabs .btn:hover:not(.active) {
    background-color: #e9ecef;
}

/* Styles pour les réservations prépayées */
#bookings-prepaid-column .nav-tabs .btn.active {
    background-color: #e74a3b;
    color: white;
}

#bookings-prepaid-column .nav-tabs .btn:not(.active) {
    background-color: #f8f9fa;
    color: #495057;
}

#bookings-prepaid-column .nav-tabs .btn:hover:not(.active) {
    background-color: #e9ecef;
}

/* Styles pour la modal de détails des réservations */
.booking-details-container {
    padding: 10px;
}

.booking-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.booking-details-header h4 {
    margin: 0;
    color: #4e73df;
}

.booking-details-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.booking-details-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.booking-details-section:last-child {
    border-bottom: none;
}

.booking-details-section h5 {
    color: #5a5c69;
    margin-bottom: 10px;
    font-size: 1rem;
}

.details-row {
    display: flex;
    margin-bottom: 8px;
}

.details-label {
    flex: 0 0 30%;
    font-weight: bold;
    color: #666;
}

.details-value {
    flex: 0 0 70%;
    color: #333;
}

/* Style pour les boutons d'action dans la modal */
.modal-footer .btn-primary {
    background-color: #4e73df;
}

.modal-footer .btn-primary:hover {
    background-color: #2e59d9;
}

/* Styles pour le panneau d'entité */
.entity-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.entity-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.pac-container {
    z-index: 10000 !important;
}

.entity-side-panel {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.entity-side-panel.open {
    right: 0;
}

.entity-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #3498db;
    color: white;
}

.entity-panel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-panel-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
}

.close-panel-btn:hover {
    opacity: 1;
}

.entity-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.entity-panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: #777;
    flex: 1;
}

.entity-panel-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #3498db;
}

.entity-panel-data {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.entity-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.entity-avatar, .entity-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.entity-avatar img, .entity-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-info {
    flex: 1;
}

.entity-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.entity-info p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #666;
}

.entity-status {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
}

.entity-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    background-color: #ccc;
}

.entity-status.online .status-dot {
    background-color: #2ecc71;
}

.entity-status.away .status-dot {
    background-color: #f39c12;
}

.entity-status.busy .status-dot {
    background-color: #e74c3c;
}

/* Styles pour les onglets */
.entity-tabs {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 0 10px;
}

.entity-tab {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
}

.entity-tab:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.entity-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.entity-tab-panel {
    display: none;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.entity-tab-panel.active {
    display: block;
}

.entity-section {
    margin-bottom: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.entity-section h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.entity-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.entity-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.detail-label i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
    color: #888;
}

.detail-value {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

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

.entity-actions button {
    flex: 1;
    white-space: nowrap;
}

.entity-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #e74c3c;
    text-align: center;
}

.entity-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.entity-error p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.entity-error small {
    color: #777;
    font-size: 0.85rem;
}

/* Style pour les listes d'éléments dans chaque onglet */
.entity-item-list {
    padding: 10px;
}

.entity-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    overflow: hidden;
    border-left: 4px solid #3498db;
}

.entity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.entity-item.task {
    border-left-color: #2ecc71;
}

.entity-item.note {
    border-left-color: #f39c12;
}

.entity-item-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.entity-item-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.entity-item-date {
    font-size: 0.8rem;
    color: #777;
}

.entity-item-content {
    padding: 15px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.entity-item-footer {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #777;
}

.no-items-message {
    text-align: center;
    padding: 30px 20px;
    color: #777;
    font-style: italic;
}

@media (max-width: 992px) {
    .entity-side-panel {
        width: 70%;
        right: -70%;
    }
}

@media (max-width: 768px) {
    .entity-side-panel {
        width: 85%;
        right: -85%;
    }
}

@media (max-width: 576px) {
    .entity-side-panel {
        width: 100%;
        right: -100%;
    }
    
    .entity-tabs {
        padding: 0;
    }
    
    .entity-tab {
        padding: 10px;
        font-size: 0.8rem;
    }
}
