body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background: #333;
    color: white;
    padding: 1rem;
    margin-bottom: 2rem;
}

header h1 {
    margin: 0;
    display: inline;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header .auth {
    float: right;
}

header .auth a {
    color: white;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.post {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post h2 {
    margin-top: 0;
}

.post h2 a {
    color: #333;
    text-decoration: none;
}

.post h2 a:hover {
    color: #0066cc;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    margin-bottom: 1rem;
}

.actions, .post-actions {
    margin: 1rem 0;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.button:hover {
    background: #ddd;
}

.button.primary {
    background: #0066cc;
    color: white;
}

.button.primary:hover {
    background: #0055aa;
}

.button.danger {
    background: #cc0000;
    color: white;
}

.button.danger:hover {
    background: #aa0000;
}

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

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.form-group textarea {
    min-height: 200px;
}

.form-actions {
    margin-top: 1rem;
}

.error {
    color: #cc0000;
    background: #ffeeee;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ffcccc;
}

.markdown-body {
    box-sizing: border-box;
    min-width: 200px;
    max-width: 980px;
    margin: 0 auto;
    padding: 45px;
}

@media (max-width: 767px) {
    .markdown-body {
        padding: 15px;
    }
}

.katex { font-size: 1.1em; }
.katex-display { overflow: auto hidden; }

