body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hide-section {
    display: none;
}

.show-section {
    display: block;
}

form {
    display:none;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

input, select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.error-message {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

#todo-list {
    margin: 20px 0;
}

.todo-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ddd;
}

.todo-item.high {
    border-left-color: #dc3545;
}

.todo-item.medium {
    border-left-color: #ffc107;
}

.todo-item.low {
    border-left-color: #28a745;
}

.todo-item.completed {
    opacity: 0.7;
    text-decoration: line-through;
}

.todo-actions button {
    margin-left: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

.todo-controls {
    margin-bottom: 20px;
}

.search-container {
    margin-bottom: 15px;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filters select {
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal .show-section{
    display: flex;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.logout-btn {
    background-color: #dc3545;
}

.logout-btn:hover {
    background-color: #bd2130;
}