/* Custom CSS to complement Tailwind */

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

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

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

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

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Card Hover effect (Subtle lift, no gradient) */
.kanban-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .kanban-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Hide scrollbar for columns but allow scroll */
.column-scroll::-webkit-scrollbar {
    display: none;
}
.column-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Timeline specific styles */
.timeline-grid {
    background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px);
    background-size: 64px 100%;
}

.dark .timeline-grid {
    background-image: linear-gradient(to right, #334155 1px, transparent 1px);
}

.timeline-task-bar {
    transition: transform 0.2s ease, width 0.3s ease, left 0.3s ease;
}

.timeline-task-bar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .timeline-task-bar:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Dragging & Resizing classes */
.resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12px;
    cursor: ew-resize;
    z-index: 10;
}
.resize-handle.left { left: 0; }
.resize-handle.right { right: 0; }

.timeline-task-bar.dragging {
    transition: none;
    opacity: 0.9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Kanban Drag & Drop */
.kanban-column.drag-over {
    background-color: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
}
.dark .kanban-column.drag-over {
    background-color: rgba(59, 130, 246, 0.15);
}
.kanban-card.dragging {
    opacity: 0.5;
}

/* Context Menu */
.context-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.context-menu-item:hover {
    background-color: #f1f5f9;
}
.dark .context-menu-item:hover {
    background-color: #334155;
}
.context-menu-item.danger {
    color: #ef4444;
}
.context-menu-item.danger:hover {
    background-color: #fef2f2;
}
.dark .context-menu-item.danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Hyper Professional Features - Animations & Transitions */

/* Toasts */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.toast-enter {
    animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-leave {
    animation: slideOutDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sliding Panel (Activity Feed) */
.slide-panel {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-panel.open {
    transform: translateX(0);
}
.slide-panel.closed {
    transform: translateX(100%);
}

/* Focus Mode Transitions */
.sidebar-transition, .header-transition {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.focus-mode-sidebar {
    width: 0 !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border: none !important;
}

.focus-mode-header {
    height: 0 !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border: none !important;
    padding: 0 !important;
}

/* Swimlanes */
.swimlane-header {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: inherit;
}
