:root {
    --bg-primary: #0f0f12;
    --bg-secondary: #1a1a21;
    --bg-tertiary: #242430;
    --bg-card: #1e1e28;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --critical: #dc2626;
    --critical-bg: rgba(220, 38, 38, 0.2);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar-width: 320px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navbar */
.top-navbar {
    height: 56px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.logo-text {
    font-size: 15px;
    font-weight: 600;
}

.navbar-stats {
    display: flex;
    gap: 16px;
}

.navbar-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.navbar-stat-value {
    font-weight: 700;
    font-size: 15px;
}

.navbar-stat.success .navbar-stat-value { color: var(--success); }
.navbar-stat.warning .navbar-stat-value { color: var(--warning); }
.navbar-stat.danger .navbar-stat-value { color: var(--danger); }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-btn {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.navbar-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Main Layout */
.main-layout {
    display: flex;
    margin-top: 56px;
    min-height: calc(100vh - 56px);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    height: calc(100vh - 56px);
    z-index: 100;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
}

.btn-icon {
    padding: 10px;
}

/* Customer List */
.customer-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.customer-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.customer-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.customer-item.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.customer-item.status-ok {
    border-left: 3px solid var(--success);
}

.customer-item.status-warning {
    border-left: 3px solid var(--warning);
    background: var(--warning-bg);
}

.customer-item.status-danger {
    border-left: 3px solid var(--danger);
    background: var(--danger-bg);
}

.customer-item.status-expired {
    border-left: 3px solid var(--critical);
    background: var(--critical-bg);
}

.customer-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.status-badge.ok { background: var(--success-bg); color: var(--success); }
.status-badge.warning { background: var(--warning-bg); color: var(--warning); }
.status-badge.danger { background: var(--danger-bg); color: var(--danger); }
.status-badge.expired { background: var(--critical-bg); color: var(--critical); }

.customer-progress {
    margin-top: 10px;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.progress-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-fill.time { background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }
.progress-fill.posts { background: linear-gradient(90deg, var(--success), #4ade80); }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    min-height: calc(100vh - 56px);
}

.content-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-text {
    color: var(--text-muted);
    max-width: 400px;
}

/* Customer Detail */
.customer-detail {
    display: none;
}

.customer-detail.active {
    display: block;
}

.detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.detail-status.ok { background: var(--success-bg); color: var(--success); }
.detail-status.warning { background: var(--warning-bg); color: var(--warning); }
.detail-status.danger { background: var(--danger-bg); color: var(--danger); }
.detail-status.expired { background: var(--critical-bg); color: var(--critical); }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-item {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
}

/* Package Info Card */
.package-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.package-title {
    font-size: 18px;
    font-weight: 600;
}

.package-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.package-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.package-stat {
    text-align: center;
}

.package-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.package-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.package-notes {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.package-notes strong {
    color: var(--text-primary);
}

/* Progress Card */
.progress-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.progress-section {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius-sm);
}

.progress-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-big-bar {
    height: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-big-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.progress-info-label {
    color: var(--text-muted);
}

.progress-info-value {
    font-weight: 600;
}

/* Post History */
.history-card {
    margin-top: 24px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.history-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

.history-table tr:hover td {
    background: var(--bg-tertiary);
}

.post-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.post-type.standard { background: var(--accent-glow); color: var(--accent-secondary); }
.post-type.interactive { background: var(--success-bg); color: var(--success); }
.post-type.review { background: var(--warning-bg); color: var(--warning); }

.delete-post-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.delete-post-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Post Summary Stats */
.post-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.post-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.post-summary-item.total {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
    border-color: var(--accent-primary);
}

.post-summary-icon {
    font-size: 16px;
}

.post-summary-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.post-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-summary-item.total .post-summary-value {
    color: var(--accent-secondary);
}

.post-summary-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-sm {
    padding: 6px 10px !important;
    font-size: 11px !important;
}

/* Moderator Tabs */
.moderator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mod-tab {
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mod-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.mod-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.moderator-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Editable Cells */
.editable-cell {
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.editable-cell:hover {
    background: var(--bg-tertiary);
}

/* Row locked state - cells not clickable */
tr:not(.editing) .editable-cell {
    cursor: default;
}

tr:not(.editing) .editable-cell:hover {
    background: transparent;
}

/* Editing row - cells clickable with highlight */
tr.editing .editable-cell {
    cursor: pointer;
}

tr.editing .editable-cell:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Edit Dropdown */
.edit-dropdown {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
    animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-dropdown-header {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-dropdown-option {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border);
}

.edit-dropdown-option:last-child {
    border-bottom: none;
}

.edit-dropdown-option:hover {
    background: var(--bg-tertiary);
}

.edit-dropdown-option.selected {
    background: rgba(99, 102, 241, 0.15);
}

.edit-dropdown-key {
    width: 22px;
    height: 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.edit-dropdown-label {
    flex: 1;
    font-size: 13px;
}

.edit-dropdown-value {
    font-size: 12px;
    color: var(--text-muted);
}

/* Edit Input */
.edit-input-container {
    padding: 10px 14px;
}

.edit-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
}

.edit-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.edit-suggestions {
    max-height: 150px;
    overflow-y: auto;
}

/* Row Actions */
.row-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* Lock Toggle */
.lock-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.lock-toggle:hover {
    background: var(--bg-tertiary);
}

.lock-toggle.is-locked {
    opacity: 0.5;
}

.lock-toggle.is-locked:hover {
    opacity: 1;
}

.lock-toggle.is-unlocked {
    color: var(--warning);
    opacity: 1;
}

/* Unlocked/Editing row highlight */
.history-table tr.editing {
    background: rgba(99, 102, 241, 0.08);
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.history-table tr.editing:hover {
    background: rgba(99, 102, 241, 0.12);
}

.history-table tr.editing td:first-child {
    border-radius: 8px 0 0 8px;
}

.history-table tr.editing td:last-child {
    border-radius: 0 8px 8px 0;
}


/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.package-preview {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 8px;
}

.package-preview-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-secondary);
}

.package-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 12px;
}

.package-preview-item {
    display: flex;
    justify-content: space-between;
}

.package-preview-label {
    color: var(--text-muted);
}

.package-preview-value {
    font-weight: 500;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--critical);
}

/* Post Modal */
.post-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.post-type-option {
    padding: 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.post-type-option:hover {
    border-color: var(--accent-primary);
}

.post-type-option.selected {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.post-type-option-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.post-type-option-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.post-type-option-ratio {
    font-size: 11px;
    color: var(--text-muted);
}

input[type="file"] {
    display: none;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .package-details { grid-template-columns: repeat(2, 1fr); }
    .navbar-stats { display: none; }
}

@media (max-width: 768px) {
    .top-navbar { padding: 0 16px; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 16px; }
    .navbar-left .logo-text { display: none; }
    .menu-toggle { display: flex !important; }
    .detail-grid, .package-details, .progress-card { grid-template-columns: 1fr; }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 8px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Action buttons for customer */
.customer-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

/* FB Log Modal specific styles */
.log-textarea {
    width: 100%;
    height: 150px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.log-preview {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.preview-item {
    padding: 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-item:last-child {
    border-bottom: none;
}