* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"], 
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    height: 100px;
    resize: vertical;
}

button, .btn {
    display: inline-block;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
}

button:hover, .btn:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #2ecc71;
}

.btn-success:hover {
    background: #27ae60;
}

.error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success {
    color: #2ecc71;
    background: #d5f5e3;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.task-list {
    margin-top: 2rem;
}

.task-item {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.task-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-in_progress {
    background: #3498db;
    color: white;
}

.status-completed {
    background: #2ecc71;
    color: white;
}

.filters {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.filters a {
    text-decoration: none;
    color: #3498db;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 4px;
}

.filters a:hover, .filters a.active {
    background: #3498db;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.logout-link {
    float: right;
    color: #e74c3c;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}