/* AI CW Bot styling – aligns with MorseTrainerPro gradients/cards */

.cwbot-card {
    background: linear-gradient(135deg, #111827 0%, #0b1224 100%);
    border: 1px solid #1f2937;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    padding: 1.25rem;
}

.cwbot-input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 0.75rem;
    color: #e5e7eb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cwbot-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cwbot-btn-primary,
.cwbot-btn-secondary,
.cwbot-btn-ghost {
    border-radius: 10px;
    padding: 0.65rem 1.2rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.cwbot-btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.cwbot-btn-primary:hover {
    transform: translateY(-1px);
}

.cwbot-btn-secondary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #e7f9f1;
    border-color: rgba(16, 185, 129, 0.3);
}

.cwbot-btn-secondary:hover {
    transform: translateY(-1px);
}

.cwbot-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.07);
}

.cwbot-btn-primary:disabled,
.cwbot-btn-secondary:disabled,
.cwbot-btn-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cwbot-transcript {
    background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08), transparent 35%),
                radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.08), transparent 40%),
                #0b1220;
    border: 1px solid #1f2937;
    border-radius: 12px;
    min-height: 320px;
    max-height: 520px;
    overflow-y: auto;
    padding: 1rem;
}

.cwbot-transcript::-webkit-scrollbar {
    width: 10px;
}
.cwbot-transcript::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 10px;
}

.cwbot-transcript.cwbot-transcript-hidden .cwbot-bubble[data-from="bot"] {
    filter: blur(7px);
    opacity: 0.22;
    user-select: none;
}

.cwbot-transcript.cwbot-transcript-hidden .cwbot-bubble[data-from="bot"]::selection {
    background: transparent;
}

.cwbot-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.cwbot-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.cwbot-pill-bot {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.cwbot-pill-user {
    background: rgba(16, 185, 129, 0.15);
    color: #bbf7d0;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.cwbot-pill-system {
    background: rgba(249, 115, 22, 0.15);
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.cwbot-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    width: 100%;
    color: #e5e7eb;
    line-height: 1.45;
}

.cwbot-eval-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px dashed #1f2937;
    border-radius: 12px;
    padding: 1rem;
}

.cwbot-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    width: 72px;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.15));
    color: #e5edff;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid rgba(59, 130, 246, 0.6);
}

.cwbot-rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.cwbot-rubric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem;
}

.cwbot-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    font-size: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}
