/* ===== WHATSAPP MANAGER - MODERN DESIGN ===== */

/* ===== MODAL STYLES ===== */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

.modal-dialog {
    z-index: 1060 !important;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
}

/* Garantir que o modal seja visível */
#deleteConfigModal {
    z-index: 1060 !important;
}

#deleteConfigModal .modal-dialog {
    z-index: 1061 !important;
}

#deleteConfigModal .modal-content {
    z-index: 1062 !important;
}

/* ===== FLOW EDITOR STYLES ===== */
.flow-editor-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== VISUAL FLOW EDITOR STYLES ===== */
.flow-visual-editor-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.flow-editor-header {
    background: var(--surface-bg);
    color: var(--text-primary);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-editor-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.flow-editor-title i {
    margin-right: 12px;
    color: var(--primary-color);
}

.flow-editor-actions {
    display: flex;
    gap: 10px;
}

/* Toolbox de Componentes */
.flow-toolbox {
    background: var(--surface-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

.flow-toolbox-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.flow-toolbox-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.flow-toolbox-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: grab;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.flow-toolbox-item:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.flow-toolbox-item:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.flow-toolbox-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.flow-toolbox-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Canvas do Editor */
.flow-canvas-container {
    height: 500px;
    position: relative;
    background: #f8f9fa;
    background-image: 
        radial-gradient(circle, #e9ecef 1px, transparent 1px);
    background-size: 20px 20px;
    /* Permitir que o usuário arraste para áreas maiores com rolagem */
    overflow: auto;
    z-index: 2;
    /* Otimizações para arraste suave */
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.flow-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Override Drawflow styles */
#drawflow {
    background: transparent !important;
    /* Garante que os conectores fiquem visíveis nas bordas */
    overflow: visible !important;
    position: relative;
    z-index: 3;
}

/* Aparência de somente leitura do editor visual */
#drawflow.readonly, .drawflow.readonly {
    cursor: default !important;
}
.readonly .drawflow-node {
    cursor: default !important;
}

.drawflow .drawflow-node {
    background: var(--card-bg) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    min-width: 150px !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
    overflow: visible !important;
    will-change: transform;
}

.drawflow .drawflow-node:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.2) !important;
    transform: translateY(-2px) !important;
}

.drawflow .drawflow-node.selected {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3) !important;
}

/* Reduzir efeitos visuais durante o arraste para performance */
.drawflow.dragging .drawflow-node {
    transition: none !important;
    box-shadow: none !important;
}

/* Estilos para diferentes tipos de nós */
.drawflow-node.message {
    border-left: 4px solid #28a745 !important;
}

.drawflow-node.condition {
    border-left: 4px solid #ffc107 !important;
}

.drawflow-node.delay {
    border-left: 4px solid #17a2b8 !important;
}

.drawflow-node.media {
    border-left: 4px solid #6f42c1 !important;
}

.drawflow-node.api {
    border-left: 4px solid #fd7e14 !important;
}

.drawflow-node.end {
    border-left: 4px solid #dc3545 !important;
}

/* Conteúdo dos nós */
.drawflow-node .node-content {
    padding: 15px;
    color: var(--text-primary);
}

.drawflow-node .node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.drawflow-node .node-header i {
    color: var(--primary-color);
}

.drawflow-node .node-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.drawflow-node .node-description {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Conectores */
.drawflow .connection .main-path {
    stroke: var(--primary-color) !important;
    stroke-width: 2px !important;
}

.drawflow .connection .main-path:hover {
    stroke: var(--primary-dark) !important;
    stroke-width: 3px !important;
}

.drawflow .connection.selected .main-path {
    stroke: var(--warning-color) !important;
    stroke-width: 3px !important;
}

/* Pontos de conexão */
.drawflow .drawflow-node .input,
.drawflow .drawflow-node .output {
    width: 12px !important;
    height: 12px !important;
    background: var(--primary-color) !important;
    border: 2px solid var(--card-bg) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    z-index: 5 !important;
}

.drawflow .drawflow-node .input:hover,
.drawflow .drawflow-node .output:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.2) !important;
}

/* Painel de Propriedades */
.flow-properties-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.flow-properties-header {
    background: var(--surface-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.flow-properties-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.flow-properties-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

.flow-properties-content {
    padding: 20px;
}

.flow-property-group {
    margin-bottom: 20px;
}

.flow-property-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.flow-property-label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.flow-property-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.flow-property-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.flow-property-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Botões do Editor */
.flow-editor-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flow-editor-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.flow-editor-btn.secondary {
    background: var(--surface-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.flow-editor-btn.secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
    .flow-toolbox-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .flow-toolbox-item {
        padding: 10px 8px;
    }
    
    .flow-toolbox-item i {
        font-size: 1.2rem;
    }
    
    .flow-toolbox-item span {
        font-size: 0.75rem;
    }
    
    .flow-canvas-container {
        height: 400px;
    }
    
    .flow-properties-panel {
        width: 280px;
        right: 10px;
        top: 10px;
    }
    
    .flow-editor-actions {
        flex-wrap: wrap;
        gap: 5px;
    }
}

.flow-editor-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.flow-editor-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flow-editor-header {
    background: var(--surface-bg);
    color: var(--text-primary);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.flow-editor-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.flow-editor-title i {
    margin-right: 12px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.flow-editor-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.flow-editor-actions .btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.flow-editor-actions .btn-outline-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.flow-editor-actions .btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.flow-editor-actions .btn-outline-danger {
    background: transparent;
    border-color: #dc3545;
    color: #dc3545;
}

.flow-editor-actions .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Flow Form Styles */
.flow-form-section {
    padding: 25px;
    background: var(--card-bg);
}

.flow-form-row {
    margin-bottom: 25px;
}

.flow-form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.flow-form-label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.flow-form-input {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
}

.flow-form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    background: var(--input-bg);
    color: var(--text-primary);
}

.flow-form-textarea {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
}

.flow-form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    background: var(--input-bg);
    color: var(--text-primary);
}

/* Wildcard Input Group */
.flow-wildcard-group {
    position: relative;
}

.flow-wildcard-btn {
    border-radius: 0 10px 10px 0;
    border-left: none;
    background: var(--surface-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 12px 16px;
}

.flow-wildcard-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.flow-wildcard-btn.active {
    background: var(--warning-color);
    color: var(--text-primary);
    border-color: var(--warning-color);
}

.flow-wildcard-checkbox {
    margin-top: 12px;
}

.flow-wildcard-checkbox .form-check-input {
    border-radius: 6px;
    border: 2px solid var(--border-color);
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.flow-wildcard-checkbox .form-check-input:checked {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.flow-wildcard-checkbox .form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: 500;
}

.flow-wildcard-checkbox .form-check-label i {
    color: var(--warning-color);
    margin-right: 6px;
}

/* Advanced Settings Accordion */
.flow-advanced-accordion {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.flow-advanced-accordion .accordion-item {
    border: none;
    background: var(--surface-bg);
}

.flow-advanced-accordion .accordion-header {
    margin: 0;
}

.flow-advanced-accordion .accordion-button {
    background: var(--surface-bg);
    border: none;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 0;
    transition: all 0.3s ease;
}

.flow-advanced-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.flow-advanced-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.flow-advanced-accordion .accordion-body {
    padding: 25px;
    background: var(--card-bg);
}

/* Flow Steps Section */
.flow-steps-section {
    margin-top: 25px;
}

.flow-steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--surface-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.flow-steps-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.flow-steps-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.flow-add-step-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.flow-add-step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
    color: white;
}

/* Flow Step Cards */
.flow-step-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.flow-step-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-1px);
}

.flow-step-header {
    background: var(--surface-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.flow-step-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

.flow-step-actions {
    display: flex;
    gap: 8px;
}

.flow-step-remove-btn {
    background: #dc3545;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.flow-step-remove-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: white;
}

.flow-step-body {
    padding: 20px;
    background: var(--card-bg);
}

/* Flow List Styles */
.flow-list-container {
    margin-top: 20px;
}

.flow-list-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.flow-list-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

.flow-list-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.flow-list-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flow-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.flow-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-badge-success {
    background: #28a745;
    color: white;
    border: none;
}

.flow-badge-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.flow-badge-warning {
    background: #ffc107;
    color: #212529;
    border: none;
}

.flow-badge-info {
    background: #17a2b8;
    color: white;
    border: none;
}

.flow-badge-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.flow-list-description {
    color: var(--text-secondary);
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.flow-list-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: var(--surface-bg);
    border-radius: 8px;
}

.flow-detail-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.flow-detail-item i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.flow-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.flow-action-btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.flow-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chatbot tabs styles */
.chatbot-tabs-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}

.chatbot-tabs-content {
    min-height: 200px;
    padding: 0;
}

.chatbot-tab-pane {
    width: 100%;
    padding: 0;
    margin: 0;
}

.chatbot-tabs-header {
    display: flex;
    background: var(--surface-bg);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.chatbot-tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.chatbot-tab-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.chatbot-tab-btn.active {
    background: rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Estilos para os campos de delay */
.delay-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #007bff;
    margin-top: 8px;
}

.delay-controls .form-label-sm {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.delay-controls .input-group-sm .form-control {
    font-size: 0.875rem;
    border-radius: 6px;
}

.delay-controls .input-group-text {
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-color: #ced4da;
    font-weight: 500;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Proxy display styles */
.proxy-display {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}
.mb-2 {
    color:white;
}.mb-0 {
    color:white;
}li{
    color:white;
}.mb-3 {
    color: white !important;
}.small, small {
    color:white !important;
}.mb-4{
    color:white !important;
}.card-text:last-child {
    color: #e3dfdf !important;
}
.btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-link:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.btn-link i {
    font-size: 0.75rem;
}

/* Warmup metrics styles */
.metric-card {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(var(--primary-color-rgb), 0.05) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warmup-active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== ROOT VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-color: #25D366;
    --primary-dark: #128C7E;
    --primary-light: #DCF8C6;
    
    /* Secondary Colors */
    --secondary-color: #075E54;
    --accent-color: #34B7F1;
    --bs-secondary-color : #f5f7f8 !important;
    /* Neutral Colors */
    --dark-bg: #111B21;
    --card-bg: #202C33;
    --surface-bg: #2A3942;
    --text-primary: #E9EDEF;
    --text-secondary: #f5f7f8;
    --text-muted: #667781;
    
    /* Status Colors */
    --success-color: #00A884;
    --warning-color: #FFB800;
    --error-color: #FF3B30;
    --info-color: #007AFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --gradient-dark: linear-gradient(135deg, #111B21 0%, #202C33 100%);
    --gradient-card: linear-gradient(135deg, #2A3942 0%, #202C33 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVBAR ENHANCEMENTS ===== */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}h6{
    color: white !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    left: 20px;
    position: relative;
}

.navbar-brand i {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    right: 42px;
    position: relative;
}

.navbar-text i {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== MAIN LAYOUT ===== */
.container-fluid {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--surface-bg);
    position: fixed;
    left: 0;
    z-index: 1000;
    position: absolute;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    width: calc(100% - 280px);
    min-height: 100vh;
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

/* Correção específica para CRM - forçar exibição das tabs internas */
#crm.tab-content.active {
    display: block !important;
}

#crm .tab-content {
    display: block !important;
}

/* Correção específica para Group Members - forçar exibição das tabs internas */
#group-members .tab-content {
    display: block !important;
}

#group-members .tab-content .tab-pane {
    display: none;
}

#group-members .tab-content .tab-pane.active {
    display: block !important;
}

#crm-tabs-content .tab-pane.active {
    display: block !important;
}

#crm-chats.tab-pane.fade.show.active {
    display: block !important;
}

/* Forçar visibilidade da área de chat */
#crm-chat-container {
    display: block !important;
}

.crm-chat-area {
    display: block !important;
    height: 100% !important;
}

.crm-messages-area {
    display: block !important;
    height: 400px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 16px !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

/* Estilo do scroll verde */
.crm-messages-area::-webkit-scrollbar {
    width: 8px;
}

.crm-messages-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.crm-messages-area::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.crm-messages-area::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

.crm-send-area {
    display: block !important;
    border-top: 1px solid #dee2e6 !important;
    background: white !important;
    padding: 12px 16px !important;
}

/* Estilo das mensagens dentro da área de chat */
.crm-message {
    margin-bottom: 12px !important;
    max-width: 70% !important;
    word-wrap: break-word !important;
}

.crm-message.sent {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.crm-message.received {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.crm-message .message-content {
    padding: 8px 12px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.crm-message.sent .message-content {
    background: #007bff !important;
    color: white !important;
}

.crm-message.received .message-content {
    background: white !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}

.crm-message .message-time {
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 4px !important;
    text-align: right !important;
}

.crm-message.received .message-time {
    text-align: left !important;
}

#crm-no-chat {
    display: flex !important;
}

#crm-chat-container[style*="block"] {
    display: block !important;
}

#crm-no-chat[style*="none"] {
    display: none !important;
}

/* Estilos específicos para as abas files, logs e group-members */
.tab-content#files.active,
.tab-content#logs.active,
.tab-content#group-members.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
    width: 100% !important;
}

#files .card,
#logs .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

#files .card-header,
#logs .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

#files textarea,
#logs textarea {
    resize: vertical;
    min-height: 120px;
}

#logs-container {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

#logs-container .log-entry {
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

#logs-container .log-entry.success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

#logs-container .log-entry.error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

#logs-container .log-entry.warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

#logs-container .log-entry.info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* ===== SIDEBAR ENHANCEMENTS ===== */
.sidebar .card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.sidebar .card-header {
    background: var(--gradient-card);
    border-bottom: 1px solid var(--surface-bg);
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    border-radius: 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--surface-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
}


.card-header {
    background: var(--gradient-card);
    border-bottom: 1px solid var(--surface-bg);
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== NAVIGATION MENU ===== */
.sidebar .list-group {
    border-radius: 0;
    margin: 0;
}

.sidebar .list-group-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.list-group {
    border-radius: 0;
}

.list-group-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition-normal);
}

.list-group-item:hover {
    background: rgba(37, 211, 102, 0.1);
    color: var(--text-primary);
    transform: translateX(8px);
}

.list-group-item:hover::before {
    transform: scaleY(1);
}

.list-group-item.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.list-group-item.active::before {
    transform: scaleY(1);
    background: white;
}

.list-group-item i {
    width: 24px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-card {
    background: var(--gradient-card);
    border: 1px solid var(--surface-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.dashboard-card h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.dashboard-card p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0.5rem 0 0 0;
}

.dashboard-card i {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Status Cards with specific colors */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color), #00A884) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #FFB800) !important;
}

.bg-info {
    background: linear-gradient(135deg, var(--info-color), #007AFF) !important;
}

/* ===== ACCOUNT STATUS ===== */
.account-status {
    background: var(--card-bg);
    border: 1px solid var(--surface-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
    position: relative;
}

.account-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: var(--transition-normal);
}

.account-status.connected::before {
    background: var(--success-color);
}

/* ===== GROUP MEMBERS STATUS SECTION ===== */
/* Fix para a seção de status de adição de membros */
#addition-status {
    min-height: 400px;
}

#addition-status .tab-pane {
    padding: 1rem;
}

/* Status cards na seção de adição de membros */
#addition-status .card {
    margin-bottom: 1rem;
    height: auto;
}

#addition-status .row.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Progress bar na seção de status */
#addition-status .progress {
    margin-bottom: 1.5rem;
}

/* Status alerts */
#addition-status .alert {
    margin-bottom: 1rem;
}

/* Fix para tabs dentro do group members */
#group-members-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

#group-members-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Container da seção de status */
#group-members .col-lg-8 {
    min-height: 600px;
}

#group-members .card-body.p-0 {
    min-height: 500px;
}

/* Fix específico para a aba de status da adição */
#addition-status.tab-pane {
    padding: 1.5rem !important;
}

/* Status cards em linha mais compacta */
#addition-status .row.mb-4 .col-md-2 {
    padding: 0.5rem;
}

#addition-status .row.mb-4 .card {
    margin-bottom: 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#addition-status .row.mb-4 .card-body {
    padding: 0.75rem;
    text-align: center;
}

#addition-status .row.mb-4 .card-body h4 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

#addition-status .row.mb-4 .card-body small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Progress bar mais compacta */
#addition-status .progress {
    height: 8px;
    margin-bottom: 1rem;
}

/* Status alerts mais compactos */
#addition-status .alert {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

/* Fix para o layout geral da seção */
#group-members .row {
    align-items: flex-start;
}

#group-members .col-lg-4 {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

/* Fix adicional para garantir que a aba de status seja exibida corretamente */
#addition-status {
    position: relative;
    top: 0;
    padding-top: 0 !important;
}

/* Remover espaçamento excessivo do tab-content */
#group-members .tab-content {
    padding: 0;
    margin: 0;
}

/* Garantir que os status cards apareçam no topo */
#addition-status .row.mb-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix para o card header das tabs */
#group-members-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid var(--surface-bg);
}

/* Fix para o preview de membros que empurra o conteúdo para baixo */
#members-preview {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

#members-preview .bg-light {
    max-height: 180px;
    overflow-y: auto;
}

/* Garantir que a aba de status não seja afetada pelo preview */
#addition-status {
    position: relative;
    z-index: 10;
}

/* Fix para o layout quando preview está ativo */
#members-list.active ~ #addition-status {
    margin-top: 0 !important;
}

/* Garantir que as abas tenham altura fixa para evitar mudanças de layout */
#group-members .tab-content {
    min-height: 400px;
    position: relative;
}

/* Fix para evitar que o conteúdo da aba members-list afete outras abas */
#members-list {
    overflow-y: auto;
    max-height: 500px;
}

/* Garantir que a aba de status mantenha posição fixa */
#addition-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    #addition-status .row.mb-4 .col-md-2 {
        margin-bottom: 1rem;
    }
    
    #addition-status .row.mb-4 .card {
        height: 80px;
    }
    
    #addition-status .row.mb-4 .card-body h4 {
        font-size: 1.25rem;
    }
}

.account-status.disconnected::before {
    background: var(--error-color);
}

.account-status.connecting::before {
    background: var(--warning-color);
    animation: pulse-status 1.5s infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.account-status:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    position: relative;
}

.status-indicator.connected {
    background: var(--success-color);
    box-shadow: 0 0 0 4px rgba(0, 168, 132, 0.2);
}

.status-indicator.disconnected {
    background: var(--error-color);
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.2);
}

.status-indicator.connecting {
    background: var(--warning-color);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ===== FORMS ===== */
.form-control,
.form-select {
    background: var(--surface-bg);
    border: 1px solid var(--surface-bg);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus {
    background: var(--surface-bg);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition-normal);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #00A884);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #FFB800);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error-color), #FF3B30);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--surface-bg);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--surface-bg);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== LOGS CONTAINER ===== */
.logs-container {
    background: #0D1117;
    border: 1px solid #21262D;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 500px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.log-timestamp {
    color: #7D8590;
    margin-right: 1rem;
    font-weight: 500;
}

.log-level {
    font-weight: 600;
    margin-right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-level.info {
    color: #58A6FF;
    background: rgba(88, 166, 255, 0.1);
}

.log-level.success {
    color: #3FB950;
    background: rgba(63, 185, 80, 0.1);
}

.log-level.warning {
    color: #D29922;
    background: rgba(210, 153, 34, 0.1);
}

.log-level.error {
    color: #F85149;
    background: rgba(248, 81, 73, 0.1);
}

.log-message {
    color: #E6EDF3;
}

/* ===== QR CODE MODAL ===== */
#qrCodeContainer {
    padding: 2rem;
    text-align: center;
}

.qr-code-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-lg);
}

.qr-code-container #qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== MODALS ===== */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--surface-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--gradient-card);
    border-bottom: 1px solid var(--surface-bg);
    color: var(--text-primary);
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-primary);
}

.btn-close {
    filter: invert(1);
}

/* ===== ACCOUNT ITEMS ===== */
.account-item {
    background: var(--card-bg);
    border: 1px solid var(--surface-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
    position: relative;
}

.account-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: var(--transition-normal);
}

.account-item.connected::before {
    background: var(--success-color);
}

.account-item.disconnected::before {
    background: var(--error-color);
}

.account-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.account-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    color: #58A6FF;
    border-left-color: #58A6FF;
}

.alert-success {
    background: #111b21;
    color: #3FB950;
    border-left-color: #3FB950;
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    color: #D29922;
    border-left-color: #D29922;
}

.alert-danger {
    background: rgba(248, 81, 73, 0.1);
    color: #F85149;
    border-left-color: #F85149;
}

/* ===== PROGRESS BARS ===== */
.progress {
    height: 8px;
    background: var(--surface-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

/* Barra de progresso específica para adição de membros */
#progress-bar {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
    min-width: 0%;
    max-width: 100%;
}

#progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 33%, rgba(255,255,255,0.3) 33%, rgba(255,255,255,0.3) 66%, transparent 66%);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

#progress-percentage {
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-danger {
    background: var(--error-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
}

.badge.bg-info {
    background: var(--info-color) !important;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border {
    color: var(--primary-color);
}

/* ===== SCROLLBARS ===== */
.logs-container::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track {
    background: #21262D;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: #7D8590;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.toast {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .dashboard-card h4 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .dashboard-card h4 {
        font-size: 1.8rem;
    }
    
    .list-group-item {
        padding: 0.75rem 1rem;
    }
    
    .account-status,
    .account-item {
        padding: 1rem;
    }
    
    .logs-container {
        height: 300px;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .dashboard-card h4 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== DARK MODE ENHANCEMENTS ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0D1117;
        --card-bg: #161B22;
        --surface-bg: #21262D;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    .modal {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Progress Container - Design Moderno */
#progress-container {
    margin-bottom: 2rem;
}

#progress-container .card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    animation: progressPulse 2s infinite;
    overflow: hidden;
    position: relative;
}

#progress-container .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

/* Header do Progress */
#progress-container .card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Layout do Progress */
.progress-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.progress-text-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-text-content p {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Progress Bar Container */
.progress-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 200px;
}

.progress-bar-container {
    width: 220px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

#progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s infinite;
}

#progress-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    min-width: 45px;
    text-align: center;
}

/* Botão de Pausar/Retomar - Design Premium */
#pause-resume-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#pause-resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#pause-resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #ffca2c 0%, #ff9800 100%);
}

#pause-resume-btn:hover::before {
    left: 100%;
}

#pause-resume-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

#pause-resume-btn i {
    font-size: 1.2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .progress-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .progress-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .progress-visual {
        align-items: center;
    }
    
    .progress-bar-container {
        width: 180px;
    }
    
    #progress-container .card-body {
        padding: 1.5rem;
    }
    
    #pause-resume-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Animações */
@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(40, 167, 69, 0.5);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Proxy Management Styles */
#proxyList {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    min-height: 200px;
}

.proxy-stats-card {
    transition: transform 0.2s ease;
}

.proxy-stats-card:hover {
    transform: translateY(-2px);
}

#proxy-performance-table {
    font-size: 0.85rem;
}

#proxy-performance-table code {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

#proxy-performance-table .badge {
    font-size: 0.7rem;
}

.proxy-test-spinner {
    width: 1rem;
    height: 1rem;
}

.log-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.log-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.log-time {
    color: #6c757d;
    font-weight: 500;
    margin-right: 0.5rem;
}

.log-success {
    color: #198754;
}

.log-error {
    color: #dc3545;
}

.log-warning {
    color: #fd7e14;
}

.log-info {
    color: #0d6efd;
}

/* Progress bar para teste de proxies */
#proxy-test-progress {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    transition: width 0.3s ease;
}

/* Botão de parar teste */
#stop-proxy-test-btn {
    transition: all 0.2s ease;
    min-width: 100px;
}

#stop-proxy-test-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

#stop-proxy-test-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments for proxy section */
@media (max-width: 768px) {
    #proxyList {
        min-height: 150px;
        font-size: 0.8rem;
    }
    
    #proxy-performance-table {
        font-size: 0.75rem;
    }
    
    #proxy-performance-table code {
        font-size: 0.7rem;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Counter update animation */
.counter-update {
    animation: counterBounce 0.5s ease-in-out;
}

@keyframes counterBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00FF00;
        --text-primary: #FFFFFF;
        --text-secondary: #CCCCCC;
        --card-bg: #000000;
        --surface-bg: #333333;
    }
}

/* ===== CRM STYLES ===== */
.crm-sidebar {
    height: 600px;
    overflow-y: auto;
    background: var(--surface-bg);
}

.crm-tabs .nav-tabs {
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.crm-tabs .nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    border-radius: 0;
    padding: 12px 16px;
    font-size: 14px;
}

.crm-tabs .nav-tabs .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.crm-tabs .nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-bottom: 2px solid var(--primary-color);
}

.crm-list {
    max-height: 500px;
    min-height: 100px;
    overflow-y: auto;
    background: transparent;
    width: 100%;
    display: block !important;
}

/* Forçar visibilidade específica das listas CRM */
#crm-chats-list,
#crm-groups-list,
#crm-contacts-list {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.crm-chat-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    cursor: pointer !important;
    width: 100% !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
}

/* Removido - agora está definido acima com !important */

.crm-chat-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.crm-chat-item.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-left: 3px solid var(--primary-color);
}

.crm-chat-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.crm-chat-item .chat-info {
    flex: 1;
    min-width: 0;
}

.crm-chat-item .chat-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-chat-item .last-message {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-chat-item .chat-meta {
    text-align: right;
    min-width: fit-content;
}

.crm-chat-item .message-time {
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 4px;
}

.crm-chat-item .unread-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-chat-area {
    height: 600px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
}

.crm-chat-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-bg);
}

.crm-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

.crm-message {
    max-width: 70%;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.crm-message.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.crm-message.received {
    align-self: flex-start;
    align-items: flex-start;
}

.crm-message-bubble {
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 100%;
    word-wrap: break-word;
    position: relative;
}

.crm-message.sent .crm-message-bubble {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.crm-message.received .crm-message-bubble {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.crm-message-info {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.crm-message.sent .crm-message-info {
    justify-content: flex-end;
}

.crm-message-status {
    display: flex;
    align-items: center;
}

.crm-message-status.read {
    color: #34a853;
}

.crm-message-status.delivered {
    color: #9aa0a6;
}

.crm-message-media {
    max-width: 300px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.crm-message-media img,
.crm-message-media video {
    width: 100%;
    border-radius: 8px;
}

.crm-send-area {
    border-top: 1px solid var(--border-color);
    background: var(--surface-bg);
}

#crm-message-input {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
}

#crm-message-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.crm-contact-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.crm-contact-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.crm-contact-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.crm-contact-item .contact-info {
    flex: 1;
}

.crm-contact-item .contact-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.crm-contact-item .contact-number {
    color: var(--text-secondary);
    font-size: 13px;
}

.crm-group-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.crm-group-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.crm-group-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.crm-group-item .group-info {
    flex: 1;
}

.crm-group-item .group-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.crm-group-item .group-participants {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Scrollbar personalizada para o CRM */
.crm-sidebar::-webkit-scrollbar,
.crm-list::-webkit-scrollbar,
.crm-messages-area::-webkit-scrollbar {
    width: 6px;
}

.crm-sidebar::-webkit-scrollbar-track,
.crm-list::-webkit-scrollbar-track,
.crm-messages-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.crm-sidebar::-webkit-scrollbar-thumb,
.crm-list::-webkit-scrollbar-thumb,
.crm-messages-area::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 3px;
}

.crm-sidebar::-webkit-scrollbar-thumb:hover,
.crm-list::-webkit-scrollbar-thumb:hover,
.crm-messages-area::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.5);
}

/* Estados especiais do CRM */
.crm-typing-indicator {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 8px 0;
}

.crm-typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.crm-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingDots 1.4s infinite;
}

.crm-typing-dots span:nth-child(1) { animation-delay: 0s; }
.crm-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.crm-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Responsividade do CRM */
@media (max-width: 768px) {
    .crm-sidebar {
        height: 400px;
    }
    
    .crm-chat-area {
        height: 400px;
    }
    
    .crm-message {
        max-width: 85%;
    }
}

/* ===== USER PROFILE IN SIDEBAR ===== */
.user-profile-container {
    padding: 1rem;
    border-bottom: 1px solid var(--surface-bg);
    margin-bottom: 0.5rem;
}

.user-profile-card {
    background: var(--surface-bg);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-card:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-tenant {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions {
    flex-shrink: 0;
}

.logout-btn {
    background: transparent !important;
    border: 1px solid var(--error-color) !important;
    color: var(--error-color) !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-size: 0.8rem !important;
}

.logout-btn:hover {
    background: var(--error-color) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

.logout-btn:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Responsividade para o perfil do usuário */
@media (max-width: 768px) {
    .user-profile-container {
        padding: 0.75rem;
    }
    
    .user-profile-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-tenant {
        font-size: 0.75rem;
    }
    
    .logout-btn {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
}