/* WebMCP Controller HUD Styles */

#webmcp-hud-container {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 340px;
    max-height: 90vh;
    background: rgba(18, 24, 38, 0.92);
    border: 1px solid rgba(66, 133, 244, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

#webmcp-hud-container.minimized {
    width: 220px;
    max-height: 46px;
    overflow: hidden;
}

.webmcp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(26, 35, 54, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
}

.webmcp-title {
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
}

.webmcp-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webmcp-btn-icon {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
}
.webmcp-btn-icon:hover {
    color: #ffffff;
}

.webmcp-body {
    padding: 12px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.webmcp-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.webmcp-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.webmcp-autopilot-btn {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    background: #3b82f6;
    color: white;
}

.webmcp-autopilot-btn:hover {
    background: #2563eb;
}

.webmcp-autopilot-btn.running {
    background: #ef4444;
}
.webmcp-autopilot-btn.running:hover {
    background: #dc2626;
}

.webmcp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.webmcp-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    width: 100%;
}

.webmcp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.webmcp-stat-item {
    display: flex;
    flex-direction: column;
}

.webmcp-stat-label {
    font-size: 10px;
    color: #94a3b8;
}

.webmcp-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #38bdf8;
}

.webmcp-log-container {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 6px 8px;
    height: 120px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    flex-direction: column-reverse;
}

.webmcp-log-entry {
    margin-bottom: 4px;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 2px;
}

.webmcp-log-time {
    color: #64748b;
}

.webmcp-log-tool {
    color: #38bdf8;
    font-weight: bold;
}

.webmcp-manual-run {
    display: flex;
    gap: 6px;
}

.webmcp-btn-small {
    background: #334155;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.webmcp-btn-small:hover {
    background: #475569;
}

.webmcp-hint {
    font-size: 10px;
    color: #64748b;
    line-height: 1.3;
}
