.admin-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 16px;
}

/* Admin Tabs Navigation */
.admin-tabs {
    display: flex;
    gap: 4px;
    padding: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color-light);
    flex-wrap: wrap;
}

.admin-tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

.admin-tab-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.admin-tab-button:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.admin-tab-button.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}

.admin-tab-button.active svg {
    stroke-width: 2.2;
}

/* Admin Tab Content */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* User Management Actions */
.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.user-action-btn {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.user-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-action-btn.danger {
    color: #ef4444;
    border-color: #ef444440;
    background: #ef444408;
}

.user-action-btn.danger:hover {
    background: #ef444415;
    border-color: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.user-action-btn.success {
    color: #10b981;
    border-color: #10b98140;
    background: #10b98108;
}

.user-action-btn.success:hover {
    background: #10b98115;
    border-color: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.user-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* User Status Badge */
.user-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.user-status-badge.active {
    background: #10b98118;
    color: #059669;
    border: 1px solid #10b98130;
}

.user-status-badge.inactive {
    background: #ef444418;
    color: #dc2626;
    border: 1px solid #ef444430;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--accent-secondary);
    color: var(--accent);
    border: 1px solid var(--accent-secondary);
}

/* Parser Monitoring Section */
.parser-monitoring-section {
    margin-top: 24px;
}

.header-with-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.parser-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.parser-live-badge.online {
    background: rgba(34, 165, 93, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(34, 165, 93, 0.25);
}

.parser-live-badge.warning {
    background: rgba(209, 162, 58, 0.12);
    color: var(--color-warning);
    border: 1px solid rgba(209, 162, 58, 0.25);
}

.parser-live-badge.offline {
    background: rgba(224, 73, 76, 0.12);
    color: var(--color-danger);
    border: 1px solid rgba(224, 73, 76, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* Metrics Cards Grid */
.parser-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.parser-metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.parser-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.parser-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.parser-metric-icon svg {
    width: 24px;
    height: 24px;
}

.parser-metric-icon.ingest {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.parser-metric-icon.today {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.parser-metric-icon.last-id {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.parser-metric-icon.rechecker {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.parser-metric-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.parser-metric-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.parser-metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parser-metric-sub {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dual Grid: Components & Server */
.parser-status-dual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.parser-status-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Components List */
.components-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.component-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.component-item:hover {
    background: var(--color-bg-tertiary);
}

.component-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.component-status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.component-status-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.component-status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.component-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.component-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.component-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.component-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.component-badge.online {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.component-badge.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.component-badge.offline {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.component-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.component-details {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 2px;
}

/* Server Resources List */
.server-resources-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.resource-header strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.resource-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--color-bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.resource-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.4s ease-out;
}

.resource-bar-fill.warning {
    background: #f59e0b;
}

.resource-bar-fill.danger {
    background: #ef4444;
}

.resource-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-color-light);
    font-size: 13px;
    color: var(--text-secondary);
}

.resource-footer strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Hourly Activity Panel */
.parser-hourly-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hourly-bars-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
    padding-top: 24px;
    padding-bottom: 8px;
    overflow-x: auto;
}

.hourly-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 42px;
    height: 100%;
    cursor: default;
}

.hourly-bar-val {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.hourly-bar-track {
    width: 100%;
    max-width: 24px;
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--color-bg-tertiary);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.hourly-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease-out;
}

.hourly-bar-col:hover .hourly-bar-fill {
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
}

.hourly-bar-col:hover .hourly-bar-val {
    color: var(--text-primary);
}

.hourly-bar-label {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ==============================================================================
   NEWS & ARTICLES STYLES
   ============================================================================== */

.admin-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 12px;
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
}

.admin-loading-state .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.admin-error-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #fca5a5;
    margin: 1rem 0;
}

.admin-error-card button {
    margin-top: 10px;
}

.content-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: var(--bg-secondary, #1e293b);
    border: 1px dashed var(--border-color, #334155);
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}

.content-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.content-empty-icon svg {
    width: 28px;
    height: 28px;
}

.content-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
}

.content-empty-state p {
    margin: 0 0 1.5rem 0;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    max-width: 420px;
}

.content-table-card {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.content-data-table th {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color, #334155);
}

.content-table-row {
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    transition: background 0.15s ease;
}

.content-table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.content-table-row:last-child {
    border-bottom: none;
}

.content-cell-main {
    padding: 16px;
    max-width: 440px;
}

.content-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.content-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
}

.content-category-tag {
    font-size: 11px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.content-item-summary {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.content-item-slug {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: monospace;
    color: #64748b;
}

.content-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.content-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.content-badge.published {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.content-badge.published .badge-dot {
    background: #4ade80;
}

.content-badge.draft {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.content-badge.draft .badge-dot {
    background: #facc15;
}

.content-cell-views {
    padding: 16px;
    white-space: nowrap;
}

.content-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(177, 156, 251, 0.1);
    color: #c4b5fd;
    border: 1px solid rgba(177, 156, 251, 0.22);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.content-views-badge svg {
    color: #a78bfa;
}

.content-cell-date {
    padding: 16px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
}

.content-cell-actions {
    padding: 16px;
    text-align: right;
    white-space: nowrap;
}

.content-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #334155);
    border-radius: 6px;
    color: var(--text-primary, #f8fafc);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn-edit svg {
    width: 14px;
    height: 14px;
    color: #818cf8;
}

.action-btn-edit:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.action-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    color: #f87171;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn-delete svg {
    width: 14px;
    height: 14px;
}

.action-btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Header Banner */
.content-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--border-color, #334155);
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.banner-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.banner-title-row h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.badge-admin-only {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.banner-subtitle {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-create-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.btn-create-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #7175f3 0%, #5850ec 100%);
}

.btn-refresh-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, #334155);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-content:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: #64748b;
}

/* Dialog Container */
.content-editor-dialog {
    max-width: 840px !important;
    width: min(100%, 840px) !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.content-modal-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

/* AI Generator Panel inside Modal */
.ai-generator-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.ai-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ai-panel-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #c7d2fe;
}

.ai-spark-icon {
    font-size: 16px;
}

.ai-model-tag {
    font-size: 11px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.ai-status-hint {
    font-size: 11px;
    color: #94a3b8;
}

.ai-panel-desc {
    margin: 0 0 14px 0;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.45;
}

.ai-input-row {
    display: flex;
    gap: 10px;
}

.ai-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.ai-input-wrapper svg {
    position: absolute;
    left: 14px;
    color: #64748b;
    pointer-events: none;
}

.ai-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.ai-input-wrapper input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #0f172a;
}

.ai-run-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.ai-run-button:hover:not(:disabled) {
    background: #4f46e5;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.ai-run-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Form Styling */
.form-group-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-field-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.form-input-text,
.form-select,
.form-textarea-short,
.form-textarea-full {
    width: 100%;
    padding: 10px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}

.form-input-text:focus,
.form-select:focus,
.form-textarea-short:focus,
.form-textarea-full:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #182234;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.slug-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slug-prefix {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
}

.slug-input {
    padding-left: 28px !important;
    font-family: monospace;
    font-size: 13px !important;
}

.form-textarea-full {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    line-height: 1.6;
    resize: vertical;
}

.form-seo-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.seo-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.form-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #334155;
    margin-top: 20px;
}

.btn-cancel {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    border-color: #64748b;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}


/* Explicit Overrides & High-Priority Modal Fixes */
.content-editor-dialog .listing-details-header {
    background: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
    padding: 18px 24px !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.content-editor-dialog .listing-details-header h2 {
    color: #f8fafc !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.content-editor-dialog .filter-close-button {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.content-editor-dialog .filter-close-button:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

.content-editor-dialog .listing-details-content {
    padding: 24px !important;
    background: #0f172a !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Empty State Button Guarantee */
.content-empty-state .btn-create-content,
.content-empty-state button.btn-create-content,
.content-empty-state button.primary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 22px !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
    transition: all 0.2s ease !important;
}

.content-empty-state .btn-create-content:hover,
.content-empty-state button.btn-create-content:hover,
.content-empty-state button.primary-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
    background: linear-gradient(135deg, #7175f3 0%, #5850ec 100%) !important;
}

/* ==============================================================================
   ADMIN FULL-PAGE CONTENT EDITOR TAB
   ============================================================================== */
.admin-editor-container {
    padding: 24px !important;
}

.admin-editor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-editor-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-editor-back:hover {
    background: #334155;
    color: #ffffff;
    border-color: #64748b;
    transform: translateX(-2px);
}

.editor-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editor-header-banner {
    margin-bottom: 24px !important;
}

.admin-editor-body {
    max-width: 980px;
    margin: 0 auto;
}

.admin-editor-body .ai-generator-panel {
    margin-bottom: 28px;
}

.admin-editor-body .form-group-field {
    margin-bottom: 20px;
}

.admin-editor-body .form-textarea-full {
    min-height: 380px !important;
    font-family: inherit;
    line-height: 1.6;
}

.editor-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 32px;
}

/* ==========================================================================
   B2B API Management & Modals Styling
   ========================================================================== */

#admin-b2b-tab {
    font-family: var(--font-family-text, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

#b2b-client-modal .listing-details-dialog,
#b2b-client-share-modal .listing-details-dialog {
    background: var(--bg-secondary, #ffffff) !important;
    color: var(--text-primary, #0f172a) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
}

#b2b-client-modal .listing-details-header,
#b2b-client-share-modal .listing-details-header {
    border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
    padding: 18px 24px !important;
}

#b2b-client-modal h2,
#b2b-client-share-modal h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-primary, #0f172a) !important;
    margin: 0 !important;
}

#b2b-client-modal .schedule-editor-field,
#b2b-client-share-modal .schedule-editor-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
}

#b2b-client-modal .schedule-editor-label,
#b2b-client-share-modal .schedule-editor-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-primary, #1e293b) !important;
}

#b2b-client-modal .schedule-editor-input,
#b2b-client-modal .schedule-editor-select,
#b2b-client-share-modal .schedule-editor-input,
#b2b-client-share-modal .schedule-editor-textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#b2b-client-modal .schedule-editor-input:focus,
#b2b-client-modal .schedule-editor-select:focus,
#b2b-client-share-modal .schedule-editor-input:focus,
#b2b-client-share-modal .schedule-editor-textarea:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

#b2b-client-modal .schedule-editor-hint,
#b2b-client-share-modal .schedule-editor-hint {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.b2b-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.b2b-pill-category {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 13px;
    font-weight: 600;
}
.b2b-pill-region {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.b2b-pill-city {
    background: rgba(100, 116, 139, 0.08);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ==========================================================================
   B2B Documentation View Styling
   ========================================================================== */
.b2b-docs-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.b2b-docs-card {
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.b2b-docs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.b2b-docs-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 6px 0;
}

.b2b-docs-subtitle {
    font-size: 14px;
    color: var(--text-secondary, #64748b);
    margin: 0;
    line-height: 1.5;
}

.b2b-docs-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.b2b-method-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
    font-family: monospace;
}

.b2b-url-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary, #f8fafc);
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 13.5px;
    color: var(--text-primary, #0f172a);
    word-break: break-all;
    margin: 12px 0 18px 0;
}

.b2b-code-container {
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    margin: 14px 0;
    border: 1px solid #1e293b;
}

.b2b-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.b2b-code-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.b2b-code-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.b2b-code-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.b2b-code-tab-btn.active {
    color: #ffffff;
    background: #6366f1;
}

.b2b-code-pre {
    margin: 0;
    padding: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #e2e8f0;
    overflow-x: auto;
}

.b2b-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13.5px;
}

.b2b-doc-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--bg-primary, #f8fafc);
    color: var(--text-secondary, #64748b);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.b2b-doc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-primary, #1e293b);
    vertical-align: top;
    line-height: 1.45;
}

.b2b-doc-table code {
    font-family: monospace;
    font-size: 12.5px;
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    border-radius: 4px;
}

.b2b-note-box {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid #6366f1;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-primary, #1e293b);
}


