body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #333;
    color: white;
    padding: 1rem;
}

nav a {
    color: white;
    margin-right: 1rem;
    text-decoration: none;
}

.dashboard .widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.widget {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

form {
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

input, button {
    padding: 0.5rem;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
    }
    
    form {
        grid-template-columns: 1fr;
    }
}

/* Для сделок и задач */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.task-list {
    margin: 2rem 0;
}

.task-item {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.task-item.completed {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.task-actions a {
    color: #e53935;
    text-decoration: none;
}

.task-actions a:hover {
    text-decoration: underline;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.auth-form input {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.auth-form button {
    width: 100%;
    padding: 0.7rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.auth-form a {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

.error {
    color: #dc3545;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #ffebee;
    border-radius: 3px;
}

.delete-btn {
    color: #e53935;
    text-decoration: none;
    font-weight: bold;
}

.delete-btn:hover {
    text-decoration: underline;
}

.error {
    color: #dc3545;
    background: #ffebee;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}