/* Admin Dashboard Styles */

.admin-navbar {
    border-bottom: 1px solid var(--bs-border-color);
}

.admin-tab-content {
    padding: 1.5rem 0;
}

.kpi-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: var(--bs-body-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kpi-card .kpi-chart-wrapper {
    flex: 1;
    position: relative;
    min-height: 80px;
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.kpi-card .kpi-label {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
}

.admin-filter-bar {
    background: var(--bs-tertiary-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-grid {
    width: 100%;
    height: 500px;
}

.badge-source {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-source-web     { background-color: #0d6efd; color: white; }
.badge-source-slack   { background-color: #4a154b; color: white; }
.badge-source-gemini  { background-color: #1a73e8; color: white; }
.badge-source-sdk     { background-color: #198754; color: white; }
.badge-source-terminal{ background-color: #6c757d; color: white; }

.status-completed  { color: #198754; }
.status-error      { color: #dc3545; }
.status-cache_hit  { color: #0d6efd; }
.status-pending    { color: #6c757d; }

#admin-chart-container {
    position: relative;
    height: 250px;
}

.popular-badge {
    background-color: #0dcaf0;
    color: #000;
}

.feedback-positive { color: #198754; }
.feedback-negative { color: #dc3545; }

/* ── Semantic Model Editor ── */
.sm-breadcrumb-bar {
    background: var(--bs-tertiary-bg);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.sm-status-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 0.75rem;
}

.sm-ds-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.sm-ds-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: var(--bs-body-bg);
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.sm-ds-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.sm-badge-published { background-color: #198754; color: white; }
.sm-badge-draft     { background-color: #ffc107; color: #000; }
.sm-badge-archived  { background-color: #6c757d; color: white; }

.sm-choice-editor .sm-choice-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.sm-choice-editor .sm-choice-row input { flex: 1; }

.sm-validation-list {
    max-height: 200px;
    overflow-y: auto;
}

.sm-validation-error {
    padding: 0.2rem 0.5rem;
    background: #fff3f3;
    border-left: 3px solid #dc3545;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

.sm-validation-warning {
    padding: 0.2rem 0.5rem;
    background: #fffbf0;
    border-left: 3px solid #ffc107;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    border-radius: 0 0.25rem 0.25rem 0;
}
