/* Custom CSS overrides for BM-Finance */

/* Dark mode adjustments */
.dark .bg-white {
    background-color: #1e293b;
}

.dark .bg-slate-50 {
    background-color: #0f172a;
}

.dark .bg-slate-800 {
    background-color: #1e293b;
}

.dark .text-slate-900 {
    color: #f8fafc;
}

.dark .border-slate-200 {
    border-color: #334155;
}

/* Card styling */
.card {
    @apply bg-white dark:bg-slate-800 rounded-xl shadow-sm border border-slate-200 dark:border-slate-700;
}

/* Status badge animations */
.status-badge {
    @apply transition-all duration-200;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* Table row hover effect */
tbody tr.cursor-pointer:hover {
    background-color: rgba(14, 165, 233, 0.05);
}

.dark tbody tr.cursor-pointer:hover {
    background-color: rgba(14, 165, 233, 0.1);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    @apply ring-2 ring-primary/50;
}

/* Button hover effects */
.btn-primary {
    @apply bg-primary hover:bg-primary-dark text-white transition-colors duration-150;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Sidebar active state */
.nav-link.active {
    @apply bg-primary/10 text-primary;
}

/* Flash messages positioning */
.flash-messages {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Multi-step form transitions */
.step-content {
    animation: fadeIn 0.3s ease-out;
}

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

/* Step indicator styles */
.step-btn {
    transition: all 0.2s ease;
}

.step-btn.active {
    @apply bg-primary text-white;
}

.step-btn.completed {
    @apply bg-green-500 text-white;
}

/* Progress bar for taux_success */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.dark input[type="range"] {
    background: #475569;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0EA5E9;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0EA5E9;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

/* Responsive table scroll */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Badge colors override for dark mode */
.dark .bg-blue-100 {
    background-color: #1e3a5f;
}

.dark .bg-yellow-100 {
    background-color: #5f4a1e;
}

.dark .bg-purple-100 {
    background-color: #4a3b5f;
}

.dark .bg-green-100 {
    background-color: #1e5f3a;
}

.dark .bg-red-100 {
    background-color: #5f1e1e;
}

/* Input number arrows hide */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Lucide icons sizing */
[data-lucide] {
    width: 1em;
    height: 1em;
}