* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Глобальные стили для всех селектов - фикс для Windows */
select {
    background-color: #111111;
    color: #ffffff;
}

select option {
    background-color: #111111;
    color: #ffffff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geologica', sans-serif;
    background-color: #111111;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    position: relative;
}

/* Touch-friendly interactive elements */
button, a, .task-card, select, input {
    touch-action: manipulation;
}

/* Improved scrolling on mobile */
.kanban-board {
    -webkit-overflow-scrolling: touch;
}

.main-container {
    width: 100%;
    min-height: 100vh;
    background-color: #111111;
    position: relative;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* Project Selector */
.project-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    margin-left: 8px;
}

.breadcrumb {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    transition: color 0.2s ease;
}

.slash {
    color: #8d8d8d;
    margin-right: 5px;
}

.project-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.project-dropdown-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.project-selector:focus-within .project-dropdown-btn {
    transform: rotate(180deg);
}

.project-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #2c2c2c;
    border: 1px solid #454545;
    border-radius: 8px;
    padding: 6px;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.2s ease forwards;
}

.project-dropdown-menu.active {
    display: block;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-selector:focus-within .project-dropdown-menu {
    display: block;
}

.project-option {
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.project-option:hover {
    background-color: #353535;
    transform: translateX(4px);
}

.project-option.active {
    background-color: #3259e8;
    color: #ffffff;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-btn:hover {
    transform: translateX(-3px);
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile menu - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
}

.mobile-nav-menu {
    display: none;
}

.nav-link {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    transition: color 0.2s ease, transform 0.1s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #696969;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3259e8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    width: 100%;
}

.create-task-btn {
    background-color: #3259e8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 22px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    height: 30px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.create-task-btn:hover {
    background-color: #2847c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 89, 232, 0.3);
}

.create-task-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(50, 89, 232, 0.2);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s;
}

.user-avatar:hover {
    opacity: 0.8;
}

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

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #454545;
    border-radius: 8px;
    padding: 6px;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #e0e0e0;
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.user-menu-item:hover {
    background-color: #353535;
    transform: translateX(4px);
}

.user-menu-item svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.user-menu-item:hover svg {
    transform: scale(1.1);
}

.user-menu-item.logout {
    color: #ff6b6b;
}

.user-menu-item.logout:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.user-menu-divider {
    height: 1px;
    background-color: #454545;
    margin: 4px 0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: slideUpScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #454545;
}

.modal-header h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #949494;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Profile Modal */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #454545;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background-color: #0f0f0f;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3259e8;
    box-shadow: 0 0 0 3px rgba(50, 89, 232, 0.1);
    transform: translateY(-1px);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: #6a6a6a;
}

/* Select Styling */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="%23888" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

select.form-input option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* File Input Styling */
input[type="file"].form-input {
    padding: 8px 12px;
    cursor: pointer;
}

input[type="file"].form-input::-webkit-file-upload-button {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    color: #fff;
    font-size: 13px;
    font-family: 'Geologica', sans-serif;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

input[type="file"].form-input::-webkit-file-upload-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn-primary {
    background-color: #3259e8;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    flex: 1;
    min-height: 44px;
}

.btn-primary:hover {
    background-color: #2847c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 89, 232, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(50, 89, 232, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #454545;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    flex: 1;
    min-height: 44px;
}

.btn-secondary:hover {
    background-color: #353535;
    border-color: #5a5a5a;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Property controls styling */
.property-select {
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.property-select:hover {
    background: #1a1a1a;
    border-color: #3d3d3d;
}

.property-select:focus {
    outline: none;
    border-color: #3259e8;
    box-shadow: 0 0 0 3px rgba(50, 89, 232, 0.1);
}

input[type="date"].property-select {
    color-scheme: dark;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

input[type="date"].property-select::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
    position: absolute;
    right: 12px;
}

/* Tags wrapper */
.property-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f0f0f;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    padding: 6px 8px;
    min-height: 44px;
    flex: 1;
    transition: all 0.2s ease;
}

.property-tags-wrapper:hover {
    background: #1a1a1a;
    border-color: #3d3d3d;
}

.property-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-height: 28px;
    align-items: center;
}

.property-tags-container:empty::before {
    content: "Добавьте теги";
    color: #666;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
}

.property-add-tag-btn {
    background: transparent;
    border: 1px dashed #404040;
    color: #888;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 300;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.property-add-tag-btn:hover {
    background: #2d2d2d;
    border-color: #3259e8;
    color: #3259e8;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selected-tag:hover {
    opacity: 0.8;
    transform: scale(0.98);
}

.selected-tag .tag-remove {
    margin-left: 4px;
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
}

.selected-tag .tag-remove:hover {
    opacity: 1;
}

/* Settings Modal */
.settings-section {
    padding: 0;
}

.settings-section h4 {
    margin: 0 0 12px 0;
}

.settings-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    margin: 24px 0 16px 0;
}

.settings-section-title:first-child {
    margin-top: 0;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #3a3a3a;
}

.settings-item:last-of-type {
    border-bottom: none;
}

.settings-item-info {
    flex: 1;
}

.settings-item-label {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
}

.settings-item-description {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #949494;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #454545;
    border-radius: 24px;
    transition: background-color 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3259e8;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main Content */
.content {
    display: flex;
    gap: 13px;
    padding: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    height: calc(100vh - 58px - 48px);
    max-width: 100vw;
    box-sizing: border-box;
}

.column {
    width: 263px;
    min-width: 263px;
    max-width: 263px;
    flex-shrink: 0;
    background-color: #272727;
    border: 1px solid #454545;
    border-radius: 10px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    box-sizing: border-box;
}

/* Контейнер для задач с прокруткой */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 17px;
    overflow-y: auto;
    max-height: calc(100vh - 220px); /* Прокрутка если задач много */
    flex-shrink: 0; /* Предотвращаем сжатие контейнера */
}

/* Предотвращаем сжатие задач внутри контейнера */
.tasks-container > .task-card {
    flex-shrink: 0;
}

/* Кастомные скроллбары для контейнера задач */
.tasks-container::-webkit-scrollbar {
    width: 4px;
}

.tasks-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.tasks-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.tasks-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.column-todo {
    background-color: #1B1B1B;
    border-color: #313131;
}

.column-discussion {
    background-color: #1a1513;
    border-color: #50443f;
}

.column-in-work {
    background-color: #12161b;
    border-color: #4a5769;
}

.column-done-test {
    background-color: #251804;
    border-color: #593b0d;
}

.column-done {
    background-color: #131715;
    border-color: #49564f;
}

.column-header {
    margin-bottom: 17px;
}

.column-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 7px 3px 7px;
    border-radius: 8px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.column-badge svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.badge-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.column-badge.todo {
    background-color: #1a1a1a;
}

.column-badge.todo .badge-icon {
    background-color: #888888;
}

.column-badge.discussion {
    background-color: #FF9050;
}

.column-badge.discussion .badge-icon {
    background-color: white;
}

.column-badge.in-work {
    background-color: #3259e8;
}

.column-badge.in-work .badge-icon {
    background-color: white;
}

.column-badge.done-for-test {
    background-color: #FFBF00;
}

.column-badge.done-for-test .badge-icon {
    background-color: white;
}

.column-badge.done {
    background-color: #02a75a;
}

.column-badge.done .badge-icon {
    background-color: white;
}

.tasks {
    background-color: #272727;
    border: 1px solid #454545;
    border-radius: 10px;
    padding: 9px 7px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    min-height: 430px;
}

.column:nth-child(2) .tasks {
    background-color: #1a1513;
    border-color: #50443f;
}

.column:nth-child(3) .tasks {
    background-color: #12161b;
    border-color: #4a5769;
}

.column:nth-child(4) .tasks {
    background-color: #251804;
    border-color: #593b0d;
}

.column:nth-child(5) .tasks {
    background-color: #131715;
    border-color: #49564f;
}

/* Task Cards */
.task-card {
    background-color: #191919;
    opacity: 0.8;
    border: 1px solid #313131;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 100px;
}

.task-card:hover {
    border-color: #404040;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.task-card:active {
    transform: translateY(0);
}
.task-card-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.3;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.task-subtasks {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #929292;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.task-bottom-row {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: auto;
}

.task-icon-box {
    width: 24px;
    height: 24px;
    border: 1px solid #313131;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: transparent;
}

.task-icon-box.task-icon-empty {
    background-color: transparent;
}

.task-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.task-icon-box.task-icon-date,
.task-icon-box.task-icon-flag {
    width: auto;
    min-width: 24px;
    padding: 0 6px;
    gap: 4px;
}

.task-icon-box.task-icon-date span,
.task-icon-box.task-icon-flag span {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #929292;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    white-space: nowrap;
}

/* Multiple assignees count indicator */
.task-icon-box.task-assignees-count {
    width: auto;
    min-width: 24px;
    padding: 0 6px;
    background-color: #1a1a1a;
    border-color: #404040;
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #929292;
}

.task-tags-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.task-tag-box {
    height: 24px;
    border: 1px solid #313131;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    background-color: transparent;
}

.task-tag-label {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    padding: 2px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.task-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.task-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.task-icon {
    width: 20px;
    height: 20px;
    background-color: #2d2d2d;
    border-radius: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #888;
    font-size: 12px;
}

.task-icon.icon-assignee {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #404040;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 10px;
    border: 1px solid #555;
}

.task-icon.icon-date {
    width: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 400;
    background-color: transparent;
    color: #888;
    border-radius: 3px;
}

.task-icon.icon-date::before {
    content: "📅";
    margin-right: 4px;
    font-size: 10px;
}

.task-icon.icon-flag {
    width: 20px;
    height: 20px;
    background-color: transparent;
}

.task-icon.with-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: none;
    padding: 0;
}

.task-icon.with-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-icon.with-text {
    width: auto;
    padding: 0 8px;
    background-color: #454545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.task-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.task-icon.with-date {
    width: auto;
    min-width: 60px;
    padding: 0 6px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.date-text {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.task-icon.with-priority::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #ff6b6b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Add Task Button */
.add-task-btn {
    display: none;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 20px;
    right: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-links a {
        padding: 12px 20px;
    }
}

.theme-btn {
    background: none;
    border: 1px solid #292929;
    border-radius: 8px;
    padding: 6px 20px;
    color: #dfdfdf;
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-btn:hover {
    background-color: #2c2c2c;
    border-color: #454545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-btn:active {
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Form styles */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-help {
    display: block;
    font-size: 11px;
    color: #8D8D8D;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 3px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #007AFF;
    border-color: #007AFF;
}

.checkbox-label {
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
}

/* Admin Table Enhancements */
.admin-table-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2A2A2A;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #1A1A1A;
}

.admin-table thead {
    background: linear-gradient(135deg, #2C2C2C, #1F1F1F);
}

.admin-table th {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #CCCCCC;
    border-bottom: 2px solid #333;
    text-align: left;
}

.admin-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #2A2A2A;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Discord ID Cell */
.discord-id-cell {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: #007AFF;
    font-weight: 500;
}

/* User Cell Styling */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 15px;
}

.user-date {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

/* Role Styling */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.user {
    background: rgba(88, 86, 214, 0.15);
    color: #5856D6;
    border: 1px solid rgba(88, 86, 214, 0.3);
}

.role-badge.admin {
    background: rgba(255, 149, 0, 0.15);
    color: #FF9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.role-badge.super_admin {
    background: rgba(255, 69, 58, 0.15);
    color: #FF453A;
    border: 1px solid rgba(255, 69, 58, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #2A2A2A;
    border-radius: 6px;
    background: #1A1A1A;
    color: #CCCCCC;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #2A2A2A;
    border-color: #3A3A3A;
}

.action-btn.edit:hover {
    color: #007AFF;
    border-color: #007AFF;
}

.action-btn.delete:hover {
    color: #FF453A;
    border-color: #FF453A;
}

.action-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-table th,
    .admin-table td {
        padding: 10px 16px;
    }
    
    .user-cell {
        gap: 8px;
    }
    
    .user-avatar-small {
        width: 32px;
        height: 32px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
}

/* Task View Modal */
/* Task View Modal - ClickUp Style */
.task-view-modal {
    max-width: 1000px;
    width: 95vw;
    max-height: 90vh;
    padding: 0;
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #2d2d2d;
    color: #fff;
}

.task-view-header {
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid #2d2d2d;
    background: #1a1a1a;
}

.task-view-status-row {
    margin-bottom: 12px;
}

.task-status-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #252525;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.task-status-selector:hover {
    background: #2d2d2d;
    border-color: #404040;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #888;
}

.status-icon.todo { background: #888; }
.status-icon.discussion { background: #ffa500; }
.status-icon.in-work { background: #3259e8; }
.status-icon.done-for-test { background: #ffc107; }
.status-icon.done { background: #4caf50; }

.task-view-title {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 24px 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
}

.task-view-title[contenteditable="true"]:hover {
    cursor: text;
}

.task-view-title[contenteditable="true"]:focus {
    outline: none;
}

.task-view-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.task-view-main {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
}

.task-properties-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #2d2d2d;
}

.task-property {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.task-property:hover {
    background: #2d2d2d;
    border-color: #404040;
}

.property-icon {
    color: #888;
}

.property-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.property-value {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.task-assignee-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.task-assignee-compact img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.task-assignee-compact:empty::after {
    content: "Empty";
    color: #888;
}

.task-priority-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.priority-flag {
    font-size: 16px;
}

.task-priority-compact.low { color: #4caf50; }
.task-priority-compact.low .priority-flag { color: #4caf50; }

.task-priority-compact.medium { color: #ffa500; }
.task-priority-compact.medium .priority-flag { color: #ffa500; }

.task-priority-compact.high { color: #ff453a; }
.task-priority-compact.high .priority-flag { color: #ff453a; }

.task-section {
    margin-bottom: 32px;
}

.task-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #888;
}

.task-section-header svg {
    color: #888;
}

.task-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.task-section-content {
    padding-left: 24px;
}

.task-description-text {
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
    margin: 0;
}

.task-description-text:empty::after {
    content: "Add description...";
    color: #666;
    font-style: italic;
}

.add-subtask-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px dashed #404040;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.add-subtask-btn:hover {
    background: #252525;
    border-color: #555;
    color: #fff;
}

.task-view-sidebar {
    width: 280px;
    padding: 24px 20px;
    background: #1e1e1e;
    border-left: 1px solid #2d2d2d;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-value {
    font-size: 14px;
    color: #ddd;
    padding: 8px 0;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

.sidebar-btn svg {
    color: #888;
}

/* New Task View Modal Styles */
.task-view-modal-new {
    max-width: 1020px;
    width: 95vw;
    max-height: 717px;
    height: 717px;
    padding: 0;
    background: #111111;
    border: 1px solid #3b3b3b;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.task-view-left {
    flex: 1;
    padding: 16px 24px 24px 24px;
    overflow-y: auto;
    min-width: 0;
}

.task-view-divider {
    width: 1px;
    background: #3b3b3b;
    flex-shrink: 0;
    height: 100%;
}

.task-view-right {
    width: 320px;
    padding: 0 24px 20px 24px;
    overflow-y: auto;
    flex-shrink: 0;
}

.task-view-badges {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 30px;
    margin-bottom: 32px;
    background: #111111;
    border: 1px solid #3b3b3b;
    border-radius: 4px;
    overflow: hidden;
}

.task-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.task-badge-divider {
    width: 1px;
    height: 28px;
    background: #3b3b3b;
    flex-shrink: 0;
}

.task-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #838383;
}

.task-status-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.task-view-title-new {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: normal;
    margin: 0 0 21px 0;
}

.task-view-description {
    margin-bottom: 32px;
}

.task-view-description p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: normal;
    margin: 0;
    white-space: pre-line;
}

.task-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.task-subtasks-section {
    margin-top: 32px;
}

.task-subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    transition: all 0.2s;
}

.subtask-item:hover {
    background: #1e1e1e;
    border-color: #3b3b3b;
}

.subtask-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #3b3b3b;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: transparent;
    position: relative;
}

.subtask-checkbox:hover {
    border-color: #3259e8;
}

.subtask-checkbox.checked {
    background: #3259e8;
    border-color: #3259e8;
}

.subtask-checkbox.checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    top: 4px;
    left: 3px;
}

.subtask-text {
    flex: 1;
    font-size: 14px;
    color: #ddd;
    cursor: pointer;
}

.subtask-text.completed {
    text-decoration: line-through;
    color: #666;
}

.add-subtask-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px dashed #3b3b3b;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.add-subtask-btn:hover {
    background: #1e1e1e;
    border-color: #3259e8;
    color: #3259e8;
}

.add-subtask-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}



.task-property-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    margin-bottom: 18px;
    gap: 40px;
}

.task-property-row:first-child {
    margin-top: 0;
}

.task-property-label {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    color: #929292;
    white-space: nowrap;
}

.task-property-label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.task-property-value {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.assignee-info {
    display: flex;
    align-items: center;
    gap: 7px;
}

.assignee-avatar {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #3b3b3b;
    flex-shrink: 0;
    object-fit: cover;
}

.status-icon-todo,
.status-icon-done {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.task-tag-inline {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    margin-right: 6px;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    /* Old task view modal */
    .task-view-modal {
        flex-direction: column;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .task-view-body {
        flex-direction: column;
    }
    
    .task-view-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #2d2d2d;
    }
    
    .task-view-header {
        padding: 20px 16px 16px;
    }
    
    .task-view-main {
        padding: 16px;
    }
    
    /* New task view modal */
    .task-view-modal-new {
        flex-direction: column;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .task-view-divider {
        width: 100%;
        height: 1px;
    }
    
    .task-view-left {
        padding: 24px 20px;
        overflow-y: auto;
    }
    
    .task-view-right {
        width: 100%;
        padding: 24px 20px;
        border-top: 1px solid #3b3b3b;
        border-left: none;
        overflow-y: auto;
    }
    
    .task-view-title-new {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        gap: 12px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .kanban-board {
        overflow-x: auto;
        padding-bottom: 20px;
    }
    
    /* Задачи в канбан */
    .kanban-column {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 12px 16px;
        flex-wrap: nowrap;
        gap: 12px;
    }
    
    .header-left {
        min-width: 0;
        flex-shrink: 1;
        flex: 1;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .breadcrumb {
        font-size: 14px;
    }
    
    .header-right {
        gap: 10px;
        flex-shrink: 0;
        position: relative;
    }
    
    .nav-link {
        display: none !important;
    }
    
    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 0;
    }
    
    /* Mobile navigation menu */
    .mobile-nav-menu {
        display: none;
    }
    
    .mobile-nav-menu.show {
        display: block;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        background: #232323;
        border-bottom: 1px solid #454545;
        padding: 12px;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    /* Content */
    .content {
        padding: 12px;
        gap: 12px;
    }
    
    /* Kanban Board */
    .kanban-board {
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 16px;
    }
    
    .kanban-column {
        min-width: 280px;
        max-width: 280px;
        flex-shrink: 0;
    }
    
    .column-header {
        padding: 12px 14px;
    }
    
    .column-title {
        font-size: 13px;
    }
    
    .task-count {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .tasks-list {
        padding: 8px;
        gap: 8px;
    }
    
    /* Task Cards */
    .task-card {
        padding: 12px;
    }
    
    .task-title {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .task-description {
        font-size: 12px;
        line-height: 1.4;
        margin-top: 6px;
    }
    
    .task-footer {
        margin-top: 10px;
        gap: 8px;
    }
    
    .task-tags {
        gap: 4px;
    }
    
    .task-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .task-assignee {
        width: 22px;
        height: 22px;
    }
    
    /* Create Task Button */
    .create-task-btn {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    /* Bug Report Button */
    .bug-report-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Admin Panel */
    .admin-table {
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
    }
    
    .user-avatar-small {
        width: 30px;
        height: 30px;
    }
    
    .action-btn {
        width: 30px;
        height: 30px;
    }
    
    /* Модальные окна на планшетах */
    .modal-overlay {
        padding: 0;
    }
    
    .modal {
        padding: 0;
    }
    
    /* Список задач (если есть list view) */
    .task-list-item {
        padding: 12px;
    }
    
    /* Filters */
    .filters-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .mobile-nav-menu a {
        display: block;
        padding: 12px 16px;
        color: #fff;
        text-decoration: none;
        font-family: 'Geologica', sans-serif;
        font-size: 16px;
        border-radius: 6px;
        margin-bottom: 4px;
        transition: background 0.2s;
    }
    
    .mobile-nav-menu a:hover {
        background: #2c2c2c;
    }
    
    .mobile-nav-menu a.active {
        background: #3259e8;
        color: #fff;
    }
    
    .create-task-btn {
        padding: 7px 12px;
        font-size: 13px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .breadcrumb {
        font-size: 16px;
    }
    
    .project-selector {
        min-width: auto;
    }
    
    .project-name {
        font-size: 16px;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .nav-item {
        padding: 8px;
        min-width: auto;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    /* Kanban */
    .kanban-container {
        padding: 12px 8px;
    }
    
    .kanban-board {
        gap: 10px;
    }
    
    .kanban-column {
        min-width: 260px;
        max-width: 260px;
    }
    
    /* Content area */
    .content {
        padding: 12px 8px;
        gap: 10px;
    }
    
    .column {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }
    
    /* Task cards */
    .task-card {
        padding: 12px;
    }
    
    .task-title {
        font-size: 14px;
    }
    
    .task-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    /* Task view modal */
    .task-view-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .task-view-header {
        padding: 20px 16px 12px;
    }
    
    .task-view-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .task-view-layout {
        flex-direction: column;
    }
    
    .task-view-main {
        padding: 16px;
    }
    
    .task-view-sidebar {
        width: 100%;
        padding: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-left: none;
    }
    
    .task-view-properties {
        padding: 12px 0;
    }
    
    .task-view-property {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .property-label-inline {
        min-width: auto;
        font-size: 12px;
    }
    
    .task-properties-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .task-property {
        width: 100%;
    }
    
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
    }
    
    /* Full-screen modals */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 10000;
    }
    
    .modal-content {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }
    
    .modal {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    /* Ultra compact for small phones */
    .header {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 15px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .create-task-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .content {
        padding: 10px;
        gap: 10px;
    }
    
    /* Kanban columns полная ширина экрана минус отступы */
    .kanban-column {
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        flex-shrink: 0;
    }
    
    .column-header {
        padding: 10px 12px;
    }
    
    .column-title {
        font-size: 12px;
    }
    
    .tasks-list {
        padding: 6px;
        gap: 6px;
    }
    
    .task-card {
        padding: 10px;
    }
    
    .task-title {
        font-size: 13px;
    }
    
    .task-description {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .task-tag {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .task-assignee {
        width: 20px;
        height: 20px;
    }
    
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100vw;
    }
}

/* Drag and Drop Styles */
.task-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.kanban-column.drag-over {
    background: rgba(0, 122, 255, 0.1);
    border: 2px dashed #007AFF;
}

/* Discord-style role badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Geologica', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background-color: #5865F2;
}

.role-badge.admin {
    background-color: #ED4245;
}

.role-badge.moderator {
    background-color: #FEE75C;
    color: #000000;
}

.role-badge.user {
    background-color: #99AAB5;
}

.task-card {
    transition: all 0.2s ease;
    cursor: grab;
}

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