* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.5;
    padding: 20px;
}

.container { max-width: 1400px; margin: 0 auto; }

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-add-toggle, .btn-export {
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.btn-add-toggle:hover { background: #0056b3; }
.btn-export { background: #28a745; }
.btn-export:hover { background: #218838; }

/* Add Task Form */
.add-task-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.add-task-form h3 {
    text-align: center;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.add-task-form input, .add-task-form textarea, .add-task-form select {
    width: 100%; padding: 9px; margin: 6px 0; border: 1px solid #ddd;
    border-radius: 4px; font-size: 14px;
}

.add-task-form input:focus, .add-task-form textarea:focus {
    border-color: #007BFF; outline: none;
}

.add-task-form label {
    font-size: 13px; font-weight: 500; color: #555; margin-top: 8px; display: block;
}

.add-task-form .form-buttons {
    display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px;
}

.add-task-form button[type="submit"], .add-task-form button[type="button"] {
    padding: 7px 14px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px;
}

.add-task-form button[type="submit"] { background: #28a745; color: white; }
.add-task-form button[type="button"] { background: #6c757d; color: white; }

/* Kanban Board */
.kanban-board {
    display: flex; gap: 20px; overflow-x: auto; padding: 15px;
    background: #f9f9f9; border-radius: 10px; min-height: 580px;
}

.column {
    min-width: 300px; flex: 1; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Column Colors */
.column[data-status="Open"] { background: #ffebee; border-top: 5px solid #f44336; }
.column[data-status="In Progress"] { background: #e3f2fd; border-top: 5px solid #2196f3; }
.column[data-status="Pending"] { background: #fff3e0; border-top: 5px solid #ff9800; }
.column[data-status="Complete"] { background: #e8f5e9; border-top: 5px solid #4caf50; }

.column h3 {
    margin: 0; text-align: center; padding: 10px; font-size: 1.1em; font-weight: bold;
    color: white; border-radius: 5px 5px 0 0;
}

.column[data-status="Open"] h3 { background: #f44336; }
.column[data-status="In Progress"] h3 { background: #2196f3; }
.column[data-status="Pending"] h3 { background: #ff9800; }
.column[data-status="Complete"] h3 { background: #4caf50; }

.task-count {
    font-size: 0.8em; background: rgba(255,255,255,0.3);
    padding: 2px 8px; border-radius: 12px; margin-left: 6px;
}

.task-list {
    flex: 1; min-height: 500px; padding: 10px; display: flex;
    flex-direction: column; gap: 10px;
}

/* Compact Task Cards */
.task {
    background: white; padding: 10px; border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1); cursor: move;
    border-left: 3px solid #2c3e50; font-size: 13.5px;
}

.task:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.12); }

.task strong {
    font-size: 14px; color: #2c3e50; display: block; margin-bottom: 4px;
}

/* Description Style */
.task .desc-line {
    display: block;
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    margin: 3px 0 5px;
    padding: 4px 6px;
    background: #f8f9fa;
    border-left: 2px solid #007BFF;
    border-radius: 2px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.6em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.task small {
    color: #555; font-size: 11.5px; line-height: 1.3; display: block;
}

.task .update-line {
    font-style: italic; color: #444; margin-top: 3px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-actions {
    font-size: 11px; text-align: right; margin-top: 5px; color: #777;
}

.task-actions a {
    color: #007BFF; text-decoration: none; margin-left: 4px;
}

.task-actions a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .kanban-board { flex-direction: column; }
    .actions { flex-direction: column; align-items: center; }
    .btn-add-toggle, .btn-export { width: 80%; }
}