@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #0F6E6B;
    --secondary: #7FA88F;
    --background: #FAF9F6;
    --surface: #F1F4F3;
    --text: #1C2624;
    
    --status-pending: #C98A2E;
    --status-approved: #2E8B67;
    --status-exported: #3E6B8A;
    --status-emailed: #6C5B8A;
    --status-orange-flag: #D97706;
    --alert: #C0522F;

    --font-ui: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

body {
    font-family: var(--font-ui);
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.font-mono {
    font-family: var(--font-mono);
}

.text-orange-flag {
    color: var(--status-orange-flag);
}

.text-alert {
    color: var(--alert);
    font-weight: 600;
}

.card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: var(--font-ui);
    transition: all 0.2s;
}

.btn:focus-visible {
    outline: 2px solid var(--alert);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0c5c59;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #6e947d;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(15, 110, 107, 0.05);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.badge-pending { background-color: var(--status-pending); }
.badge-approved { background-color: var(--status-approved); }
.badge-exported { background-color: var(--status-exported); }
.badge-emailed { background-color: var(--status-emailed); }
.badge-not-qualified { background-color: var(--alert); }
.badge-orange-flag { background-color: var(--status-orange-flag); color: #1a1a1a; }

.queue-row-not-qualified td {
    background-color: rgba(192, 82, 47, 0.07);
}

.queue-row-not-qualified td:first-child {
    box-shadow: inset 4px 0 0 var(--alert);
}

.queue-row-orange-flag td {
    background-color: rgba(217, 119, 6, 0.07);
}

.queue-row-orange-flag td:first-child {
    box-shadow: inset 4px 0 0 var(--status-orange-flag);
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.layout-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: var(--surface);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px 0 12px;
    display: flex;
    flex-direction: column;
}

.sidebar .nav-item.nav-item-disabled {
    color: #A8B0AE !important;
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.sidebar .nav-item.nav-item-disabled:hover {
    background-color: transparent !important;
    color: #A8B0AE !important;
}

.sidebar .nav-item.nav-item-disabled .nav-icon {
    color: #A8B0AE !important;
}

.main-content {
    flex: 1;
    padding: 32px;
    max-width: 1200px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

th {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
}
.help-error {
    color: #a33;
}

.help-status {
    color: var(--status-approved);
}

.help-muted {
    color: var(--secondary);
}

.help-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.help-toolbar-label {
    font-weight: 600;
}

.help-toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

.help-add-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--secondary);
    font-size: 0.875rem;
}

.help-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--secondary);
}

.help-field input,
.help-field textarea {
    padding: 0.5rem;
    border: 1px solid #cfd6d3;
    border-radius: 4px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.help-block-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.help-block-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-compact {
    padding: 6px 10px;
    font-size: 0.8125rem;
}

.reject {
    color: #8a3e3e;
    border-color: #c9a0a0;
}

.help-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.help-media-preview,
.help-image,
.help-video {
    display: block;
    max-width: 100%;
    margin-top: 0.75rem;
    border-radius: 6px;
}

.help-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-top: 0.75rem;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.help-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.help-caption {
    margin: 0.5rem 0 0;
    color: var(--secondary);
    font-size: 0.875rem;
}

.help-body {
    margin: 0;
    color: var(--secondary);
    white-space: pre-wrap;
}

.help-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.help-main {
    flex: 2;
    min-width: 0;
}

.help-aside {
    flex: 1;
    min-width: 14rem;
}

.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
}

.help-faq-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.help-faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--text);
}

.help-faq-chevron {
    color: var(--primary);
    font-size: 1.125rem;
    line-height: 1;
}

.help-faq-answer {
    margin: 0 0 0.5rem;
    color: var(--secondary);
    white-space: pre-wrap;
}

.help-faq-item-edit {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dfe5e2;
    border-radius: 6px;
    background: #fff;
}

@media (max-width: 800px) {
    .help-layout {
        flex-direction: column;
    }

    .help-aside {
        width: 100%;
    }
}
