/* TaxNexus Custom Styles */

/* Sidebar collapse */
.sidebar.collapsed {
    width: 4.5rem;
}
.sidebar.collapsed .sidebar-text {
    display: none;
}
.sidebar.collapsed .sidebar-link {
    justify-content: center;
}
.sidebar.collapsed .sidebar-link svg {
    margin: 0;
}

/* Smooth transitions */
.sidebar, .sidebar * {
    transition: all 0.3s ease;
}

/* Kanban board */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: 70vh;
}

.kanban-column {
    min-width: 300px;
    max-width: 300px;
    background: #f9fafb;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 2px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-cards {
    flex: 1;
    padding: 0.5rem;
    min-height: 100px;
    overflow-y: auto;
}

.kanban-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.2s;
}

.kanban-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kanban-card.sortable-ghost {
    opacity: 0.4;
    background: #e0e7ff;
}

.kanban-card.sortable-drag {
    transform: rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Dashboard widgets */
.widget-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.widget-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Document upload dropzone */
.dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.dropzone.dragover {
    border-color: #6366f1;
    background-color: #eef2ff;
}

/* Document drag-and-drop */
.doc-draggable[draggable="true"] {
    cursor: default;
}
.doc-draggable[draggable="true"] .drag-handle {
    cursor: grab;
}
.doc-draggable.doc-dragging {
    opacity: 0.4;
    background: #eef2ff;
}
.doc-drop-target.drop-highlight {
    background: #e0e7ff !important;
    outline: 2px dashed #6366f1;
    outline-offset: -2px;
}

/* Priority badges */
.priority-urgent { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.priority-high { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.priority-medium { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.priority-low { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Status badges */
.status-draft { background: #f3f4f6; color: #374151; }
.status-sent { background: #dbeafe; color: #1e40af; }
.status-paid { background: #dcfce7; color: #166534; }
.status-overdue { background: #fef2f2; color: #991b1b; }
.status-cancelled { background: #f3f4f6; color: #6b7280; }

/* Close dropdown on outside click */
body.dropdown-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40;
}
