* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 320px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.brand h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.queue-nav {
    flex-grow: 1;
    margin-top: 40px;
}

.queue-nav h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 16px;
}

.queue-nav ul {
    list-style: none;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    border: 1px solid transparent;
    margin-bottom: 8px;
}

.queue-item:hover {
    background: rgba(51, 65, 85, 0.5);
}

.queue-item.active {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.queue-item.approved {
    opacity: 0.6;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px currentColor;
}

.status-dot.pending {
    background-color: #f59e0b;
    color: #f59e0b;
}

.status-dot.approved {
    background-color: #10b981;
    color: #10b981;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
}

.item-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.mt-8 { margin-top: 32px; }

.footer-note {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 16px;
}

.footer-note .disclaimer {
    font-size: 10px;
    color: #f59e0b;
    margin-top: 4px;
    font-style: italic;
}

/* MAIN PANEL */
.review-panel {
    flex-grow: 1;
    background: #0b1120;
    display: flex;
    flex-direction: column;
    position: relative;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 32px 48px;
    border-bottom: 1px solid #1e293b;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 1) 0%, rgba(11, 17, 32, 1) 100%);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.badge.ai-draft {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.panel-header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.3);
}

.document-viewer {
    padding: 32px 48px;
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

.doc-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.meta-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid #1e293b;
    padding: 16px 20px;
    border-radius: 8px;
    min-width: 180px;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.meta-value {
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
}

.meta-value.success { color: #34d399; }
.meta-value.warning { color: #fbbf24; }
.meta-value.locked { color: #f8fafc; }

.doc-content {
    background: white;
    color: #1e293b;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-height: 500px;
    max-width: 800px;
    line-height: 1.7;
    font-size: 15px;
}

.doc-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 18px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.doc-content h3:first-child {
    margin-top: 0;
}

.doc-content p {
    margin-bottom: 16px;
}

.ai-flag {
    background: #fef08a;
    border-bottom: 2px solid #eab308;
    cursor: help;
    padding: 0 4px;
    border-radius: 2px;
}

.ai-flag:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    width: 250px;
    z-index: 10;
    margin-top: 24px;
    margin-left: -50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* MODAL / OVERLAY */
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 40px;
    border-radius: 12px;
    width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.3s;
}

.overlay.hidden .modal {
    transform: translateY(20px);
}

.modal h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.modal p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.input-group input:focus {
    border-color: #3b82f6;
}

.input-group input:disabled {
    color: #94a3b8;
    background: #0f172a;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}
