:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --link-color: #bb86fc;
    --border-color: #333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
    color: var(--link-color);
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
}
input, textarea {
    background: #1e1e1e;
    color: white;
    border: 1px solid var(--border-color);
    padding: 8px;
    box-sizing: border-box; /* Prevent overflow */
}

textarea {
    min-height: 150px; /* Sane default height */
    resize: both; /* Allow both vertical and horizontal resizing */
}

/* Specific class for the post editor */
.post-editor {
    min-height: 260px;
    width: 800px;
    height: 400px;
    min-width: 400px;
}

/* Responsive embeds */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}
.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


@media (max-width: 768px) {
    body { padding: 15px; }
    h1 { font-size: 1.5em; }
    .post-editor { width: 100% !important; min-width: 100% !important; }
}

.table-container {
    overflow-x: auto;
}


/* Form input width constraints */
.comment-form input, .comment-form textarea,
.login-form input {
    width: 100%;
}


/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid var(--border-color);
    padding: 12px 15px; /* Increased vertical and horizontal padding */
}

th {
    background-color: #1e1e1e;
}
/* Comment Section */
.comment {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #1e1e1e;
}

.comment-meta {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.comment-author {
    font-weight: bold;
    color: var(--link-color);
}

.comment-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    max-width: 400px;
}

.comment-form label {
    display: block;
    margin-bottom: 2px;
    margin-top: 8px;
}

.comment-form form {
    max-width: 400px;
}

.comment-form textarea, .comment-form input {
    width: 100%;
    box-sizing: border-box;
}

.comment-form button {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--link-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
