/**
 * MhSys SaaS - Customer Support, Tickets & Commercial Chat Stylesheet
 * Modificado: 2026-08-22 20:52:00
 */


/* ========================================================
   SUPORTE: SUPORTE_INDEX (BLOCK 1)
   ======================================================== */
:root {
            --bg-dark: #f8fafc; /* bg-slate-50 */
            --bg-card: #ffffff; /* branco puro */
            --primary: #4f46e5; /* indigo-600 */
            --primary-hover: #4338ca; /* indigo-700 */
            --accent: #4f46e5;
            --accent-hover: #4338ca;
            --accent-glow: rgba(79, 70, 229, 0.15);
            --border: #f1f5f9; /* border-slate-100 */
            --text-light: #0f172a; /* slate-900 */
            --text-muted: #475569; /* slate-600 */
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-light);
            min-height: 100vh;
        }

        .header {
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 18px 0;
        }

        .logo {
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            font-weight: 900;
            color: #0f172a;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo span {
            color: var(--accent);
        }

        .logo img {
            max-height: 38px;
            width: auto;
        }

        .card-premium-glass {
            background: #ffffff;
            border: 1px solid #f1f5f9;
            border-radius: 20px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
            padding: 40px;
            transition: var(--transition);
        }

        .card-premium-glass:hover {
            border-color: #e2e8f0;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .nav-tabs-custom {
            border-bottom: 1px solid #cbd5e1;
            margin-bottom: 30px;
            gap: 15px;
        }

        .nav-tabs-custom .nav-link {
            color: var(--text-muted);
            border: none;
            background: none;
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            font-size: 1.1rem;
            padding: 12px 20px;
            position: relative;
            transition: var(--transition);
        }

        .nav-tabs-custom .nav-link:hover {
            color: var(--accent);
        }

        .nav-tabs-custom .nav-link.active {
            color: #0f172a;
            background: none;
        }

        .nav-tabs-custom .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--primary);
            border-radius: 99px;
        }

        .form-control, .form-select {
            background-color: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            color: var(--text-light) !important;
            border-radius: 10px !important;
            padding: 12px 16px !important;
            transition: var(--transition) !important;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 3px var(--accent-glow) !important;
            outline: none !important;
        }

        .form-label {
            font-weight: 500;
            color: #334155;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .btn-premium {
            background: #4f46e5;
            color: #ffffff !important;
            font-weight: 700;
            padding: 14px 30px;
            border-radius: 50px;
            border: none;
            box-shadow: 0 4px 14px var(--accent-glow);
            transition: var(--transition);
        }

        .btn-premium:hover {
            background-color: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
            color: #ffffff !important;
        }

        .btn-outline-custom {
            background: transparent;
            border: 1px solid #cbd5e1;
            color: #334155;
            font-weight: 600;
            padding: 14px 30px;
            border-radius: 50px;
            transition: var(--transition);
        }

        .btn-outline-custom:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(79, 70, 229, 0.05);
        }

        .ticket-list-item {
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #f8fafc;
            padding: 20px;
            margin-bottom: 15px;
            transition: var(--transition);
        }

        .ticket-list-item:hover {
            border-color: #cbd5e1;
            background: #f1f5f9;
            transform: scale(1.01);
        }

        .status-badge {
            font-weight: 600;
            font-size: 0.8rem;
            padding: 5px 12px;
            border-radius: 50px;
            display: inline-block;
            text-transform: uppercase;
        }

        .footer {
            border-top: 1px solid #cbd5e1;
            background: #ffffff;
            padding: 30px 0;
            margin-top: 80px;
            color: #64748b;
            font-size: 0.9rem;
        }

        /* Wizard Stepper Premium Styling */
        .wizard-step {
            transition: var(--transition);
        }
        .wizard-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 30px;
            cursor: pointer;
            transition: var(--transition);
            text-align: left;
            height: 100%;
            display: flex;
            flex-direction: column;
            gap: 15px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
        }
        .wizard-card:hover {
            border-color: var(--primary);
            background: rgba(79, 70, 229, 0.02);
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08);
        }
        .wizard-icon {
            font-size: 2.5rem;
            color: var(--primary);
            transition: var(--transition);
        }
        .wizard-card:hover .wizard-icon {
            transform: scale(1.1);
        }
        .step-indicator {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1px;
        }
        .faq-accordion .accordion-item {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 10px !important;
            margin-bottom: 10px;
            overflow: hidden;
        }
        .faq-accordion .accordion-button {
            background: transparent !important;
            color: #0f172a !important;
            border: none !important;
            font-weight: 600;
        }
        .faq-accordion .accordion-button:not(.collapsed) {
            color: var(--primary) !important;
            box-shadow: none !important;
        }
        .faq-accordion .accordion-body {
            color: #475569;
            border-top: 1px solid #e2e8f0;
            background: #f8fafc;
        }

/* ========================================================
   SUPORTE: SUPORTE_DETAIL (BLOCK 1)
   ======================================================== */
:root {
            --bg-dark: #f8fafc; /* bg-slate-50 */
            --bg-card: #ffffff; /* branco puro */
            --primary: #4f46e5; /* indigo-600 */
            --primary-hover: #4338ca; /* indigo-700 */
            --accent: #4f46e5;
            --accent-hover: #4338ca;
            --accent-glow: rgba(79, 70, 229, 0.15);
            --border: #f1f5f9; /* border-slate-100 */
            --text-light: #0f172a; /* slate-900 */
            --text-muted: #475569; /* slate-600 */
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-light);
            min-height: 100vh;
        }

        .header {
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 18px 0;
        }

        .logo {
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            font-weight: 900;
            color: #0f172a;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo span {
            color: var(--accent);
        }

        .logo img {
            max-height: 38px;
            width: auto;
        }

        .card-premium-glass {
            background: #ffffff;
            border: 1px solid #f1f5f9;
            border-radius: 20px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
            padding: 40px;
        }

        .form-control {
            background-color: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            color: var(--text-light) !important;
            border-radius: 10px !important;
            padding: 12px 16px !important;
            transition: var(--transition) !important;
        }

        .form-control:focus {
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 3px var(--accent-glow) !important;
            outline: none !important;
        }

        .btn-premium {
            background: #4f46e5;
            color: #ffffff !important;
            font-weight: 700;
            padding: 14px 30px;
            border-radius: 50px;
            border: none;
            box-shadow: 0 4px 14px var(--accent-glow);
            transition: var(--transition);
        }

        .btn-premium:hover {
            background-color: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
            color: #ffffff !important;
        }

        .btn-outline-custom {
            background: transparent;
            border: 1px solid #cbd5e1;
            color: #334155;
            font-weight: 600;
            padding: 12px 24px;
            border-radius: 50px;
            transition: var(--transition);
        }

        .btn-outline-custom:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(79, 70, 229, 0.05);
        }

        /* Status Badges */
        .status-badge {
            font-weight: 700;
            font-size: 0.85rem;
            padding: 6px 14px;
            border-radius: 50px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Timeline de Interações */
        .timeline {
            position: relative;
            padding-left: 30px;
            margin: 40px 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 9px;
            top: 5px;
            bottom: 5px;
            width: 2px;
            background: #e2e8f0;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 30px;
        }

        .timeline-marker {
            position: absolute;
            left: -30px;
            top: 2px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ffffff;
            border: 3px solid var(--primary);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .timeline-marker.client {
            border-color: #10b981;
        }

        .timeline-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            transition: var(--transition);
        }

        .timeline-card:hover {
            border-color: #cbd5e1;
            background: #f1f5f9;
        }

        .avatar-initial {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #e0e7ff;
            color: var(--primary);
            font-weight: 700;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        }

        .footer {
            border-top: 1px solid #cbd5e1;
            background: #ffffff;
            padding: 30px 0;
            margin-top: 80px;
            color: #64748b;
            font-size: 0.9rem;
        }

/* ========================================================
   SUPORTE: SUPORTE_DETAIL (BLOCK 2)
   ======================================================== */
/* CSS para o seletor de estrelas interativo */
    .star-rating label {
        transition: color 0.15s ease-in-out, transform 0.15s ease-in-out;
    }
    .star-rating label:hover,
    .star-rating label:hover ~ label,
    .star-rating input:checked ~ label {
        color: #ffc107 !important;
    }
    .star-rating label:active {
        transform: scale(0.9);
    }

/* ========================================================
   SUPORTE: CHAT_COMERCIAL (BLOCK 1)
   ======================================================== */
.lead-item {
        padding: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        cursor: pointer;
        transition: background 0.2s, border-left 0.2s;
        display: flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border-left: 4px solid transparent;
        text-align: left;
    }
    .lead-item:hover {
        background: #f1f5f9;
    }
    .lead-item.active {
        background: #e0f2fe;
        border-left-color: #0284c7;
    }
    .lead-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 14px;
        flex-shrink: 0;
    }
    .lead-meta {
        flex-grow: 1;
        min-width: 0;
    }
    .lead-name {
        font-weight: 700;
        color: #1e293b;
        font-size: 13.5px;
        margin-bottom: 2px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .lead-text {
        font-size: 12px;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .lead-time {
        font-size: 10px;
        color: #94a3b8;
        font-weight: 500;
    }
    
    .msg-bubble {
        max-width: 70%;
        padding: 10px 14px;
        border-radius: 16px;
        font-size: 13.5px;
        line-height: 1.5;
        word-wrap: break-word;
    }
    .msg-bubble.visitante {
        align-self: flex-start;
        background: #fff;
        color: #1e293b;
        border: 1px solid rgba(0,0,0,0.08);
        border-bottom-left-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    .msg-bubble.operador {
        align-self: flex-end;
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        color: #fff;
        border-bottom-right-radius: 4px;
        box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
    }
    
    /* Dark Mode Styling overrides */
    body.dark-mode .chat-container {
        background: #0f172a !important;
        border-color: rgba(255,255,255,0.08) !important;
    }
    body.dark-mode .chat-users-list {
        background: #1e293b !important;
        border-right-color: rgba(255,255,255,0.08) !important;
    }
    body.dark-mode .chat-users-list .bg-white {
        background: #0f172a !important;
        border-bottom-color: rgba(255,255,255,0.08) !important;
    }
    body.dark-mode .lead-item {
        background: #1e293b !important;
        border-bottom-color: rgba(255,255,255,0.05) !important;
    }
    body.dark-mode .lead-item:hover {
        background: #334155 !important;
    }
    body.dark-mode .lead-item.active {
        background: #0c4a6e !important;
    }
    body.dark-mode .lead-name {
        color: #f1f5f9;
    }
    body.dark-mode .lead-text {
        color: #94a3b8;
    }
    body.dark-mode .chat-messages-area {
        background: #0f172a !important;
    }
    body.dark-mode .chat-messages-area .bg-white {
        background: #0f172a !important;
        border-bottom-color: rgba(255,255,255,0.08) !important;
    }
    body.dark-mode .chat-messages-log {
        background: #090d16 !important;
    }
    body.dark-mode .msg-bubble.visitante {
        background: #1e293b;
        color: #e2e8f0;
        border-color: rgba(255,255,255,0.05);
    }
    body.dark-mode .chat-input-area-wrapper {
        background: #0f172a !important;
        border-top-color: rgba(255,255,255,0.08) !important;
    }
/* ========================================================
   SUPORTE: SUPORTE_FLUXO (BLOCK 1)
   ======================================================== */
/* Estilização para o Modal Diagrama */
    .flow-node-card {
        transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    }
    .flow-node-card:hover {
        transform: translateY(-5px) scale(1.03);
        background: rgba(49, 46, 129, 0.6) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
    .flow-node-card.dragging {
        opacity: 0.4;
        transform: scale(0.95);
        border: 2px dashed rgba(255, 255, 255, 0.3) !important;
        box-shadow: none !important;
    }
    .flow-node-wrapper.drag-over {
        border-radius: 14px;
        background: rgba(99, 102, 241, 0.12);
        padding: 5px 10px;
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    /* Conector de Seta Animado */
    .connector-arrow-line {
        stroke-dasharray: 6;
        animation: strokePulse 15s linear infinite;
        filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.5));
    }
    
    @keyframes strokePulse {
        to {
            stroke-dashoffset: -120;
        }
    }
    
    /* Scroll Premium para o Diagrama */
    .scroll-premium::-webkit-scrollbar {
        height: 8px;
    }
    .scroll-premium::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.03);
        border-radius: 10px;
    }
    .scroll-premium::-webkit-scrollbar-thumb {
        background: rgba(99, 102, 241, 0.3);
        border-radius: 10px;
    }
    .scroll-premium::-webkit-scrollbar-thumb:hover {
        background: rgba(99, 102, 241, 0.5);
    }

/* ========================================================
   SUPORTE: SUPORTE_FLUXO (BLOCK 2)
   ======================================================== */
');
    win.document.write('body { background: #0f0f1d; color: #fff; padding: 40px; font-family: sans-serif; }');
    win.document.write('.flow-node-card { background: rgba(30, 27, 75, 0.9) !important; border-radius: 12px; border-left-width: 5px !important; margin-bottom: 20px; }');
    win.document.write('.connector-arrow-line { stroke-width: 3px; }');
    win.document.write('

/* ========================================================
   SUPORTE: SUPORTE_CHAMADOS (BLOCK 1)
   ======================================================== */
@keyframes slideUpBulk {
        from { transform: translate(-50%, 50px); opacity: 0; }
        to { transform: translate(-50%, 0); opacity: 1; }
    }

/* ========================================================
   SUPORTE: SUPORTE_DASHBOARD (BLOCK 1)
   ======================================================== */
.text-indigo {
        color: hsl(243, 75%, 59%) !important;
    }
    .btn-indigo {
        background-color: hsl(243, 75%, 59%) !important;
        border-color: hsl(243, 75%, 59%) !important;
        color: #fff !important;
    }
    .btn-indigo:hover {
        background-color: hsl(243, 75%, 52%) !important;
        border-color: hsl(243, 75%, 52%) !important;
    }
    .btn-outline-indigo {
        color: hsl(243, 75%, 59%) !important;
        border-color: hsl(243, 75%, 59%) !important;
        background-color: transparent;
    }
    .btn-outline-indigo:hover {
        color: #fff !important;
        background-color: hsl(243, 75%, 59%) !important;
    }
    .bg-slate-50 {
        background-color: #f8fafc !important;
    }
    .status-select {
        cursor: pointer;
        width: 100%;
        max-width: 180px;
        transition: all 0.2s ease-in-out;
    }
    .status-select:focus {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
        background-color: #fff !important;
        border-color: hsl(243, 75%, 59%) !important;
    }