:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

h1,
h2 {
    text-align: center;
    color: var(--primary-color);
}

nav {
    margin-bottom: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    margin: 0 1rem;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button.delete-btn {
    background-color: var(--danger-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

button.delete-btn:hover {
    background-color: #bd2130;
}

.list-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-content {
    flex-grow: 1;
}

.author {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.date {
    color: #888;
    font-size: 0.8rem;
}

.content {
    margin-top: 0.5rem;
    line-height: 1.5;
}

.auth-container {
    margin-top: 5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}