body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #172b4d;
    background: #f4f5f7;
}

.user-profile-dropdown {
    height: 30px;
}

.mention-suggestions {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.mention-suggestion-item {
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mention-suggestion-item:hover,
.mention-suggestion-item.selected {
    background-color: #f0f0f0;
}

.mention-suggestion-item:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.mention-suggestion-item:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hero {
    background: radial-gradient(circle at top left, #4f46e5, #1f2937);
    color: #ffffff;
    padding: 3.5rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.95rem;
    opacity: 0.9;
}


.section {
    padding: 2.5rem 0;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}


.section-faq .faq-item {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.section-faq h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.section-faq p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
}

.footer {
    padding: 1.5rem 0 2rem;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

/* Навигация */

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #111827;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Формы авторизации */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-box {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0079bf;
    box-shadow: 0 0 0 2px rgba(0, 121, 191, 0.2);
}

.error-message {
    color: #dc2626;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 0.5rem;
    display: none;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-links a {
    color: #4f46e5;
    text-decoration: none;
}

/* Дашборд */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin: 0;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.board-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.board-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #111827;
}

.board-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.board-meta {
    display: flex;
    gap: 0.5rem;
}

.badge-private {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fef3c7;
    color: #92400e;
}

.badge-public {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dbeafe;
    color: #1e40af;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}


/* Канбан доска */
.kanban-board {
    padding: 0;
    background: #0079bf;
    min-height: calc(100vh - 60px);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0.75rem;
    color: #fff;
}

.board-header h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    word-break: break-word;
}

.board-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.board-header-main {
    flex: 1 1 auto;
    min-width: 0;
}

.board-header-actions {
    flex-shrink: 0;
}

.board-menu-button {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .board-header {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
    .board-header-main {
        flex: 1 1 100%;
    }
    .board-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .board-menu-button {
        order: 2;
    }
    #boardVisibilityBadge {
        order: 1;
    }
}

@media (max-width: 540px) {
    .board-header {
        padding: 1rem 1rem 0.5rem;
    }
    .board-header h1 {
        font-size: 1.25rem;
    }
    .board-header p {
        font-size: 0.85rem;
    }
}

.columns-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.75rem 1.5rem 1.5rem;
    min-height: calc(100vh - 200px);
    align-items: flex-start;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.columns-container::-webkit-scrollbar {
    height: 12px;
}

.columns-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.columns-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.columns-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.kanban-column {
    min-width: 272px;
    max-width: 272px;
    background: #f4f5f7;
    border-radius: 3px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: calc(100vh - 220px);
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.5rem;
    margin-bottom: 0.5rem;
}

.kanban-column-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #172b4d;
    margin: 0;
    flex: 1;
}

.kanban-column-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.1s;
}

.kanban-column:hover .kanban-column-actions {
    opacity: 1;
}

/* Захват колонок только за заголовок */
.kanban-column {
    cursor: default;
}

.kanban-column-header {
    cursor: grab;
}

.kanban-column-header:active {
    cursor: grabbing;
}

@media (max-width: 1024px) {
    .kanban-column,
    .kanban-card {
        cursor: default;
    }
    .kanban-column-actions {
        opacity: 1 !important;
    }
    .board-card-kanban .board-menu-btn{
        opacity: 1 !important;
    }
}

.btn-column-action {
    background: transparent;
    border: none;
    color: #6b778c;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s, color 0.1s;
    width: 24px;
    height: 24px;
}

.btn-column-action:hover {
    background: rgba(9, 30, 66, 0.08);
    color: #172b4d;
}

.kanban-column-cards {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.25rem;
    min-height: 400px;
}

.kanban-column-cards::-webkit-scrollbar {
    width: 8px;
}

.kanban-column-cards::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-column-cards::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.kanban-column-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.kanban-column-footer {
    padding: 0.5rem 0.25rem 0;
}

.btn-add-card {
    width: 100%;
    background: transparent;
    border: none;
    color: #5e6c84;
    padding: 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: left;
    transition: background-color 0.1s;
    display: flex;
    align-items: center;
}

.btn-add-card:hover {
    background: rgba(9, 30, 66, 0.08);
    color: #172b4d;
}

.btn-add-card-text {
    margin-left: 0.25rem;
}

.add-card-form {
    padding: 0.5rem 0;
}

.add-card-input {
    width: 100%;
    border: none;
    border-radius: 3px;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    box-shadow: 0 1px 0 rgba(9, 30, 66, 0.25);
    margin-bottom: 0.5rem;
    min-height: 54px;
    background: #fff;
    color: #172b4d;
}

.add-card-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0079bf;
}

.add-card-input::placeholder {
    color: #5e6c84;
}

.add-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-card-actions .btn-kanban {
    flex: 1;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-cancel-card {
    background: transparent;
    border: none;
    color: #6b778c;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.1s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.btn-cancel-card:hover {
    color: #172b4d;
    background: rgba(9, 30, 66, 0.08);
}

/* Добавление колонки */
.kanban-column-add {
    min-width: 272px;
    max-width: 272px;
    padding: 0.5rem;
}

.btn-add-column {
    width: 100%;
    background: rgba(255, 255, 255, 0.24);
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: left;
    transition: background-color 0.1s;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.btn-add-column:hover {
    background: rgba(255, 255, 255, 0.32);
}

.btn-add-column-text {
    margin-left: 0.25rem;
}

.add-column-form {
    background: #f4f5f7;
    border-radius: 3px;
    padding: 0.5rem;
}

.add-column-input {
    width: 100%;
    border: none;
    border-radius: 3px;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    box-shadow: 0 1px 0 rgba(9, 30, 66, 0.25);
    margin-bottom: 0.5rem;
    background: #fff;
    color: #172b4d;
    box-sizing: border-box;
}

.add-column-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0079bf;
}

.add-column-input::placeholder {
    color: #5e6c84;
}

.add-column-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-column-actions .btn-kanban {
    flex: 1;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.kanban-card {
    background: #fff;
    border-radius: 3px;
    padding: 0.625rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 0 rgba(9, 30, 66, 0.25);
    cursor: grab;
    transition: background-color 0.1s, box-shadow 0.1s;
    word-wrap: break-word;
    user-select: none;
}

.kanban-card:hover {
    background: #f4f5f7;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.kanban-column-cards.drag-over {
    background: rgba(0, 121, 191, 0.1);
    border-radius: 3px;
    border: 2px solid transparent; /* чтобы не прыгала высота/ширина */
    outline: 2px dashed #0079bf;
    outline-offset: -2px;
    min-height: 50px;
}

.kanban-column.dragging-column {
    opacity: 0.7;
    cursor: grabbing;
    border: 2px dashed #0079bf;
    background: rgba(0, 121, 191, 0.16);
}

.kanban-column.column-drag-over {
    border: 2px dashed #0079bf;
    background: rgba(0, 121, 191, 0.1);
}

.kanban-column {
    cursor: grab;
    transition: transform 0.1s, box-shadow 0.1s;
}

.kanban-column:active {
    cursor: grabbing;
}

.kanban-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Увеличиваем зону определения позиции между карточками */
.kanban-card {
    position: relative;
}

.kanban-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 1;
    pointer-events: none;
}

.kanban-card-placeholder {
    opacity: 0.4;
    border: 2px dashed #0079bf;
}

.kanban-card-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: #172b4d;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

/* Метки на карточках (цветные полоски) */
.card-labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.4rem;
    min-height: 0;
}
.card-label-strip {
    display: inline-block;
    height: 10px;
    min-width: 48px;
    border-radius: 5px;
    flex: 1 1 auto;
    max-width: 72px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.card-label-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5e6c84;
    padding: 0 5px;
    align-self: center;
}

.kanban-card-due {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.kanban-card-due-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.kanban-card-due--ok {
    color: #198754;
}

.kanban-card-due--soon {
    color: #ffc107;
}

.kanban-card-due--overdue {
    color: #dc3545;
}

.editable-text {
    padding: 0.35rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    min-height: 34px;
    line-height: 1.3;
    transition: background-color 0.1s, border-color 0.1s;
}

.checklist-title-view {
    font-weight: 600;
}

.editable-text:hover {
    background: #f4f5f7;
    border-color: #dfe1e6;
}

.editable-text:active {
    border-color: #d0d4db;
}

.checklist {
    padding: 0.75rem;
    border: 1px solid #e6e8ec;
    border-radius: 4px;
    background: #f8f9fb;
}

/* Полоса меток поверх карточки в модалке */
.card-modal-labels-bar {
    background: #f4f5f7;
    margin: 0 -1rem 0 -1rem;
    padding: 0.85rem 1rem 0.85rem 1rem !important;
    border-radius: 0;
    border-bottom: 1px solid #e6e8ec;
}

/* Метки в модалке карточки — крупные и аккуратные */
.card-modal-label-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0 0.75rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.card-modal-label-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.card-modal-label-chip-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-modal-label-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.card-modal-label-chip-remove:hover {
    background: rgba(255, 255, 255, 0.4);
}
.card-modal-label-add-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    border: 2px dashed #c1c7d0;
    background: #fff;
    color: #5e6c84;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    box-sizing: border-box;
}
.card-modal-label-add-btn:hover {
    background: #f4f5f7;
    border-color: #97a0af;
    color: #172b4d;
}

/* Пункты меню выбора метки в модалке */
.card-label-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.35rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #172b4d;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.card-label-menu-item:hover {
    background: rgba(0, 0, 0, 0.06);
}
.card-label-menu-item-active {
    background: rgba(0, 0, 0, 0.06);
}
.card-label-menu-item-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.card-label-menu-item-name {
    flex: 1;
}
.card-label-menu-item-check {
    color: #198754;
    font-weight: 600;
    font-size: 1rem;
}

/* Контейнер выпадающего меню меток в модалке */
.card-label-menu {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0.65rem;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
}
.card-label-menu-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5e6c84;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

@media (max-width: 540px) {
    .navbar .profile-dropdown-menu {
        margin-top: 10px !important;
    }
    .user-profile-username {
        padding-left: 24px;
    }
}

.kanban-card-description {
    font-size: 0.75rem;
    color: #5e6c84;
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

/* Dashboard в стиле kanban */
.boards-grid-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.board-card-kanban {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    padding: 1.5rem;
    min-height: 140px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.board-card-kanban:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.board-card-kanban::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.1s;
}

.board-card-kanban:hover::before {
    opacity: 1;
}

.board-card-kanban h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.board-card-kanban .board-meta {
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

.board-card-kanban .badge {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Цветовые варианты для досок */
.board-card-kanban.color-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.board-card-kanban.color-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.board-card-kanban.color-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.board-card-kanban.color-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.board-card-kanban.color-red {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.board-card-kanban.color-teal {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.board-card-kanban .board-menu-btn {
    opacity: 0;
    transition: opacity 0.2s;
}

.board-card-kanban:hover .board-menu-btn {
    opacity: 1;
}

.board-card-kanban .board-menu-btn:hover {
    background: rgba(0,0,0,0.3) !important;
}

@media (hover: none) {
    .board-card-kanban .board-menu-btn {
        opacity: 1;
    }
}

.board-card-kanban .board-description {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin: 0.5rem 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* Кнопки в стиле kanban */
.btn-kanban {
    background: #0079bf;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.1s;
}

.btn-kanban:hover {
    background: #005a8f;
    color: #fff;
}

.btn-kanban-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
}

.btn-kanban-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Стандартные цвета для выбора */
.color-preset-btn,
.color-preset-btn-column {
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
}

.color-preset-btn:hover,
.color-preset-btn-column:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.color-preset-btn.active,
.color-preset-btn-column.active {
    border: 3px solid #0079bf !important;
    box-shadow: 0 0 0 2px rgba(0, 121, 191, 0.3);
    transform: scale(1.05);
}


