/* Task Manager Styles */
.task-manager {
    padding-top: 120px;
    padding-bottom: 80px;
}

.task-manager h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.task-manager > .container > p {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.task-dashboard {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Task Sidebar */
.task-sidebar {
    width: 250px;
    background-color: #f9f9f9;
    padding: 30px;
    border-right: 1px solid #eee;
}

.task-categories, .task-timeline {
    margin-bottom: 30px;
}

.task-categories h3, .task-timeline h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.task-categories ul, .task-timeline ul {
    list-style: none;
}

.task-categories ul li, .task-timeline ul li {
    margin-bottom: 10px;
}

.task-categories ul li a, .task-timeline ul li a {
    color: #666;
    font-size: 15px;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.task-categories ul li a:hover, .task-timeline ul li a:hover,
.task-categories ul li.active a, .task-timeline ul li.active a {
    background-color: #ff6b6b;
    color: #fff;
}

.task-categories ul li.active a, .task-timeline ul li.active a {
    font-weight: 500;
}

/* Task Content */
.task-content {
    flex: 1;
    padding: 30px;
}

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

.task-search {
    display: flex;
    align-items: center;
    width: 300px;
}

.task-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.task-search button {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.task-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
}

.task-list-header {
    display: flex;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.task-checkbox-header {
    width: 5%;
}

.task-name-header {
    width: 30%;
}

.task-category-header {
    width: 20%;
}

.task-due-header {
    width: 15%;
}

.task-priority-header {
    width: 15%;
}

.task-actions-header {
    width: 15%;
    text-align: center;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.task-item:hover {
    background-color: #f9f9f9;
}

.task-checkbox {
    width: 5%;
}

.task-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-name {
    width: 30%;
    font-weight: 500;
}

.task-category {
    width: 20%;
    color: #666;
}

.task-due {
    width: 15%;
    color: #666;
}

.task-priority {
    width: 15%;
    font-weight: 500;
}

.task-priority.high {
    color: #e53935;
}

.task-priority.medium {
    color: #fb8c00;
}

.task-priority.low {
    color: #43a047;
}

.task-actions {
    width: 15%;
    display: flex;
    justify-content: center;
}

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    color: #666;
    transition: color 0.3s ease;
}

.edit-task:hover {
    color: #2196f3;
}

.delete-task:hover {
    color: #e53935;
}

/* Task Modal */
.task-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.task-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

#task-form .form-group {
    margin-bottom: 20px;
}

#task-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#task-form input,
#task-form select,
#task-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

#task-form input:focus,
#task-form select:focus,
#task-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

#task-form button {
    width: 100%;
    padding: 12px;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .task-dashboard {
        flex-direction: column;
    }
    
    .task-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .task-categories, .task-timeline {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .task-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-search, .task-filter, .task-add {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .task-list-header {
        display: none;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .task-checkbox, .task-name, .task-category, .task-due, .task-priority, .task-actions {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .task-actions {
        display: flex;
        justify-content: flex-start;
    }
    
    .task-actions button {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .task-name {
        font-size: 18px;
    }
    
    .task-category:before {
        content: "Category: ";
        font-weight: 500;
    }
    
    .task-due:before {
        content: "Due: ";
        font-weight: 500;
    }
    
    .task-priority:before {
        content: "Priority: ";
        font-weight: 500;
    }
}
