/* ==========================================================================
   NEWS & ARTICLES - TABLE & EDITOR UI
   ========================================================================== */

.rev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.rev-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.rev-page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.rev-page-header p {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

/* ---------------- Table UI ---------------- */
.news-table-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.news-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.news-table th, .news-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.news-table th {
    background-color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-table td {
    font-size: 14.5px;
    color: #334155;
}

.news-table tr:hover {
    background-color: #f8fafc;
}

.news-table-img-wrapper {
    width: 60px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.news-table-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.news-status-badge.active {
    background-color: #dcfce7;
    color: #166534;
}

.news-status-badge.draft {
    background-color: #fef3c7;
    color: #92400e;
}

.text-right {
    text-align: right;
}

.news-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-icon.btn-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.btn-icon .material-symbols-outlined {
    font-size: 18px;
}

/* ---------------- Editor UI ---------------- */
.news-editor-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 32px;
}

.rev-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.rev-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 170, 108, 0.1);
}

.checkbox-wrapper {
    padding-top: 10px;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.checkbox-label {
    vertical-align: middle;
    margin-left: 8px;
    font-size: 14px;
    color: #334155;
}

.news-editor-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}

.btn-save-large {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
}

.btn-save-large .material-symbols-outlined {
    font-size: 20px;
}

/* Empty State */
.rev-empty-state {
    text-align: center;
    padding: 64px 20px;
}

.empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.rev-empty-state h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.rev-empty-state p {
    color: #64748b;
    margin: 0;
}

/* Quill Editor UI */
.quill-container-wrapper { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #cbd5e1; }
.quill-container-wrapper .ql-toolbar { border: none; border-bottom: 1px solid #cbd5e1; background: #f8fafc; font-family: inherit; }
.quill-container-wrapper .ql-container { border: none; font-family: inherit; font-size: 15px; height: 350px; }
.quill-container-wrapper .ql-editor { padding: 16px; }

