/* Enhanced Admin Configuration Styling */

/* Improved styling for number input boxes */
.admin-form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(228, 7, 18, 0.2);
}

/* Style for number input spinner buttons */
.admin-form-group input[type="number"]::-webkit-inner-spin-button,
.admin-form-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 24px;
    margin-right: 4px;
}

/* Ensure textareas have full width */
#inspector-query, 
#inspector-system-prompt, 
#system-prompt {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    transition: all 0.2s ease;
}

#inspector-query:focus, 
#inspector-system-prompt:focus, 
#system-prompt:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(228, 7, 18, 0.2);
}

/* Help text styling */
.admin-form-group .help-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #a0a0a0;
    line-height: 1.4;
    max-width: 95%;
}

/* Section help text */
.config-section-help {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.5;
    border-left: 3px solid var(--accent-color);
}

/* Enhanced hover styling for section headers */
.admin-section h4 {
    display: flex;
    align-items: center;
    position: relative;
}

.admin-section h4 .help-icon {
    margin-left: 8px;
    color: #a0a0a0;
    cursor: help;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.admin-section h4 .help-icon:hover {
    color: var(--accent-color);
}

/* Context Inspector Styles */
.inspector-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.inspector-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ddd;
}

.inspector-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.inspector-chart-container {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.inspector-token-count {
    text-align: right;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 0.3rem;
}

.inspector-context-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid;
}

.inspector-context-item.high-relevance {
    border-left-color: #28a745;
}

.inspector-context-item.medium-relevance {
    border-left-color: #ffc107;
}

.inspector-context-item.low-relevance {
    border-left-color: #dc3545;
}

.inspector-context-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.inspector-context-source {
    font-weight: 600;
}

.inspector-context-scores {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.inspector-context-score {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.inspector-context-score .score-value {
    color: #ddd;
    font-weight: 500;
}

.inspector-context-text {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.75rem;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    white-space: pre-wrap;
}

.inspector-highlight {
    background-color: rgba(228, 7, 18, 0.3);
    padding: 0.15rem 0.1rem;
    border-radius: 2px;
}

.inspector-summary-data {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.inspector-summary-item {
    display: flex;
    flex-direction: column;
    margin-right: 1.5rem;
}

.inspector-summary-label {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.inspector-summary-value {
    font-size: 1.1rem;
    font-weight: 600;
}

#inspector-system-prompt {
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Token breakdown chart improvements */
.token-breakdown-chart {
    margin-top: 1rem;
    max-height: none;
    overflow: visible;
}

.token-breakdown-item {
    margin-bottom: 2rem;
    position: relative;
}

.token-breakdown-label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.token-breakdown-bar-container {
    position: relative;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.token-breakdown-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px 0 0 4px;
    min-width: 2px;
}

.token-breakdown-value {
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: white;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
    z-index: 2;
} 