:root {
    --bg-color: #f1f3f5;
    --text-color: #343a40;
    --border-color: #dee2e6;
    --primary-color: #228be6;
    --danger-color: #fa5252;
    --success-color: #40c057;
    --hover-color: #e9ecef;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 30px;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #495057;
}

header h1 span {
    color: #adb5bd;
    font-weight: 300;
}

.login-form {
    max-width: 350px;
    margin: 60px auto;
    text-align: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.login-form input {
    padding: 12px;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

button:hover {
    background: #1c7ed6;
}

.logout-btn {
    text-decoration: none;
    color: var(--danger-color);
    font-weight: 600;
}

.logout-btn:hover {
    text-decoration: underline;
}

.btn-delete {
    background: var(--danger-color);
    padding: 6px 12px;
    font-size: 12px;
}

.btn-delete:hover {
    background: #e03131;
}

.panel-info p {
    color: #868e96;
    margin-top: 0;
}

.sites-table, .posts-table {
    width: 100%;
    border-collapse: collapse;
}

.sites-table th, .sites-table td, 
.posts-table th, .posts-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.sites-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

.domain-row {
    background-color: #f8f9fa;
}

.domain-header {
    background-color: #e9ecef;
    font-size: 16px;
    padding: 12px 15px !important;
}

.site-id {
    display: inline-block;
    background: #adb5bd;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

.posts-row {
    background-color: #fff;
}

.posts-container {
    padding: 15px;
    background: #fff;
}

.actions-container {
    text-align: center;
    padding: 15px 0 5px 0;
    margin-top: 10px;
}

.btn-show-more {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
    font-weight: 500;
}

.btn-show-more:hover {
    background: #e9ecef;
}

.turnstile-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.posts-table {
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.posts-table th {
    background: #fff;
    font-size: 13px;
    text-transform: uppercase;
    color: #868e96;
}

.posts-table td {
    font-size: 14px;
    border-bottom: 1px solid #f1f3f5;
}

.posts-table tr:last-child td {
    border-bottom: none;
}

.posts-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.posts-table a:hover {
    text-decoration: underline;
}

.thumb-col img {
    max-width: 50px;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: block;
}

.no-thumb {
    width: 50px;
    height: 35px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #adb5bd;
    border-radius: 4px;
}

.no-posts {
    color: #868e96;
    font-style: italic;
    margin: 0;
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-weight: 500;
}

.alert.success {
    background: #d3f9d8;
    color: #2b8a3e;
    border: 1px solid #b2f2bb;
}

.alert.error {
    background: #ffe3e3;
    color: #c92a2a;
    border: 1px solid #ffc9c9;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-publish { background: #d3f9d8; color: #2b8a3e; }
.status-draft { background: #fff3bf; color: #f08c00; }
.status-pending { background: #d0ebff; color: #1864ab; }
.status-future { background: #eebefa; color: #862e9c; }
.status-private { background: #ced4da; color: #495057; }
