.tasks-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-controls button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.view-controls button.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.task-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.task-filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.notion-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
    overflow-x: auto;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 0.5fr;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
}

.th {
    padding: 12px 16px;
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 0.5fr;
    border-bottom: 1px solid #eee;
    align-items: center;
    min-height: 48px;
}

.table-row:hover {
    background: #f8f9fa;
}

.td {
    padding: 8px 16px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.td input, .td select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.td input:focus, .td select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.new-task {
    border-bottom: 2px dashed #eee;
}

.new-task-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 0.95em;
    color: #666;
}

.new-task-input:focus {
    outline: none;
    background: #f8f9fa;
}

.new-task-input::placeholder {
    color: #aaa;
}

.status select, .priority select {
    background: transparent;
    border: none;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.status select:hover, .priority select:hover {
    background: #f8f9fa;
}

.status-not-started { color: #666; }
.status-in-progress { color: #007bff; }
.status-stuck { color: #dc3545; }
.status-completed { color: #28a745; }

.priority-urgent { color: #dc3545; }
.priority-high { color: #fd7e14; }
.priority-medium { color: #ffc107; }
.priority-low { color: #28a745; }

.actions button {
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.table-row:hover .actions button {
    opacity: 1;
}

.actions button:hover {
    color: #dc3545;
}

.view-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 8px;
}

.view-button.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.task-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.task-actions button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.task-body {
    font-size: 0.9em;
}

.task-meta {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.task-meta span {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.task-priority {
    background: #f8f9fa;
}

.task-status {
    background: #e9ecef;
}

.task-due-date {
    color: #666;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.8em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    overflow-x: auto;
}

.kanban-column {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    min-width: 250px;
}

.kanban-column h3 {
    margin: 0 0 15px 0;
    font-size: 1em;
    text-transform: uppercase;
    color: #666;
}

.kanban-tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-task {
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: grab;
}

.kanban-task h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
}

.kanban-task p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary:hover {
    background: #5a6268;
}
