/* CallTaxi Modern Design System */

/* Palette de couleurs professionnelle */
:root {
    /* Couleurs principales - Bleu Taxi Professionnel */
    --ct-primary: #1e40af;        /* Bleu profond */
    --ct-primary-hover: #1e3a8a;  /* Bleu plus foncé */
    --ct-primary-light: #3b82f6;  /* Bleu clair */
    --ct-primary-bg: #eff6ff;     /* Fond bleu très clair */

    /* Couleurs secondaires - Jaune Taxi Élégant */
    --ct-accent: #f59e0b;         /* Jaune/ambre */
    --ct-accent-hover: #d97706;   /* Ambre foncé */
    --ct-accent-light: #fbbf24;   /* Jaune clair */
    --ct-accent-bg: #fffbeb;      /* Fond jaune très clair */

    /* Couleurs de statut */
    --ct-success: #059669;        /* Vert succès */
    --ct-success-bg: #d1fae5;     /* Fond vert */
    --ct-warning: #dc2626;        /* Rouge erreur */
    --ct-warning-bg: #fee2e2;     /* Fond rouge */
    --ct-info: #0891b2;           /* Cyan info */
    --ct-info-bg: #cffafe;        /* Fond cyan */

    /* Couleurs neutres */
    --ct-gray-50: #f9fafb;
    --ct-gray-100: #f3f4f6;
    --ct-gray-200: #e5e7eb;
    --ct-gray-300: #d1d5db;
    --ct-gray-400: #9ca3af;
    --ct-gray-500: #6b7280;
    --ct-gray-600: #4b5563;
    --ct-gray-700: #374151;
    --ct-gray-800: #1f2937;
    --ct-gray-900: #111827;

    /* Ombres modernes */
    --ct-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ct-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ct-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ct-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ct-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions fluides */
    --ct-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --ct-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Boutons modernes */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    border-radius: 0.5rem;
    transition: var(--ct-transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.ct-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
}

.ct-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bouton primaire */
.ct-btn-primary {
    background-color: var(--ct-primary);
    color: white;
    box-shadow: var(--ct-shadow);
}

.ct-btn-primary:hover:not(:disabled) {
    background-color: var(--ct-primary-hover);
    box-shadow: var(--ct-shadow-md);
    transform: translateY(-1px);
}

.ct-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--ct-shadow-sm);
}

/* Bouton accent */
.ct-btn-accent {
    background-color: var(--ct-accent);
    color: white;
    box-shadow: var(--ct-shadow);
}

.ct-btn-accent:hover:not(:disabled) {
    background-color: var(--ct-accent-hover);
    box-shadow: var(--ct-shadow-md);
    transform: translateY(-1px);
}

/* Bouton succès */
.ct-btn-success {
    background-color: var(--ct-success);
    color: white;
    box-shadow: var(--ct-shadow);
}

.ct-btn-success:hover:not(:disabled) {
    background-color: #047857;
    box-shadow: var(--ct-shadow-md);
    transform: translateY(-1px);
}

/* Bouton secondaire */
.ct-btn-secondary {
    background-color: white;
    color: var(--ct-gray-700);
    border: 1px solid var(--ct-gray-300);
    box-shadow: var(--ct-shadow-sm);
}

.ct-btn-secondary:hover:not(:disabled) {
    background-color: var(--ct-gray-50);
    border-color: var(--ct-gray-400);
    box-shadow: var(--ct-shadow);
}

/* Bouton ghost */
.ct-btn-ghost {
    background-color: transparent;
    color: var(--ct-primary);
}

.ct-btn-ghost:hover:not(:disabled) {
    background-color: var(--ct-primary-bg);
}

/* Bouton danger */
.ct-btn-danger {
    background-color: var(--ct-warning);
    color: white;
    box-shadow: var(--ct-shadow);
}

.ct-btn-danger:hover:not(:disabled) {
    background-color: #b91c1c;
    box-shadow: var(--ct-shadow-md);
    transform: translateY(-1px);
}

/* Tailles de boutons */
.ct-btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
}

.ct-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.ct-btn-xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cartes modernes */
.ct-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: var(--ct-shadow);
    padding: 1rem;
    transition: var(--ct-transition);
}

.ct-card:hover {
    box-shadow: var(--ct-shadow-md);
}

.ct-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ct-gray-900);
    margin-bottom: 0.75rem;
}

/* Badges */
.ct-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.ct-badge-primary {
    background-color: var(--ct-primary-bg);
    color: var(--ct-primary);
}

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

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

.ct-badge-accent {
    background-color: var(--ct-accent-bg);
    color: var(--ct-accent-hover);
}

/* Inputs modernes */
.ct-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--ct-gray-300);
    border-radius: 0.5rem;
    transition: var(--ct-transition-fast);
    background-color: white;
}

.ct-input:focus {
    outline: none;
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.ct-input:disabled {
    background-color: var(--ct-gray-100);
    color: var(--ct-gray-500);
    cursor: not-allowed;
}

/* Navigation moderne */
.ct-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--ct-gray-600);
    border-radius: 0.5rem;
    transition: var(--ct-transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.ct-nav-item:hover {
    background-color: var(--ct-gray-100);
    color: var(--ct-gray-900);
}

.ct-nav-item.active {
    background-color: var(--ct-primary-bg);
    color: var(--ct-primary);
}

.ct-nav-item svg {
    transition: var(--ct-transition-fast);
}

.ct-nav-item:hover svg {
    transform: scale(1.1);
}

/* Icônes améliorées */
.ct-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.ct-icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.ct-icon-xl {
    width: 2rem;
    height: 2rem;
}

/* Header moderne */
.ct-header {
    background-color: white;
    border-bottom: 1px solid var(--ct-gray-200);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Alerts modernes */
.ct-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid;
    margin-bottom: 1rem;
}

.ct-alert-success {
    background-color: var(--ct-success-bg);
    border-color: #6ee7b7;
    color: #065f46;
}

.ct-alert-error {
    background-color: var(--ct-warning-bg);
    border-color: #fca5a5;
    color: #991b1b;
}

.ct-alert-info {
    background-color: var(--ct-info-bg);
    border-color: #a5f3fc;
    color: #164e63;
}

/* Animations subtiles */
@keyframes ct-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ct-fade-in {
    animation: ct-fade-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ct-slide-in {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.ct-slide-in {
    animation: ct-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prix/Total moderne */
.ct-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ct-primary);
    font-variant-numeric: tabular-nums;
}

.ct-price-sm {
    font-size: 1rem;
    font-weight: 600;
}

/* Tables modernes */
.ct-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ct-table th {
    background-color: var(--ct-gray-50);
    padding: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ct-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ct-table td {
    padding: 0.75rem;
    border-top: 1px solid var(--ct-gray-200);
}

.ct-table tbody tr:hover {
    background-color: var(--ct-gray-50);
}

/* Loading spinner */
.ct-spinner {
    border: 2px solid var(--ct-gray-200);
    border-top-color: var(--ct-primary);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .ct-btn {
        width: 100%;
    }

    .ct-card {
        padding: 0.875rem;
    }
}
