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);
}

.article {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.article.deleted {
    border-color: #f44336;
    background-color: #ffebee;
}

.article.public {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.article.private {
    border-color: #ff9800;
    background-color: #fff3e0;
}

.article-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.article-status.deleted {
    background-color: #f44336;
    color: white;
}

.article-status.public {
    background-color: #4CAF50;
    color: white;
}

.article-status.private {
    background-color: #ff9800;
    color: white;
}

.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;
}

.switch-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.switch-container .status-label {
    margin-right: 25px;
    margin-bottom: 0;
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 15px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #4CAF50;
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-label {
    font-weight: 600;
    color: #2c3e50;
}

.status-public {
    color: #4CAF50;
}

.status-private {
    color: #f44336;
}

.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; }

