/* Custom styles for CRM SEO */

/* Drag and drop styles */
.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.drag-over {
    background-color: #e0e7ff !important;
}

/* Smooth transitions */
.pipeline-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

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

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

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #6366f1;
}

/* Table row hover */
tbody tr:hover {
    background-color: #f9fafb;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

/* Sidebar navigation links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
    background-color: #F3F4F6;
    color: #111827;
}

.sidebar-link.active {
    background-color: #EEF2FF;
    color: #4F46E5;
}

.sidebar-link.active svg {
    color: #4F46E5;
}

/* Dark mode sidebar */
.dark .sidebar-link {
    color: #9CA3AF;
}

.dark .sidebar-link:hover {
    background-color: #374151;
    color: #F9FAFB;
}

.dark .sidebar-link.active {
    background-color: rgba(79, 70, 229, 0.15);
    color: #818CF8;
}

.dark .sidebar-link.active svg {
    color: #818CF8;
}

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

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

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

/* Dark mode table row hover */
.dark tbody tr:hover {
    background-color: #1F2937;
}
