/**
 * Prompt Boxes Components
 * Darker purple prompt sections for left panel
 */

/* Prompt Section Boxes */
.prompt-section {
    margin-bottom: 20px;
    padding: 16px 18px 16px 18px;
    background: linear-gradient(135deg, 
        rgba(55, 25, 95, 0.5) 0%,
        rgba(40, 18, 80, 0.45) 50%,
        rgba(30, 15, 70, 0.4) 100%);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Prompt Header with Status Circle */
.prompt-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.prompt-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c084fc;
    text-align: center;
}

.prompt-status-circle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.prompt-status-circle[data-status="empty"] {
    background: #6b7280;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.3);
}

.prompt-status-circle[data-status="populated"] {
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4), 0 0 8px rgba(59, 130, 246, 0.2);
}

.prompt-status-circle[data-status="ready"] {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4), 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Token Counter Components */
.token-counter {
    margin: 8px 0 8px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.token-count {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.token-count.safe {
    color: #10b981;
}

.token-count.warning {
    color: #f59e0b;
}

.token-count.caution {
    color: #f97316;
}

.token-count.danger {
    color: #ef4444;
    font-weight: 600;
}

.token-progress-bar {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.token-progress-fill {
    height: 100%;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.token-progress-fill.safe {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.token-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.token-progress-fill.caution {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.token-progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.token-suggestions {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 4px;
    line-height: 1.3;
}

/* Combined Token Counter */
.combined-token-section {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, 
        rgba(75, 35, 115, 0.6) 0%,
        rgba(60, 28, 100, 0.55) 50%,
        rgba(45, 20, 85, 0.5) 100%);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(5px);
}

.combined-token-header h4 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e879f9;
    text-align: center;
}

.combined-token-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.combined-token-count {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    transition: all 0.3s ease;
}

.combined-token-progress-bar {
    width: 180px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.combined-token-progress-fill {
    height: 100%;
    transition: all 0.4s ease;
    border-radius: 3px;
}

.token-breakdown {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Space Grotesk', monospace;
}

.breakdown-item {
    flex: 1;
    text-align: center;
}

.breakdown-item span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Legacy character counter (will be replaced) */
.prompt-counter {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 0;
}

.prompt-content {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Space Grotesk', monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 10px 18px 18px;
    border-radius: 0;
    border: none;
    min-height: 180px;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: all 0.3s ease;
    margin: 0 -18px;
}

.prompt-content.has-content {
    border: none;
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.prompt-section.populated {
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.prompt-content:empty::before {
    content: 'Generated prompt will appear here...';
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Prompt Action Buttons */
.prompt-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
    justify-content: center;
    align-items: center;
}

/* Prompt button styling moved to buttons.css for consistency */