﻿
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #eef1f4;
    min-height: 100vh;
}

.topbar {
    background: #2c3e50;
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
}

.layout {
    display: flex;
    padding: 16px;
    gap: 16px;
    align-items: flex-start;
    min-height: calc(100vh - 60px);
}

.feed-host {
    width: 100%;
    flex-shrink: 0;
}

.main {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    min-height: 600px;
}

    .main h2 {
        margin-top: 0;
        color: #2c3e50;
    }

.init-form {
    background: #fff;
    border: 1px solid #ffd66b;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}

    .init-form h3 {
        margin: 0 0 10px;
        color: #b45309;
        font-size: 14px;
    }

    .init-form .row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 8px;
    }

    .init-form label {
        font-size: 12px;
        color: #555;
        min-width: 130px;
    }

    .init-form input, .init-form select {
        flex: 1;
        min-width: 200px;
        padding: 6px 10px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        font-size: 13px;
    }

    .init-form button {
        background: #007bff;
        color: #fff;
        border: none;
        padding: 8px 18px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
    }

        .init-form button:disabled {
            background: #95c2ff;
            cursor: not-allowed;
        }

.init-status {
    font-size: 12px;
    margin-top: 6px;
}

    .init-status.ok {
        color: #28a745;
    }

    .init-status.err {
        color: #dc3545;
    }

.log {
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    margin-top: 16px;
    font-size: 12px;
    height: 240px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
}

/* ── Compose modal ────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

    .modal-backdrop.open {
        display: flex;
    }

.modal-window {
    width: 460px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    overflow: hidden;
}

    .modal-window itg-post-compose {
        display: block;
    }

    /* wider, taller modal for the full posts list */
    .modal-window.large {
        width: 760px;
        height: 80vh;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
    }

        .modal-window.large itg-post-list {
            flex: 1;
            min-height: 0;
        }
/* close button that sits on the top-right corner of the large modal wrapper */
.modal-close-btn {
    direction: rtl;
    position: absolute;
    top: 5px;
    right: 15px;
    left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1f6072;
    color: #fff;
    border: 2px solid #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    z-index: 1;
}

html[lang="ar"] .modal-close-btn {
    top: 5px;
    left: 15px;
    right: auto;
}

.modal-close-btn:hover {
    background: #c0392b;
}
/* the wrapper must be position:relative so the button is anchored to it */
.modal-window {
    position: relative;
}

