:root {
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --border-card: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --color-todo: #e0a35c;
    --color-progress: #d35f4f;
    --color-done: #33a65b;
    --btn-bg: #2196F3;
    --btn-text: #ffffff;
    --color-overdue: #f44336;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: #f0f4f8;
    color: #1a202c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.add-btn {
    background: #2196F3;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    transition: 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.columns-wrapper {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.column {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 450px;
    min-width: 300px;
    flex-shrink: 0;
    border-top: 5px solid;
    transition: box-shadow 0.3s;
}

.column:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#todo {
    border-color: #e0a35c;
}

#progress {
    border-color: #d35f4f;
}

#done {
    border-color: #33a65b;
}

.column h2 {
    margin: 0 0 25px 0;
    color: #1a202c;
    text-align: center;
    font-size: 1.5em;
}

.tasks {
    min-height: 380px;
    padding: 5px;
}

.task {
    background: #ffffff;
    padding: 18px;
    margin: 15px 0;
    border-radius: 8px;
    cursor: grab;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #cccccc;
    display: flex;
    flex-direction: column;
}

.task[data-status="todo"] {
    border-left-color: #e0a35c;
}

.task[data-status="progress"] {
    border-left-color: #d35f4f;
}

.task[data-status="done"] {
    border-left-color: #33a65b;
}

.task:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-title {
    font-weight: bold;
    font-size: 1.1em;
}

.task-description {
    font-size: 0.9em;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 10px;
}

.task-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.85em;
    color: #4a5568;
    margin-top: auto;
}

.task-date {
    font-style: italic;
    color: #6a6a6a;
}

.task-overdue {
    color: #f44336;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
}

.task.vencida {
    border-left-color: #f44336 !important;
}

.task-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    transition: 0.3s;
    justify-content: flex-end;
}

.task:hover .task-controls {
    opacity: 1;
}

.edit-btn,
.delete-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: 0.3s ease;
}

.edit-btn {
    background: #FFC107;
    color: black;
}

.delete-btn {
    background: #F44336;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.modal-label {
    margin-bottom: 8px;
    font-weight: bold;
    align-self: flex-start;
    color: #4a5568;
}

#taskInput,
#descriptionInput,
#dateInput,
#classInput,
#colorInput {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

#taskInput:focus,
#descriptionInput:focus,
#dateInput:focus,
#classInput:focus,
#colorInput:focus {
    border-color: #2196F3;
    outline: none;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.modal-buttons button {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.confirm-btn {
    background: #2196F3;
    color: white;
    border: none;
}

.cancel-btn {
    background: #4a5568;
    color: white;
    border: none;
}

.delete-btn-confirm {
    background: #F44336;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

footer {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.creditos {
    max-width: 1200px;
    margin: 0 auto;
}

.creditos p {
    color: #4a5568;
    margin-bottom: 10px;
}

.social-icons a {
    color: #4a5568;
    font-size: 24px;
    margin: 0 12px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #2196F3;
}

.task-category {
    font-size: 0.85em;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 4px;
    display: inline-block;
    color: #4a5568;
}

.task-category::before {
    content: "●";
    margin-right: 5px;
}