:root {
    --primary-color: #0f766e;
    --secondary-color: #f5f5f5;
    --tertiary-color: #94a3b8;
    --quaternary-color: #BBDDE3;
    --dark-gray: #333;
    --medium-gray: #888;
    --danger-color: #c81f1f;
    --danger-bg-color: #fbeeec;
    --warning-color: #c98b06;
    --warning-bg-color: #fff3cd;
    --info-bg-color: #dff1f0;
}

html * {
    font-family: Courier Prime, courier, monospace !important;
}

body {
    background-color: var(--secondary-color);
    color: var(--dark-gray);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 48rem;
    margin: 10px auto;
    padding: 20px;
}

.min-h-screen {
    min-height: 100vh;
}

/* Thread styles */
.thread {
    margin-bottom: 30px;
}

.thread-info {
    display: flex;
    justify-content: space-between;
}

.thread-categories {
    border-top: 1px var(--tertiary-color) dashed;
    padding-top: 7px;
    margin-top: 10px;
    font-size: .75rem;
}

.thread-categories a {
    text-decoration: none;
    color: var(--tertiary-color);
}

.thread-categories a:hover {
    color: var(--quaternary-color);
}

.thread-id,
.thread-author {
    font-size: 14px;
    color: var(--primary-color);
}


.thread-id a {
    text-decoration: underline;
    color: inherit;
}

.thread-author a {
    text-decoration: none;
    color: inherit;
}

.thread-id a:hover,
.thread-author a:hover {
    color: var(--quaternary-color);
}

.thread-author {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Post styles */

.post {
    padding-top: 2px;
    margin-top: 7px;
}

.post-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--tertiary-color);
}

.post-id a {
    text-decoration: none;
    color: inherit;
}

.post-id a:hover {
    color: var(--quaternary-color);
}

.post-content {
    font-size: 0.875rem;
    font-weight: 300;
    text-indent: 0;
    white-space: pre-wrap;
    margin-top: 5px;
}

/* Form styling */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: .3rem;
    padding: .5rem;
}

.form-submit {
    align-self: flex-start;
}

/* General Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-link {
    margin-left: 20px;
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--medium-gray);
}

.pagination {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.pagination > a {
    color: var(--primary-color);
    text-decoration: none;
}

.pagination > a:hover {
    color: var(--quaternary-color);
}

.next {
    text-align: right;
}

/* Desktop Specific Styles */
.desktop {
    display: flex;
}

.mobile {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: flex;
        align-items: center;
    }

    .mobile .nav-link {
        margin-left: 15px;
    }

    html,
    body {
        overflow-x: hidden;
    }
    .thread-author {
        max-width: 150px;
    }
}

.table-container {
    overflow: auto;
    max-height: 256px;
}

.btn {
    color: var(--dark-gray);
    background-color: var(--secondary-color);
    padding: 2px 5px 2px 5px;
    border-radius: 3px;
    border: 1px solid var(--dark-gray);
}

.btn:hover {
    background-color: var(--quaternary-color);
}

.btn:active {
    background-color: var(--primary-color);
}

.btn:focus {
    outline: none;
}

.btn-t {
    padding: 2px 4px 2px 4px;
    font-size: small;
    border-radius: 0;
}

.btn-wrn {
    color: var(--warning-color);
    background-color: var(--secondary-color);
    border: 1px solid var(--warning-color);
}

.btn-dgr {
    background-color: var(--danger-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

table {
    border-collapse: collapse;
    width: 100%;
}

thead {
    font-size: medium;
}

tbody {
    font-size: small;
}

th {
    text-align: start;
    position: sticky;
    top: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
}

td {
    padding: 2px;
    overflow: auto;
    max-width: 200px;
    white-space: nowrap;
}

td > form {
    display: inline-block;
    justify-content: center;
    gap: 10px;
}

tr:nth-child(even) {
    background-color: #ececec;
}

.alert {
    align-content: center;
    padding: 10px;
    border-radius: 3px;
    margin-top: 16px;
    margin-bottom: 16px;
    color: var(--primary-color);
    background-color: var(--info-bg-color);
    border: 1px solid var(--primary-color);

}

.alert-warning {
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
    background-color: var(--warning-bg-color);
}

.alert-error {
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    background-color: #fbeeec;
}

.profile-container {
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}


.username {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.joined {
    color: var(--tertiary-color);
}

.stats {
    color: var(--medium-gray);
}