/* ==========================================================================
   PCLAR Suporte Remoto - Widget Styles
   ========================================================================== */

:root {
    --pclar-primary: #00d2ff;
    --pclar-primary-dark: #0072ff;
    --pclar-accent: #00ff88;
    --pclar-bg-dark: #0c1017;
    --pclar-card-bg: rgba(18, 24, 38, 0.95);
    --pclar-border: rgba(0, 210, 255, 0.25);
    --pclar-text: #f0f6fc;
    --pclar-text-muted: #8b949e;
}

/* Floating Trigger Button */
.pclar-support-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0072ff 0%, #00d2ff 100%);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 114, 255, 0.4), 0 0 16px rgba(0, 210, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.pclar-support-trigger:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 114, 255, 0.55), 0 0 24px rgba(0, 210, 255, 0.4);
}

.pclar-support-trigger:active {
    transform: translateY(0) scale(0.98);
}

.pclar-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.pclar-pulse-dot {
    position: absolute;
    top: 4px;
    left: 14px;
    width: 8px;
    height: 8px;
    background-color: var(--pclar-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--pclar-accent);
    animation: pclar-pulse 2s infinite;
}

@keyframes pclar-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Modal Overlay */
.pclar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.pclar-modal-overlay.pclar-active {
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog Card */
.pclar-modal-card {
    background: var(--pclar-card-bg);
    border: 1px solid var(--pclar-border);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 28px;
    color: var(--pclar-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 210, 255, 0.15);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.pclar-modal-overlay.pclar-active .pclar-modal-card {
    transform: scale(1) translateY(0);
}

.pclar-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--pclar-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pclar-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.pclar-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pclar-header-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.2), rgba(0, 210, 255, 0.2));
    border: 1px solid rgba(0, 210, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pclar-primary);
}

.pclar-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.pclar-modal-subtitle {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: var(--pclar-text-muted);
}

.pclar-modal-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--pclar-primary);
}

.pclar-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pclar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pclar-btn-primary {
    background: linear-gradient(135deg, #0072ff 0%, #00d2ff 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.35);
}

.pclar-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.5);
    filter: brightness(1.08);
}

.pclar-btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pclar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    border-color: rgba(0, 210, 255, 0.3);
}

.pclar-btn-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.pclar-btn-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.pclar-modal-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--pclar-text-muted);
}

/* Responsiveness */
@media (max-width: 640px) {
    .pclar-support-trigger {
        bottom: 20px;
        left: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .pclar-modal-card {
        padding: 22px 18px;
    }
}

/* ==========================================================================
   Ajuste Cirúrgico: Redução Vertical da Caixa de Diagnóstico (Hero Card)
   ========================================================================== */
.hero-card.card-main {
    padding: 12px 16px !important;
}

.hero-card.card-main .card-header {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
}

.hero-card.card-main .code-line {
    padding: 2px 0 !important;
}

.hero-card.card-main .progress-bar {
    margin-top: 8px !important;
}


