/* =================== ГЛОБАЛЬНЫЕ СТИЛИ =================== */
:root {
    --primary-color: #667eea;
    --primary-hover: #5a6fd8;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

/* =================== УТИЛИТЫ =================== */
.d-none {
    display: none !important;
}

.text-center {
    text-align: center;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =================== КНОПКИ =================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* =================== ФОРМЫ =================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group.has-icon {
    position: relative;
}

.form-group.has-icon input {
    padding-left: 45px;
}

.form-group.has-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* =================== МОДАЛЬНЫЕ ОКНА =================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-large {
    max-width: 800px;
}

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

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.modal-subtitle {
    color: var(--secondary-color);
    font-size: 14px;
    margin: 0;
}

.modal-body {
    padding: 24px;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.close:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* =================== НАВИГАЦИЯ =================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-btn:hover,
.nav-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.role-admin {
    background-color: var(--danger-color);
    color: white;
}

.role-manager {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.role-worker {
    background-color: var(--info-color);
    color: white;
}

/* =================== СЕКЦИИ КОНТЕНТА =================== */
.content-section {
    padding: 30px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* НОВОЕ: Секция доски задач на всю ширину */
.content-section#boardSection {
    max-width: none;
    padding: 30px 0;
    margin: 0;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Заголовок доски задач с отступами */
#boardSection .section-header {
    padding: 0 24px;
}

.section-header h2 {
    color: white;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-actions {
    display: flex;
    gap: 12px;
}

/* =================== ПРОЕКТЫ =================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 18px;
}

.project-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--secondary-color);
}

.stat-value {
    font-weight: bold;
    color: var(--primary-color);
}

.project-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-actions {
    opacity: 1;
}

/* =================== КАНБАН ДОСКА - БЕЗ ОТДЕЛЬНОГО БЛОКА =================== */
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 24px 30px 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    overflow-x: auto;
    min-height: 70vh;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0; /* Позволяет колонкам сжиматься */
    height: fit-content;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.column-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-count {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.column-content {
    min-height: 400px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.column-content.drag-over {
    background-color: rgba(102, 126, 234, 0.1);
    border: 2px dashed var(--primary-color);
}

/* Пустое состояние для колонок */
.column-content .empty-state {
    padding: 30px 10px;
    margin-top: 20px;
}

.column-content .empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.3;
}

.column-content .empty-state p {
    font-size: 14px;
    margin-top: 10px;
    color: var(--secondary-color);
}

/* =================== АДАПТИВНОСТЬ ДЛЯ КАНБАН ДОСКИ =================== */
@media (max-width: 1400px) {
    .kanban-board {
        grid-template-columns: repeat(6, minmax(250px, 1fr));
    }
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    #boardSection .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 0 16px;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .board-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin: 0 16px 30px 16px;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .kanban-column {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .content-section#boardSection {
        padding: 20px 0;
    }
    
    .kanban-board {
        padding: 0 8px;
    }
    
    .kanban-column {
        padding: 16px;
    }
    
    .column-content {
        min-height: 300px;
    }
    
    #boardSection .section-header {
        padding: 0 8px;
    }
    
    .board-controls {
        margin: 0 8px 20px 8px;
    }
}

@media (min-width: 1600px) {
    .kanban-board {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
        padding: 0 40px;
    }
    
    .board-controls {
        margin: 0 40px 30px 40px;
    }
    
    #boardSection .section-header {
        padding: 0 40px;
    }
}

@media (min-width: 1920px) {
    .kanban-board {
        padding: 0 60px;
    }
    
    .board-controls {
        margin: 0 60px 30px 60px;
    }
    
    #boardSection .section-header {
        padding: 0 60px;
    }
}

/* =================== КАРТОЧКИ ЗАДАЧ - ВОЗВРАЩЕН ОРИГИНАЛЬНЫЙ ДИЗАЙН =================== */
.task-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.task-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.task-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.task-goal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--info-color);
    margin-bottom: 8px;
    font-style: italic;
}

.task-description {
    color: var(--secondary-color);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* ИСПРАВЛЕНО: добавлено стандартное свойство */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-project-link {
    margin-bottom: 12px;
}

.task-project-link a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    transition: var(--transition);
}

.task-project-link a:hover {
    background-color: rgba(102, 126, 234, 0.2);
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.task-deadline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--secondary-color);
}

.task-deadline.warning {
    color: var(--warning-color);
    font-weight: 600;
}

.task-deadline.overdue {
    color: var(--danger-color);
    font-weight: 600;
}

.priority-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-high {
    background-color: var(--danger-color);
    color: white;
}

.priority-medium {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.priority-low {
    background-color: var(--success-color);
    color: white;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.task-project {
    font-size: 11px;
    color: var(--secondary-color);
    font-weight: 500;
}

.task-assignees {
    display: flex;
    gap: 4px;
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.task-card:hover .task-actions {
    opacity: 1;
}

/* =================== ДЕТАЛИ ЗАДАЧИ =================== */
.task-details {
    margin-bottom: 24px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-group {
    margin-bottom: 16px;
}

.detail-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--secondary-color);
    line-height: 1.5;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.assignees-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.assignee-tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-unassigned {
    background-color: var(--secondary-color);
    color: white;
}

.status-in_progress {
    background-color: var(--info-color);
    color: white;
}

.status-developed {
    background-color: var(--primary-color);
    color: white;
}

.status-review {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.status-deploy {
    background-color: #6f42c1;
    color: white;
}

.status-done {
    background-color: var(--success-color);
    color: white;
}

.status-archived {
    background-color: var(--secondary-color);
    color: white;
}

.task-actions-panel {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

/* =================== УПРАВЛЕНИЕ УЧАСТНИКАМИ =================== */
.assignees-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.current-assignees,
.available-assignees {
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.current-assignees h4,
.available-assignees h4 {
    margin-bottom: 16px;
    color: var(--dark-color);
}

.assignees-container {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.assignees-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-color);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.assignees-list {
    max-height: 300px;
    overflow-y: auto;
}

.assignee-item,
.assignee-item-with-role,
.current-assignee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    background: white;
    border: 1px solid var(--border-color);
}

.assignee-checkbox-container {
    flex-shrink: 0;
}

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

.assignee-details {
    flex: 1;
}

.assignee-skills {
    font-size: 11px;
    color: var(--secondary-color);
    margin-top: 2px;
}

.role-selector {
    flex-shrink: 0;
}

.role-selector select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
}

.role-assignees {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-assignment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.role-assignment:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.role-assignment input[type="checkbox"] {
    width: auto;
}

.user-search {
    margin-bottom: 16px;
}

.user-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* =================== КОММЕНТАРИИ =================== */
.comments-container {
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.comments-list {
    flex: 1;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.comment-item {
    padding: 16px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    margin-bottom: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-date {
    font-size: 11px;
    color: var(--secondary-color);
}

.comment-text {
    color: var(--dark-color);
    line-height: 1.5;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form textarea {
    resize: vertical;
    min-height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
}

/* =================== АРХИВ =================== */
.archived-tasks {
    max-height: 600px;
    overflow-y: auto;
}

.archived-task-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.archived-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.archived-task-header h4 {
    color: var(--dark-color);
    margin: 0;
}

.archived-task-actions {
    flex-shrink: 0;
}

.archived-task-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--secondary-color);
}

.archived-task-description {
    color: var(--secondary-color);
    line-height: 1.5;
}

/* =================== КОЛЛЕГИ =================== */
.colleagues-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.colleagues-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    min-height: 400px;
}

.colleagues-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    min-height: 300px;
}

.colleague-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.colleague-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.colleague-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.colleague-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.colleague-info h3 {
    margin: 0 0 4px 0;
    color: var(--dark-color);
}

.colleague-contacts {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.contact-item i {
    width: 16px;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item.no-contacts {
    color: var(--secondary-color);
    font-style: italic;
}

.colleague-skills h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--dark-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.no-skills {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 12px;
}

/* =================== ПУСТЫЕ СОСТОЯНИЯ =================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--dark-color);
}

.empty-state p {
    color: var(--secondary-color);
}

.empty-cell {
    text-align: center;
    padding: 40px;
}

/* =================== УВЕДОМЛЕНИЯ =================== */
.notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    z-index: 10000;
    transition: right 0.3s ease;
    border-left: 4px solid var(--success-color);
}

.notification.show {
    right: 20px;
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.warning i {
    color: var(--warning-color);
}

.notification.info {
    border-left-color: var(--info-color);
}

.notification.info i {
    color: var(--info-color);
}

.notification.success i {
    color: var(--success-color);
}

/* =================== АВТОРИЗАЦИЯ =================== */
.auth-container {
    padding: 40px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.auth-header h2 {
    color: var(--dark-color);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--secondary-color);
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =================== АДАПТИВНОСТЬ =================== */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .assignees-management {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 60px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .user-info {
        display: none;
    }
    
    .content-section {
        padding: 20px 16px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .kanban-column {
        min-width: auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .board-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .colleagues-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .colleagues-list {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .task-actions-panel {
        flex-direction: column;
    }
    
    .colleagues-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        display: none;
    }
    
    .task-card {
        padding: 12px;
    }
    
    .task-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .auth-container {
        padding: 24px;
    }
}

/* =================== КАСТОМНЫЕ СТИЛИ =================== */
.action-buttons {
    display: flex;
    gap: 6px;
}

.description-cell {
    max-width: 300px;
    word-wrap: break-word;
}

.center {
    text-align: center;
}

/* Исправление для белой полоски в коллегах */
.colleagues-container,
.colleagues-list {
    box-sizing: border-box;
}

.colleagues-list > :last-child {
    margin-bottom: 0;
}

.colleagues-container > :last-child {
    margin-bottom: 0;
}

/* =================== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ =================== */
.user-role-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.task-count {
    min-width: 20px;
    text-align: center;
}

/* Скроллбары */
.comments-list::-webkit-scrollbar,
.assignees-list::-webkit-scrollbar,
.archived-tasks::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track,
.assignees-list::-webkit-scrollbar-track,
.archived-tasks::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb,
.assignees-list::-webkit-scrollbar-thumb,
.archived-tasks::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover,
.assignees-list::-webkit-scrollbar-thumb:hover,
.archived-tasks::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}


/* =================== МОБИЛЬНЫЙ ИНТЕРФЕЙС ДЛЯ КАНБАН ДОСКИ =================== */
.mobile-task-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.mobile-task-status {
    font-size: 11px;
    color: var(--secondary-color);
    font-weight: 500;
}

.mobile-task-arrows {
    display: flex;
    gap: 8px;
}

.mobile-arrow-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-arrow-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.mobile-arrow-btn:disabled {
    background: var(--secondary-color);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mobile-task-card {
    position: relative;
}

/* Мобильные стили для колонок */
@media (max-width: 768px) {
    .kanban-board {
        display: block;
        padding: 0 16px;
    }
    
    .kanban-column {
        margin-bottom: 24px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .task-card {
        margin-bottom: 16px;
        touch-action: none; /* Отключаем drag на мобильных */
    }
    
    .task-card[draggable="true"] {
        cursor: default; /* Убираем курсор перетаскивания на мобильных */
    }
    
    .mobile-task-controls {
        display: flex;
    }
    
    /* Скрываем обычные действия задач на мобильных */
    .task-actions {
        opacity: 1 !important;
        position: static;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
        padding: 4px;
        margin-top: 8px;
        justify-content: center;
    }
    
    /* Адаптивные кнопки действий */
    .task-actions .btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    /* Улучшенное отображение деталей задач */
    .task-title {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .task-description {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .task-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .task-deadline {
        font-size: 12px;
    }
    
    .priority-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .task-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-assignees {
        align-self: flex-end;
    }
    
    .assignee-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .kanban-board {
        padding: 0 8px;
    }
    
    .kanban-column {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .task-card {
        padding: 14px;
    }
    
    .column-header h3 {
        font-size: 15px;
    }
    
    .task-count {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .mobile-arrow-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* Горизонтальная прокрутка для статусов на очень маленьких экранах */
@media (max-width: 380px) {
    .mobile-task-controls {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .mobile-task-arrows {
        justify-content: center;
    }
}

/* Улучшенная типографика для мобильных */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .board-controls {
        padding: 16px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .filter-group label {
        text-align: center;
        font-size: 14px;
    }
    
    .filter-group select {
        padding: 12px;
        font-size: 16px; /* Предотвращает зум на iOS */
        text-align: center;
    }
    
    .section-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .section-actions .btn {
        justify-content: center;
        padding: 12px 16px;
    }
}

/* Стили для модальных окон на мобильных */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn {
        padding: 14px;
        justify-content: center;
    }
}

/* Touch-friendly улучшения */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* Минимальный размер для touch */
        padding: 12px 16px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 8px 12px;
    }
    
    .nav-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* =================== МОДУЛИ УЧЕТА ВРЕМЕНИ И РАЗДЕЛЕНИЯ ЗАДАЧ =================== */

/* Модальные окна для новых функций */
.time-tracking-form,
.task-splitting-form {
    padding: 20px 0;
}

.time-info,
.split-info {
    margin-bottom: 20px;
}

.info-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
    border-left: 4px solid var(--info-color);
}

.info-card h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
    font-size: 14px;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--secondary-color);
    line-height: 1.5;
}

.info-card ul li {
    margin-bottom: 5px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
    margin-top: 5px;
    font-style: italic;
}

/* Сложность задач */
.complexity-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.complexity-easy {
    background-color: #d4edda;
    color: #155724;
}

.complexity-medium {
    background-color: #fff3cd;
    color: #856404;
}

.complexity-hard {
    background-color: #f8d7da;
    color: #721c24;
}

.complexity-expert {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Фильтры сложности */
.complexity-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.complexity-filter {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    font-weight: 500;
    user-select: none;
}

.complexity-filter:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.complexity-filter.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Подзадачи */
.subtasks-container {
    margin-top: 20px;
}

.subtasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.subtasks-header h4 {
    margin: 0;
    color: var(--dark-color);
}

.subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.subtask-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
}

.subtask-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.subtask-header h5 {
    margin: 0;
    color: var(--dark-color);
    font-size: 14px;
}

.remove-subtask-btn {
    font-size: 12px;
}

.subtask-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.subtask-form .form-group {
    margin-bottom: 0;
}

/* Карточки задач с показом сложности */
.task-card .task-complexity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    margin-bottom: 8px;
}

.task-card .task-parent-info {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-card .task-subtasks-info {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Время выполнения в карточке */
.task-card .task-time-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--info-color);
    margin-bottom: 8px;
}

/* Контекстное меню для задач */
.task-context-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
}

.task-card:hover .task-context-menu {
    display: block;
}

.context-menu-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.context-menu-btn:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.context-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.context-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.context-dropdown .dropdown-item {
    padding: 12px 16px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dark-color);
    transition: var(--transition);
}

.context-dropdown .dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.context-dropdown .dropdown-item:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.context-dropdown .dropdown-item:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Анимация завершения задачи */
.task-card.completing {
    animation: completeTask 0.6s ease;
}

@keyframes completeTask {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3); }
    100% { transform: scale(1); }
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .complexity-filters {
        justify-content: center;
    }
    
    .subtask-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .subtasks-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .subtasks-list {
        max-height: 300px;
    }
    
    .subtask-item {
        padding: 15px;
    }
    
    .context-dropdown {
        right: -20px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 12px;
    }
    
    .info-card h4 {
        font-size: 13px;
    }
    
    .info-card ul {
        font-size: 12px;
    }
    
    .complexity-filter {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .subtask-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .subtask-header h5 {
        text-align: center;
    }
}

/* Стили для логов времени */
.time-logs-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.time-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.time-log-item:last-child {
    border-bottom: none;
}

.time-log-user {
    font-weight: 600;
    color: var(--primary-color);
}

.time-log-hours {
    font-weight: 600;
    color: var(--success-color);
}

.time-log-date {
    color: var(--secondary-color);
    font-size: 11px;
}

.time-log-comment {
    color: var(--dark-color);
    font-style: italic;
    margin-top: 5px;
}

/* Индикатор процесса разделения */
.splitting-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 15px;
}

.splitting-indicator.show {
    display: flex;
}

.splitting-indicator .spinner {
    width: 16px;
    height: 16px;
}
/* =================== МОДУЛИ УЧЕТА ВРЕМЕНИ =================== */

.time-tracking-form {
    padding: 20px 0;
}

.time-info {
    margin-bottom: 20px;
}

.info-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
    border-left: 4px solid var(--info-color);
}

.info-card h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
    font-size: 14px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
    margin-top: 5px;
    font-style: italic;
}

/* Сложность задач */
.complexity-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.complexity-easy {
    background-color: #d4edda;
    color: #155724;
}

.complexity-medium {
    background-color: #fff3cd;
    color: #856404;
}

.complexity-hard {
    background-color: #f8d7da;
    color: #721c24;
}

.complexity-expert {
    background-color: #d1ecf1;
    color: #0c5460;
}

.task-complexity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    margin-bottom: 8px;
}
/* =================== СТИЛИ ДЛЯ КНОПКИ ПЕРЕМЕЩЕНИЯ БЕЗ ВРЕМЕНИ =================== */

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 0 0 auto;
    min-width: 150px;
}

.btn.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Улучшение размещения кнопок в модальном окне времени */
#timeTrackingModal .form-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-actions .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .form-actions .btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Дополнительные улучшения для времени */
.time-tracking-form .form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.time-tracking-form .form-hint {
    color: var(--secondary-color);
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}
