:root {
    /* Color Palette - Modern, refined HSL colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --dark: #1e293b;
    --light: #f8fafc;

    /* Backgrounds */
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* Borders & Shadows */
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Kanban Column Colors */
    --col-new: #94a3b8;
    --col-inprogress: #3b82f6;
    --col-intest: #f59e0b;
    --col-revision: #6366f1;
    --col-done: #22c55e;
}

body {
    background-color: var(--bg-main);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark);
}

/* Glassmorphism Effect */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Kanban Board Styling */
.kanban-column {
    background: rgba(226, 232, 240, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem;
    min-width: 240px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kanban-header {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

/* Task Card Modern Styling */
.task-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.task-dropdown-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--secondary) !important;
}

.task-dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary) !important;
}

.kanban-column {
    overflow: visible !important;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.task-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    cursor: grabbing;
    pointer-events: none;
}

.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary);
}

.task-priority-low::before {
    background: var(--success);
}

.task-priority-medium::before {
    background: var(--warning);
}

.task-priority-high::before {
    background: var(--danger);
}

.task-priority-critical::before {
    background: var(--dark);
}

.task-card h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.task-meta {
    font-size: 0.75rem;
    color: var(--secondary);
    display: flex;
    flex-flow: wrap;
    gap: 0.75rem;
}

.container-full {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

.navbar {
    background: white !important;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-dropdown:hover .filter-content {
    display: block;
}

/* Profile Dropdown Styles - Modern/Chrome style */
.profile-dropdown-menu {
    width: 320px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    margin-top: 1rem !important;
    animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-dropdown-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.bg-primary-soft { background-color: rgba(79, 70, 229, 0.1); }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1); }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1); }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1); }

.fs-7 { font-size: 0.85rem; }

.filter-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.filter-item:hover {
    background: #f1f5f9;
}

.filter-item input {
    margin-right: 0.75rem;
}

.filter-btn {
    background: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}

.filter-group-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    letter-spacing: 0.05em;
}

.filter-items-scroll {
    max-height: 250px;
    overflow-y: auto;
}

.filter-actions button {
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
}

.kanban-body {
    padding: 1rem;
    overflow: visible !important;
    min-height: 250px;
    flex-grow: 1;
}

.kanban-body::-webkit-scrollbar {
    width: 4px;
}

.kanban-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

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

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

/* Аватары и иконки пользователей */
.avatar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.avatar-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.avatar-arrow {
    color: #94a3b8;
    font-size: 10px;
    display: flex;
    align-items: center;
}

.avatar-label {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65px;
}

/* Цвета для инициалов */
.bg-avatar-1 {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.bg-avatar-2 {
    background: linear-gradient(135deg, #059669, #34d399);
}

.bg-avatar-3 {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.bg-avatar-4 {
    background: linear-gradient(135deg, #dc2626, #f87171);
}

.bg-avatar-5 {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.bg-avatar-6 {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

/* Utility Classes */
.hover-bg-light:hover {
    background-color: var(--light) !important;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}