.input-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-range .range-sep {
    color: #666;
    font-size: 0.95em;
    white-space: nowrap;
}

.input-range .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4154f1;
    font-weight: 600;
    font-size: 12px;
    cursor: default;
    border: 1px solid #d9e0ff;
}

/* Estilos para badges de tipo de exceção */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #374151;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.panel-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

/* Header */
.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.panel-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Tabs Navigation */
.tabs-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0 20px;
    overflow-x: hidden;
    white-space: nowrap;
    position: sticky;
    top: 68px;
    z-index: 99;
    margin: 0;
    display: flex;
    align-items: center;
}

.tabs-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-nav-btn {
    background: rgba(102, 126, 234, 0.6);
    border: none;
    color: #667eea;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.tab-nav-btn:hover {
    background: rgba(102, 126, 234, 0.8);
    color: #5a6fd8;
}

.tab-nav-btn.prev {
    left: 5px;
    color: #000000;
}

.tab-nav-btn.next {
    right: 5px;
    color: #000000;
}

.tab-nav-btn.visible {
    display: flex;
}

.tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.tabs-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tabs-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Tab Content */
.tab-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: none; /* ocupar toda a largura disponível */
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-edit {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: #138496;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e9ecef;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.status-active {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-inactive {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.inactive {
    background: #6c757d;
    color: white;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.modal-actions {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Modal action buttons - High specificity to override other styles */
.modal .modal-actions .btn-primary,
.modal .modal-actions .btn-secondary {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 90px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.modal .modal-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    border: 2px solid transparent !important;
}

.modal .modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-3px) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.modal .modal-actions .btn-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.modal .modal-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    color: #212529 !important;
    border-color: #adb5bd !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Modal form styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form .form-group {
    margin: 0;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.modal-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.modal-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.modal-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Action buttons */
.btn-edit, .btn-delete {
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-edit {
    color: #17a2b8;
}

.btn-edit:hover {
    background: #17a2b8;
    color: white;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
}

/* Message styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #28a745;
}

.message.error {
    background: #dc3545;
}

.message.info {
    background: #17a2b8;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .panel-container {
        margin: 0;
        border-radius: 0;
    }

    .panel-header {
        min-height: auto;
        padding: 15px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }
    
    .panel-header h1 {
        flex: none;
        font-size: 20px;
    }
    
    .back-btn {
        align-self: center;
    }

    .tabs-nav {
        padding: 10px;
        gap: 8px;
    }
    
    .tab-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .tab-content {
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .panel-header {
        padding: 12px 15px;
    }
    
    .panel-header h1 {
        font-size: 18px;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .tabs-nav {
        gap: 5px;
    }
    
    .tab-nav-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .tab-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .data-table {
        font-size: 11px;
    }

    .modal-content {
        width: 98%;
        margin: 5px;
        max-height: 95vh;
        max-width: none;
    }
    
    .modal-body {
        padding: 15px;
        max-height: calc(95vh - 120px);
        overflow-y: auto;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
        flex-shrink: 0;
    }
    
    .modal .modal-actions .btn-primary,
    .modal .modal-actions .btn-secondary {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        min-width: auto !important;
    }

    .message {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* ===== Futuristic Dark/Glassmorphism Overrides ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: radial-gradient(1200px 800px at 10% 10%, rgba(0,160,255,0.08), rgba(0,0,0,0)) ,
                radial-gradient(1200px 800px at 90% 10%, rgba(0,160,255,0.06), rgba(0,0,0,0)) ,
                #0e0e10;
    color: #e5e7eb;
}

.panel-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    background: linear-gradient(180deg, rgba(30,30,30,0.85), rgba(30,30,30,0.6));
    border-right: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: #e5e7eb; margin-bottom: 18px; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: 0.4px; }
.brand-icon { color: #00A0FF; }

.sidebar-nav { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 20px 0; }
.sidebar .tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 12px;
    border-radius: 10px;
    color: #d1d5db;
    transition: all 0.25s ease;
    border-bottom: none;
}
.sidebar .tab-btn:hover {
    background: rgba(0,160,255,0.08);
    border-color: rgba(0,160,255,0.35);
    color: #eaf6ff;
    box-shadow: 0 6px 16px rgba(0,160,255,0.12);
}
.sidebar .tab-btn.active {
    background: linear-gradient(135deg, rgba(0,160,255,0.2), rgba(0,160,255,0.08));
    border-color: rgba(0,160,255,0.5);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0,160,255,0.2);
}

.main-content { display: flex; flex-direction: column; }

/* Header */
.panel-header {
    background: transparent;
    color: #f3f4f6;
    padding: 24px 28px 10px 28px;
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 68px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}
.panel-header h1 { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 0.3px; }

.back-btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(135deg, rgba(0,160,255,0.14), rgba(0,160,255,0.06));
    border: 1px solid rgba(0,160,255,0.35);
    color: #e6f6ff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,160,255,0.15);
}

/* WhatsApp status pill with icon, text and gear */
.wa-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 10px 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(0,160,255,0.35);
    background: linear-gradient(135deg, rgba(0,160,255,0.14), rgba(0,160,255,0.06));
    color: #e6f6ff;
    box-shadow: 0 6px 16px rgba(0,160,255,0.15);
}
.wa-status .wa-status-text { font-size: 13px; color: #e5e7eb; }
.wa-status.connected { border-color: rgba(16,185,129,0.5); color: #86efac; }
.wa-status.connecting { border-color: rgba(59,130,246,0.5); color: #93c5fd; }
.wa-status.disconnected { border-color: rgba(239,68,68,0.5); color: #fca5a5; }
.wa-gear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wa-gear-btn:hover { background: rgba(255,255,255,0.12); }
.back-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,160,255,0.25); }

/* Tab content */
.tab-content { padding: 24px 28px 40px 28px; min-height: calc(100vh - 88px); }
.tab-panel h2 { margin-bottom: 16px; color: #f3f4f6; font-size: 22px; font-weight: 700; font-family: 'Poppins', sans-serif; }

.glass-card {
    background: rgba(30,30,30,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    padding: 20px;
    width: 100%;
}

/* Configurações: cartão e form ocupando a área útil toda */
#configuracoes .glass-card { height: 100%; }
#configuracoes .form-grid { width: 100%; }

.meta-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,160,255,0.14), rgba(0,160,255,0.06));
    border: 1px solid rgba(0,160,255,0.35);
    color: #dbefff;
}
.meta-title { font-weight: 600; }
.meta-subtitle { font-size: 12px; opacity: 0.8; }

/* Forms */
.form-group > label { color: #cbd5e1; }
/* Info icon inline in labels */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: rgba(0,160,255,0.18);
    color: #e6f6ff;
    font-size: 11px;
    line-height: 1;
    border: 1px solid rgba(0,160,255,0.35);
    cursor: help;
}
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e5e7eb;
    border-radius: 10px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(0,160,255,0.5);
    box-shadow: 0 0 0 4px rgba(0,160,255,0.15);
}

/* Floating label approach */
.form-group { position: relative; }
.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select { padding-top: 26px; }
.form-group > label { position: absolute; top: 8px; left: 14px; font-size: 12px; opacity: 0.9; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00A0FF, #007acc);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0,160,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(0,160,255,0.35); }

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}
.btn-secondary:hover { background: rgba(0,160,255,0.12); border-color: rgba(0,160,255,0.35); }

/* Tables */
.table-container { background: rgba(30,30,30,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04); backdrop-filter: blur(10px); }
.data-table th { background: rgba(255,255,255,0.04); color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.06); }
.data-table td { border-bottom: 1px solid rgba(255,255,255,0.06); }
.data-table tbody tr:hover { background: rgba(0,160,255,0.07); }

/* Status */
.status-active { background: rgba(16,185,129,0.18); color: #86efac; font-weight: 600; }
.status-inactive { background: rgba(107,114,128,0.25); color: #cbd5e1; font-weight: 600; }

/* Modal glass */
.modal { background: rgba(0,0,0,0.6); }
.modal-content { background: rgba(30,30,30,0.75); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; box-shadow: 0 40px 120px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06); backdrop-filter: blur(10px); }
.modal-header h3 { color: #e5e7eb; font-family: 'Poppins', sans-serif; }
.close-btn:hover { background: rgba(255,255,255,0.06); color: #e5e7eb; }
.modal .modal-actions .btn-primary { background: linear-gradient(135deg, #00A0FF, #007acc) !important; box-shadow: 0 10px 24px rgba(0,160,255,0.3) !important; border: 1px solid rgba(255,255,255,0.06) !important; }
.modal .modal-actions .btn-secondary { background: rgba(255,255,255,0.06) !important; color: #e5e7eb !important; border: 1px solid rgba(255,255,255,0.08) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important; }

/* Modal selects (for dark dropdown menus) */
.modal select,
.modal .modal-content select,
.modal .modal-form select {
    background-color: #1E1E1E !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color-scheme: dark;
}

.modal select option,
.modal .modal-content select option,
.modal .modal-form select option,
.modal select optgroup {
    background-color: #1E1E1E;
    color: #e5e7eb;
}

.modal select:focus {
    outline: none;
    border-color: rgba(0,160,255,0.5) !important;
    box-shadow: 0 0 0 4px rgba(0,160,255,0.15) !important;
}

/* Messages */
.message.success { background: rgba(16,185,129,0.85); }
.message.error { background: rgba(239,68,68,0.9); }
.message.info { background: rgba(59,130,246,0.85); }

/* Modern checkboxes (used inside .modal-form .checkbox-label) */
.modal-form .checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px; height: 18px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    position: relative;
    transition: all 0.2s ease;
}
.modal-form .checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #00A0FF, #007acc);
    border-color: rgba(0,160,255,0.6);
    box-shadow: 0 8px 18px rgba(0,160,255,0.25);
}
.modal-form .checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px; left: 6px;
    width: 4px; height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* Subtle divider for section headers */
.section-header { border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 12px; margin-bottom: 18px; }

.whatsapp-connection-info {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
}

.whatsapp-connection-info p {
    margin: 0 0 16px 0;
    color: #cbd5e1;
    font-size: 14px;
}

.whatsapp-connection-info p:last-child {
    margin-bottom: 0;
}

.whatsapp-connection-info label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #e5e7eb;
    font-size: 14px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* WhatsApp Status Styles */
#whatsapp-status {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
}

#whatsapp-status.connected {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
}

#whatsapp-status.connecting {
    background: rgba(255, 193, 7, 0.2);
    color: #fbbf24;
}

#whatsapp-status.disconnected {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

#whatsapp-status.checking {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}



/* Responsive for sidebar layout */
@media (max-width: 992px) {
    .panel-container { grid-template-columns: 70px 1fr; }
    .brand-name { display: none; }
    .sidebar .tab-btn span { display: none; }
    .sidebar .tab-btn { justify-content: center; }
}
/* Ajustes para telas com altura menor que 653px */
@media (max-height: 653px) {
    .sidebar {
        padding: 16px 12px;
    }
    
    .brand {
        margin-bottom: 12px;
    }
    
    .brand-name {
        font-size: 14px;
    }
    
    .sidebar-nav {
        gap: 4px;
        margin: 8px 0 12px 0;
    }
    
    .sidebar .tab-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .sidebar .tab-btn i {
        width: 16px;
        height: 16px;
    }
    
    .back-btn {
        padding: 8px 10px;
        font-size: 13px;
        margin-top: 8px;
    }
}

@media (max-width: 640px) {
    .panel-container { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; right: 0; bottom: 0; height: auto; padding: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; backdrop-filter: blur(10px); }
    .sidebar-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); }
    .brand, .back-btn { display: none; }
    .tab-content { padding-bottom: 90px; }
}

/* ===== SWEETALERT2 CUSTOMIZAÇÕES ===== */
.swal2-popup {
    font-size: 0.9rem;
    border-radius: 12px;
}

.swal2-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.swal2-content {
    font-size: 0.95rem;
}

.swal2-styled.swal2-confirm {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.swal2-styled.swal2-cancel {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
} 

/* ===== DASHBOARD CHART STYLES ===== */
.glass-card canvas {
    max-height: 300px !important;
    height: 300px !important;
}

/* KPI Cards */
.glass-card .glass-card {
    background: rgba(40,40,40,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.glass-card .glass-card:hover {
    background: rgba(50,50,50,0.7);
    border-color: rgba(0,160,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Chart containers */
#chart_conversas {
    height: 300px !important;
    max-height: 300px !important;
}

#chart_distribuicao {
    height: 250px !important;
    max-height: 250px !important;
}

#chart_satisfacao {
    height: 120px !important;
    max-height: 120px !important;
}

#chart_agendamentos {
    height: 120px !important;
    max-height: 120px !important;
}

/* Form row adjustments for dashboard */
.section-header .form-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.section-header .form-group {
    margin: 0;
    min-width: 260px;
    position: relative;
}

.section-header .form-group input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb;
    border-radius: 8px;
    padding: 12px 12px 8px 12px;
    font-size: 14px;
    width: 100%;
    height: 40px;
}

.section-header .form-group input:focus {
    outline: none;
    border-color: rgba(0,160,255,0.5);
    box-shadow: 0 0 0 3px rgba(0,160,255,0.15);
}

.section-header .form-group label {
    color: #cbd5e1;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 500;
    display: block;
    position: absolute;
    top: -8px;
    left: 12px;
    background: rgba(14, 14, 16, 0.9);
    padding: 0 4px;
    z-index: 1;
}

/* Quick date buttons */
.section-header .btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.section-header .btn-secondary:hover {
    background: rgba(0,160,255,0.15);
    border-color: rgba(0,160,255,0.3);
    color: #ffffff;
}

.section-header .btn-primary {
    background: linear-gradient(135deg, #00A0FF, #007acc);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.section-header .btn-primary:hover {
    background: linear-gradient(135deg, #007acc, #005a9e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,160,255,0.3);
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .section-header .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .section-header .form-group {
        min-width: auto;
        width: 100%;
    }
    
    .section-header .form-row > div:last-child {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .glass-card canvas {
        height: 250px !important;
        max-height: 250px !important;
    }
    
    #chart_conversas {
        height: 250px !important;
    }
    
    #chart_distribuicao {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .glass-card canvas {
        height: 200px !important;
        max-height: 200px !important;
    }
    
    #chart_conversas {
        height: 200px !important;
    }
    
    #chart_distribuicao {
        height: 180px !important;
    }
    
    #chart_satisfacao,
    #chart_agendamentos {
        height: 100px !important;
    }
} 