* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 100%;
    overflow-x: auto;
}

.header {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1f2d3d;
    font-size: 28px;
    margin-bottom: 8px;
}

.subtitle {
    color: #6c757d;
    font-size: 14px;
}

.toolbar {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.sync-btn {
    background: #2e6edf;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sync-btn:hover {
    background: #1e5bc0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(46, 110, 223, 0.3);
}

.sync-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Горизонтальная прокрутка */
.sprint-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    min-height: calc(100vh - 200px);
}

/* Стили для каждой колонки-спринта */
.sprint-column {
    min-width: 350px;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.sprint-column:hover {
    transform: translateY(-4px);
}

.sprint-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.sprint-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.sprint-title a {
    color: white;
    text-decoration: none;
}

.sprint-title a:hover {
    text-decoration: underline;
}

.sprint-meta {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.stats {
    margin-top: 12px;
    font-size: 13px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* Список задач в колонке */
.task-list {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.task-item {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    cursor: pointer;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item:hover {
    background: #f8f9fa;
}

.task-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.task-title a {
    color: #2c3e50;
    text-decoration: none;
}

.task-title a:hover {
    color: #2e6edf;
    text-decoration: underline;
}

.task-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.task-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.empty-tasks {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
    font-size: 14px;
}

/* Табы */
.tabs {
    display: flex;
    gap: 4px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    color: #6c757d;
}

.tab.active {
    background: #2e6edf;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab:hover:not(.active) {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для нераспределённых задач */
.unsorted-board {
    display: flex;
    gap: 20px;
    padding: 20px 10px;
}

.unsorted-column {
    min-width: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.unsorted-header {
    background: linear-gradient(135deg, #868f96 0%, #596164 100%);
    border-radius: 12px 12px 0 0;
    padding: 16px;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}

/* Стили скроллбара */
.sprint-board::-webkit-scrollbar {
    height: 10px;
}

.sprint-board::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sprint-board::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.sprint-board::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .sprint-column {
        min-width: 300px;
        width: 300px;
    }
    
    .tab {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .sprint-meta {
        flex-direction: column;
        gap: 4px;
    }
}