/* Amélioration du design général */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}


.wrapper {
    position: relative;
    width: 400px;
    height: 200px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: solid 1px #357af3;
    margin: 10px 0px;
}
.signature-pad {
    position: absolute;
    left: 0;
    top: 0;
    width:400px;
    height:200px;
}
textareasignature {
    width: 100%;
    min-height: 100px;
}

/* Styles de base */
#dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark #dropdown-menu {
    background-color: #334155;
    border-color: #475569;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}
.custom-icon {
    width: 24px; /* Taille des icônes */
    height: 24px;
    margin-right: 10px; /* Espacement entre l'icône et le texte */
}

#transport-menu {
    max-height: 300px; /* Limite la hauteur de la liste déroulante */
    overflow-y: auto; /* Ajoute un défilement si nécessaire */
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark #transport-menu {
    background-color: #334155;
    border-color: #475569;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.transport-option {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre l'icône et le texte */
    padding: 8px 12px;
    color: #1e293b;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.dark .transport-option {
    color: #f1f5f9;
}

.transport-option:hover {
    background-color: #f1f5f9;
}

.dark .transport-option:hover {
    background-color: #475569;
}

        /* Espacement entre l'icône et le texte */
.dropdown-item img {
    margin-right: 10px; /* Espace entre l'icône et le texte */
}

/* Ajuster l'alignement vertical si nécessaire */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px; /* Espacement interne des éléments */
    gap: 8px; /* Espace entre les éléments flexibles */
    color: #1e293b;
    transition: background-color 0.2s ease;
}

.dark .dropdown-item {
    color: #f1f5f9;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

.dark .dropdown-item:hover {
    background-color: #475569;
}


/* Icône dans le bouton */
#dropdown-button img {
    vertical-align: middle;
}

/* Option avec une icône */
#dropdown-menu li img {
    vertical-align: middle;
}

.form-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dark .form-container {
    background-color: #1e293b;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
}

.autocomplete-item {
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    background-color: white;
    color: #1e293b;
}

.dark .autocomplete-item {
    background-color: #334155;
    color: #f1f5f9;
    border-bottom-color: #475569;
}

.autocomplete-item:hover {
    background-color: #f1f5f9;
}

.dark .autocomplete-item:hover {
    background-color: #475569;
}

.text-gray-500 {
    color: #357af3;
}

.dark .text-gray-500 {
    color: #60a5fa;
}

.text-red-500 {
    color: #357af3;
}

.dark .text-red-500 {
    color: #60a5fa;
}
.hidden
{
    display: none;
}
/* Style du titre principal */
.main-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2rem;
}

.dark .main-title {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Amélioration des onglets */
.tab-buttons {
    gap: 20rem;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark .tab-buttons {
    background: #334155;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    color: #1e293b;
}

.dark .tab-button {
    color: #e2e8f0;
}

.tab-button:hover {
    background-color: #e2e8f0;
}

.dark .tab-button:hover {
    background-color: #475569;
}

.tab-button.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.dark .tab-button.active {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

/* Amélioration des champs de formulaire */
input, select, textarea {
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    background-color: #f8fafc;
}

.dark input, .dark select, .dark textarea {
    background-color: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

input:hover, select:hover, textarea:hover {
    border-color: #000000;
    background-color: white;
}

.dark input:hover, .dark select:hover, .dark textarea:hover {
    border-color: #60a5fa;
    background-color: #1e293b;
}

input:focus, select:focus, textarea:focus {
    border-color: #000000be;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
    background-color: white;
}

.dark input:focus, .dark select:focus, .dark textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    background-color: #1e293b;
}

/* Style des labels */
label {
    font-weight: 500;
    color: #000000;
    margin-bottom: 0.5rem;
    display: block;
}

.dark label {
    color: #e2e8f0;
}

/* Amélioration des boutons d'action */
.action-button {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.dark .action-button {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.dark .action-button:hover {
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

/* Animation de transition entre les onglets */
.tab-content {
    animation: fadeSlide 0.3s ease-out;
}

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

/* Style des sections */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.dark .section-title {
    color: #f1f5f9;
    border-bottom-color: #475569;
}

/* Amélioration des messages d'erreur */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.dark .error-message {
    color: #ef4444;
}

/* Style des tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: #1e293b;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
}

.dark .tooltip:hover::after {
    background: #475569;
    color: #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}
