/* Interactive Showcase specific styles */
:root {
    --accent-color: #b366ff;
}

.showcase-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-api {
    font-size: 0.85rem;
    color: #888;
    align-self: flex-end;
    margin-bottom: -15px;
}

.input-api-text {
    background: #1a1a1a;
    color: #eee;
    border: 1px solid #444;
    padding: 4px;
    border-radius: 4px;
    margin-left: 5px;
}

#policy-input {
    width: 80%;
    height: 150px;
    padding: 15px;
    margin: auto;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #eee;
    font-family: inherit;
    resize: vertical;
    font-size: 1rem;
}

.analyze-btn {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    margin: auto;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.analyze-btn:hover {
    opacity: 0.8;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    display: none;
    /* Hidden until analysis */
}

.dashboard.active {
    display: grid;
}

.panel {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.panel.full-width {
    grid-column: 1 / -1;
}

.panel h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    color: var(--accent-color);
}

.panel-subtitle {
    font-size: 0.8rem;
    color: #888;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.metric-label {
    font-size: 0.9rem;
    color: #ccc;
}

.metric-percentage {
    font-size: 0.8rem;
    margin-right: 10px;
}

.progress-bar-bg {
    width: 50%;
    height: 12px;
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4caf50;
    /* Green (Safe) */
    transition: width 0.5s ease;
}

.progress-bar-fill.risk-high {
    background-color: #f44336;
    /* Red (High Risk) */
}

.progress-bar-fill.risk-med {
    background-color: #ff9800;
    /* Orange (Med Risk) */
}

.frameworks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

pre {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    color: #a6e22e;
    font-size: 0.85rem;
}

.status-msg {
    color: #ff9800;
    margin-top: 10px;
    font-style: italic;
}

.file-upload-input {
    display: block;
    margin-top: 5px;
    color: white;
}

/* Tri-color heatmap token styles and native accordion UI */
.audit-chunk {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background-color: #1a1e23;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
}

.salience-token {
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
    font-weight: bold;
}

.token-red {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
}

.token-green {
    background-color: rgba(34, 197, 94, 0.8);
    color: #f0fdf4;
}

.token-blue {
    background-color: rgba(59, 130, 246, 0.7);
    color: #eff6ff;
}

.entry-compliant {
    border-left: 4px solid #22c55e !important;
}

.entry-violating {
    border-left: 4px solid #ef4444 !important;
}

details.audit-entry {
    background: #2d3748;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

details.audit-entry summary {
    font-weight: bold;
    font-size: 1.1em;
    outline: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-tick {
    color: #22c55e;
    font-size: 1.2em;
}

.icon-cross {
    color: #ef4444;
    font-size: 1.2em;
}

.context-box {
    background: #1a202c;
    padding: 10px;
    border-left: 3px solid #718096;
    margin-bottom: 10px;
    color: #cbd5e0;
    font-family: serif;
}

.audit-control {
    margin-top: 0;
}

.audit-control-name {
    color: #ffaa00;
}