/* ========================================
   NEUES THEMA ERSTELLEN
======================================== */

.newthread-layout {
    --newthread-accent: #65718b;
    --newthread-accent-light: #8992a3;

    background: var(--content);
    border-radius: 0px;
    margin: 20px;
    overflow: hidden;
}

/* HEADER */

.newthread-header {
    background: linear-gradient(
        110deg,
        var(--newthread-accent-light),
        var(--newthread-accent)
    );
    padding: 30px 38px;
}

.newthread-title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.newthread-subtitle {
    color: #fff;
    font-size: 11px;
    font-style: italic;
    letter-spacing: 3px;
    margin-top: 6px;
}

/* INHALT */

.newthread-content {
    padding: 30px 25px;
	background: var(--border);
}

.newthread-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.newthread-table > tbody > tr > td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--secondborder);
    background: transparent;
    color: var(--font1);
    font-size: 13px;
}

.newthread-table > tbody > tr > td:first-child {
    width: 20%;
    font-weight: 600;
}

.newthread-table > tbody > tr > td:first-child {
    border-bottom: 0;
}

/* EINGABEFELDER */

.newthread-layout input.textbox,
.newthread-layout select,
.newthread-layout textarea {
    box-sizing: border-box;
    background: var(var(--border));
    border: 1px solid var(--secondborder);
    color: var(--font1);
    border-radius: 0px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13px;
}

.newthread-layout input.textbox:focus,
.newthread-layout select:focus,
.newthread-layout textarea:focus {
    outline: none;
    border-color: var(--newthread-accent);
}

.newthread-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.newthread-subject input.textbox {
    width: 340px;
    max-width: 100%;
}

/* EDITOR */

.newthread-message-row td {
    vertical-align: top;
    padding-top: 20px;
    padding-bottom: 25px;
}

.newthread-editor {
    min-width: 0;
}

/* MyBB / SCEditor */
.newthread-editor .sceditor-container {
    box-sizing: border-box;
    max-width: 100%;
    border: 1px solid var(--secondborder) !important;
    border-radius: 8px;
    overflow: hidden;
}

.newthread-editor textarea#message {
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    line-height: 1.6;
}

/* SMILIES */

.newthread-smilies {
    margin-top: 22px;
    max-width: 190px;
}

.newthread-smilies .tborder {
    width: 100%;
    border: 1px solid var(--secondborder);
    border-radius: 0px;
    overflow: hidden;
    background: var(--content);
}

.newthread-smilies .thead {
    background: var(--newthread-accent);
    color: #fff;
    text-align: center;
    padding: 10px;
    border: 0;
}

.newthread-smilies .trow1,
.newthread-smilies .trow2 {
    background: transparent;
    border: 0;
}

/* OPTIONEN */

.newthread-table input[type="checkbox"],
.newthread-table input[type="radio"] {
    accent-color: var(--newthread-accent);
}

/* ANHÄNGE */

.newthread-attachments {
    margin-top: 20px;
}

/* BUTTONS */

.newthread-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--secondborder);
}

.newthread-button {
    background: var(--newthread-accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 13px 25px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s ease;
}

.newthread-button:hover {
    background: var(--newthread-accent-light);
}

.newthread-button-secondary {
    background: transparent;
    border: 1px solid var(--newthread-accent);
    color: var(--font1);
}

.newthread-button-secondary:hover {
    background: var(--newthread-accent);
    color: #fff;
}



/* ========================================
   MARKITUP EDITOR & SMILIES
======================================== */

/* Nachrichtenzeile */
.newthread-table > tbody > tr.newthread-message-row > td {
    vertical-align: top;
    padding-top: 20px;
    padding-bottom: 25px;
}

/* MarkItUp-Editor */
.newthread-editor {
    width: 100%;
    min-width: 0;
}

.newthread-editor .markItUp {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.newthread-editor .markItUpContainer {
    width: 100%;
    box-sizing: border-box;
}

.newthread-editor .markItUpEditor,
.newthread-editor textarea#message {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    padding: 12px;
    background: var(--content);
    border: 1px solid var(--secondborder);
    border-radius: 6px;
    color: var(--font1);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
}

/* ========================================
   SMILIES – KOMPAKTE DARSTELLUNG
======================================== */

.newthread-smilies {
    width: 190px;
    max-width: 100%;
    margin-top: 20px;
}

.newthread-smilies .tborder {
    width: 100%;
    border: 1px solid var(--secondborder);
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--content);
}

.newthread-smilies .thead {
    padding: 9px 5px;
    background: var(--newthread-accent);
    color: #fff;
    text-align: center;
}

/* Tabellenzellen der Smilies zurücksetzen */
.newthread-smilies .tborder td {
    width: auto !important;
    height: auto !important;
    padding: 5px 3px !important;
    border: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    text-align: center;
}

/* Smilie-Zeilen kompakt halten */
.newthread-smilies .tborder tr {
    height: auto !important;
    min-height: 0 !important;
}

/* Smilie-Bilder */
.newthread-smilies img {
    display: inline-block;
    max-width: 28px;
    height: auto;
    vertical-align: middle;
}

/* Mehr-Link */
.newthread-smilies .tborder a {
    font-size: 12px;
}
