/* Styles personnalisés pour l'application de gestion des livraisons */

/* Variables CSS pour le thème */
:root {
    --primary-color: #334155;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --success-color: #22c55e;
    --warning-color: #f97316;
    --error-color: #ef4444;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Cartes des jours de livraison */
.delivery-day-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    display: block;
    transform: translateY(0);
}

.delivery-day-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #93c5fd;
    transform: translateY(-0.25rem);
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .delivery-day-card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .delivery-day-card:hover {
        border-color: #2563eb;
    }
}

/* Onglets */
.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-button.active {
    background-color: white;
    color: #111827;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .tab-button.active {
        background-color: #374151;
        color: #f9fafb;
    }
}

/* Boutons personnalisés */
.btn-primary {
    background-color: #3b82f6;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: #10b981;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    border: none;
    cursor: pointer;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    border: none;
    cursor: pointer;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* États des boutons */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-success:disabled,
.btn-warning:disabled,
.btn-danger:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Cartes des livreurs */
.deliverer-card {
    transition: all 0.2s;
}



/* Indicateurs de statut */
.status-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.status-indicator.verified {
    background-color: #10b981;
}

.status-indicator.unverified {
    background-color: #ef4444;
}

.status-indicator.pending {
    background-color: #f59e0b;
}

/* Barres de progression */
.progress-bar {
    transition: all 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.spin {
    animation: spin 1s linear infinite;
}

/* Checkboxes personnalisées */
.custom-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    background-color: #f3f4f6;
    border-color: #d1d5db;
    border-radius: 0.25rem;
}

.custom-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

@media (prefers-color-scheme: dark) {
    .custom-checkbox {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    .custom-checkbox:focus {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }
}

/* Inputs personnalisés */
.custom-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.custom-input::placeholder {
    color: #6b7280;
}

.custom-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
    .custom-input {
        border-color: #4b5563;
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .custom-input::placeholder {
        color: #9ca3af;
    }
}

.custom-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.custom-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
    .custom-select {
        border-color: #4b5563;
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* Messages de statut */
.status-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.status-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-message.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-message.info {
    background-color: #dbeafe;
    color: #1e40af;
}

@media (prefers-color-scheme: dark) {
    .status-message.success {
        background-color: #064e3b;
        color: #a7f3d0;
    }
    
    .status-message.warning {
        background-color: #78350f;
        color: #fcd34d;
    }
    
    .status-message.error {
        background-color: #7f1d1d;
        color: #fca5a5;
    }
    
    .status-message.info {
        background-color: #1e3a8a;
        color: #93c5fd;
    }
}

/* Modales */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
    margin: 0 1rem;
}

@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #1f2937;
    }
}

/* Tables responsives */
.table-responsive {
    overflow-x: auto;
}

.table-responsive table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive table tbody {
    border-top: 1px solid #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    .table-responsive table tbody {
        border-top-color: #374151;
    }
}

.table-responsive th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f9fafb;
}

@media (prefers-color-scheme: dark) {
    .table-responsive th {
        color: #d1d5db;
        background-color: #374151;
    }
}

.table-responsive td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #111827;
}

@media (prefers-color-scheme: dark) {
    .table-responsive td {
        color: #f9fafb;
    }
}

/* Grilles responsives */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .grid-responsive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tailles d'icônes */
.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Styles d'impression */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .delivery-day-card,
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-warning,
    .btn-danger {
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible */
.focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.2);
}

@media (prefers-color-scheme: dark) {
    .focus-visible {
        box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.3);
    }
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #111827;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Transitions personnalisées */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background-color: #1f2937;
    }
}

::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb {
        background-color: #4b5563;
    }
}

::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb:hover {
        background-color: #6b7280;
    }
}

/* Responsive mobile */
@media (max-width: 640px) {
    .container {
        padding: 0 0.5rem;
    }

    .delivery-day-card {
        padding: 1rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.125rem;
    }
} 