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

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

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

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

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

/* Reusable form input class shared by Profile + Admin pages. */
.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.dark .form-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

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

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Theme transition for smooth switching */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Pipeline column styling */
.pipeline-column {
    min-height: 400px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* Kanban card drag styling */
.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

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

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

.toast-enter {
    animation: slideIn 0.3s ease forwards;
}

.toast-exit {
    animation: slideOut 0.3s ease forwards;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.dark .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Score badge colors - same in light and dark */
.score-hot {
    background-color: #22c55e;
    color: white;
}

.score-warm {
    background-color: #f59e0b;
    color: white;
}

.score-qualified {
    background-color: #3b82f6;
    color: white;
}

.score-cold {
    background-color: #6b7280;
    color: white;
}

.score-unqualified {
    background-color: #ef4444;
    color: white;
}

/* Status colors - same in light and dark */
.status-new {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-contacted {
    background-color: #fef3c7;
    color: #92400e;
}

.status-qualified {
    background-color: #d1fae5;
    color: #065f46;
}

.status-proposal {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-negotiation {
    background-color: #fce7f3;
    color: #9d174d;
}

.status-won {
    background-color: #22c55e;
    color: white;
}

.status-lost {
    background-color: #ef4444;
    color: white;
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* Button focus */
button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
