/* カンバン専用スタイル */

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
    min-height: 600px;
}

.kanban-column {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.kanban-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.kanban-column[data-status="todo"] {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.kanban-column[data-status="inprogress"] {
    border-color: #4ecdc4;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.kanban-column[data-status="done"] {
    border-color: #45b7d1;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.column-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.column-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-header h3 i {
    font-size: 1.4rem;
}

.kanban-column[data-status="todo"] .column-header h3 {
    color: #ff6b6b;
}

.kanban-column[data-status="inprogress"] .column-header h3 {
    color: #4ecdc4;
}

.kanban-column[data-status="done"] .column-header h3 {
    color: #45b7d1;
}

.task-count {
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.kanban-tasks {
    padding: 20px;
    min-height: 300px;
    transition: all 0.3s ease;
}

.kanban-task {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    cursor: grab;
    position: relative;
}

.kanban-task:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.kanban-task:active {
    cursor: grabbing;
    transform: rotate(5deg);
}

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

.kanban-task.completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.kanban-task.completed .task-text {
    text-decoration: line-through;
    color: #9ca3af;
}

.task-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #374151;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.task-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-todo {
    background: #fee2e2;
    color: #dc2626;
}

.status-inprogress {
    background: #dbeafe;
    color: #2563eb;
}

.status-done {
    background: #d1fae5;
    color: #059669;
}

.empty-column {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    margin: 10px;
}

.empty-column i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-column p {
    font-size: 0.9rem;
    margin: 0;
}

/* ドラッグ＆ドロップのスタイル */
.kanban-tasks.drag-over {
    background: rgba(102, 126, 234, 0.1);
    border: 2px dashed #667eea;
    border-radius: 12px;
}

/* カンバン用入力フォーム */
.add-task-section .input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

#taskCategory {
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
}

#taskCategory:focus {
    outline: none;
    border-color: #667eea;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .add-task-section .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    #taskCategory {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .column-header {
        padding: 15px;
    }
    
    .column-header h3 {
        font-size: 1.1rem;
    }
    
    .kanban-tasks {
        padding: 15px;
    }
    
    .kanban-task {
        padding: 12px;
    }
}

/* アニメーション */
@keyframes taskAdd {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kanban-task {
    animation: taskAdd 0.3s ease-out;
}