* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #2c3e50;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #34495e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

header.edit-mode {
    background: #e67e22;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #95a5a6;
    font-size: 14px;
}

.logout-btn {
    color: #e74c3c;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #e74c3c;
    color: white;
}

h1 {
    font-size: 28px;
    margin: 0;
    color: #ecf0f1;
}

.add-task-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-options {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ecf0f1;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-label:hover {
    color: #3498db;
}

#newTaskInput {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 2px solid #95a5a6;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: white;
}

#newTaskInput:focus {
    outline: none;
    border-color: #3498db;
}

#startDateInput {
    padding: 12px;
    border: 2px solid #95a5a6;
    border-radius: 6px;
    font-size: 15px;
    min-width: 150px;
    background: white;
}

select {
    padding: 12px;
    border: 2px solid #95a5a6;
    border-radius: 6px;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

#addTaskBtn {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#addTaskBtn:hover {
    background: #2980b9;
}

.cancel-btn {
    padding: 12px 24px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

.task-section {
    margin-bottom: 40px;
}

.section-header {
    font-size: 22px;
    color: #ecf0f1;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #34495e;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-left: 5px solid #3498db;
}

.collapsible {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.collapsible:hover {
    background: #3d5770;
}

.collapse-icon {
    display: inline-block;
    width: 20px;
    font-size: 14px;
    transition: transform 0.2s;
}

.section-content {
    transition: all 0.3s ease;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.column {
    background: #34495e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ecf0f1;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a5f7f;
}

.column[data-status="not_started"] h3 {
    border-color: #95a5a6;
}

.column[data-status="in_progress"] h3 {
    border-color: #f39c12;
}

.column[data-status="completed"] h3 {
    border-color: #27ae60;
}

.tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.task-card {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Priority-based left border colors */
.task-card.priority-imminent {
    border-left: 4px solid #e74c3c;
}

.task-card.priority-normal {
    border-left: 4px solid #3498db;
}

.task-card.priority-back_burner {
    border-left: 4px solid #95a5a6;
}

.priority-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.priority-imminent .priority-badge {
    background: #fee;
    color: #e74c3c;
}

.priority-normal .priority-badge {
    background: #e3f2fd;
    color: #3498db;
}

.priority-back_burner .priority-badge {
    background: #ecf0f1;
    color: #7f8c8d;
}

.task-name {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 500;
}

.task-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.task-date {
    font-size: 12px;
    color: #7f8c8d;
}

.future-date {
    font-weight: 600;
    color: #f39c12;
}

.recurrence-badge {
    display: inline-block;
    font-size: 12px;
    color: #8e44ad;
}

.notify-badge {
    display: inline-block;
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

.incomplete-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 3px solid #4a5f7f;
}

.incomplete-header {
    border-left-color: #e74c3c !important;
}

.incomplete-tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    background: #34495e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.incomplete-card {
    background: #f8d7da;
    border-left: 4px solid #e74c3c !important;
}

.no-incomplete {
    grid-column: 1 / -1;
    text-align: center;
    color: #95a5a6;
    padding: 40px;
    font-size: 16px;
}

.task-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.task-actions button {
    padding: 6px 12px;
    border: 1px solid #95a5a6;
    background: white;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.task-actions button:hover {
    background: #e8ebed;
    border-color: #3498db;
}

.edit-btn {
    margin-left: auto;
    padding: 6px 10px !important;
}

.edit-btn:hover {
    background: #e3f2fd !important;
    border-color: #3498db !important;
}

.delete-btn {
    padding: 6px 10px !important;
}

.delete-btn:hover {
    background: #fee !important;
    border-color: #e74c3c !important;
}

#repeatCountInput:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
    .board {
        grid-template-columns: 1fr;
    }
}
