
        :root {
            --primary-color: #25D366;
            --primary-dark: #128C7E;
            --secondary-color: #667eea;
            --success-color: #48bb78;
            --danger-color: #f56565;
            --warning-color: #ecc94b;
            --dark-color: #1a1a1a;
            --gray-color: #718096;
            --light-color: #f8fafc;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #f0f2f5;
            overflow-x: hidden;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            backdrop-filter: blur(5px);
        }

        .loading-content {
            text-align: center;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

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

        /* Toast Container */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9998;
        }

        .sidebar-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.46);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            z-index: 1040;
            border: none;
        }

        body.sidebar-open-mobile {
            overflow: hidden;
        }

        body.sidebar-open-mobile .sidebar-backdrop {
            opacity: 1;
            pointer-events: auto;
        }

        .toast-message {
            background: white;
            color: var(--dark-color);
            padding: 15px 25px;
            border-radius: 12px;
            font-size: 14px;
            margin-bottom: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            transform: translateX(100%);
            animation: slideIn 0.3s forwards;
            border-left: 4px solid var(--primary-color);
        }

        .toast-message.success { border-left-color: var(--success-color); }
        .toast-message.error { border-left-color: var(--danger-color); }
        .toast-message.warning { border-left-color: var(--warning-color); }
        .toast-message.info { border-left-color: var(--secondary-color); }

        @keyframes slideIn {
            to { transform: translateX(0); }
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            width: 280px;
            background: linear-gradient(180deg, #1a1a1a 0%, #2d3748 100%);
            color: white;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        }

        .sidebar.collapsed {
            width: 80px;
        }

        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .sidebar-header h3 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            white-space: nowrap;
        }

        .sidebar-header h3 span {
            color: var(--primary-color);
        }

        .sidebar.collapsed .sidebar-header h3 {
            display: none;
        }

        .toggle-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .toggle-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .sidebar-menu {
            padding: 20px 0;
            overflow-y: auto;
            height: calc(100vh - 80px);
        }

        .menu-item {
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.2s ease;
            cursor: pointer;
            border-left: 3px solid transparent;
            margin: 1px 0;
            text-decoration: none;
        }

        .menu-item:hover,
        .menu-item.active {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-left-color: var(--primary-color);
        }

        .menu-item i {
            font-size: 1.3rem;
            min-width: 24px;
        }

        .menu-item span {
            white-space: nowrap;
            font-weight: 500;
        }

        .sidebar.collapsed .menu-item span {
            display: none;
        }

        .menu-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 16px 20px;
        }

        .menu-label {
            padding: 8px 20px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.4);
            white-space: nowrap;
        }

        .sidebar.collapsed .menu-label {
            display: none;
        }

        /* Main Content */
        .main-content {
            margin-left: 280px;
            transition: all 0.3s ease;
            min-height: 100vh;
        }

        .main-content.expanded {
            margin-left: 80px;
        }

        /* Navbar */
        .navbar {
            background: white;
            padding: 16px 24px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 999;
        }

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

        .navbar-page-info {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            min-width: 0;
        }

        .navbar-page-copy {
            min-width: 0;
        }

        .mobile-menu-btn {
            display: none;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #334155;
            flex-shrink: 0;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
        }

        .page-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--dark-color);
            margin: 0;
        }

        .page-subtitle {
            color: var(--gray-color);
            font-size: 0.92rem;
            margin-top: 4px;
            max-width: 720px;
            line-height: 1.4;
        }

        .navbar-right {
            display: flex;
            align-items: center;
            gap: 24px;
            margin-left: auto;
        }

        .notification-badge {
            background: transparent;
            border: none;
            position: relative;
            cursor: pointer;
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .notification-badge:hover,
        .notification-badge[aria-expanded="true"] {
            background: var(--light-color);
        }

        .notification-badge i {
            font-size: 1.3rem;
            color: var(--gray-color);
        }

        .navbar-menu-group {
            position: relative;
        }

        .badge-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--danger-color);
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 18px;
            text-align: center;
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 12px;
            transition: all 0.2s ease;
        }

        .user-menu:hover {
            background: var(--light-color);
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .user-info {
            line-height: 1.4;
        }

        .user-name {
            font-weight: 600;
            color: var(--dark-color);
            font-size: 0.95rem;
        }

        .user-role {
            font-size: 0.8rem;
            color: var(--gray-color);
        }

        .navbar-dropdown-panel {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            background: white;
            border-radius: 18px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            min-width: 340px;
            max-width: min(380px, calc(100vw - 32px));
            border: 1px solid rgba(0, 0, 0, 0.06);
            z-index: 1001;
            overflow: hidden;
        }

        .navbar-user-panel {
            min-width: 300px;
        }

        .navbar-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 18px 18px 14px;
            border-bottom: 1px solid #edf2f7;
        }

        .navbar-panel-title {
            font-size: 0.98rem;
            font-weight: 700;
            color: var(--dark-color);
        }

        .navbar-panel-subtitle {
            font-size: 0.8rem;
            color: var(--gray-color);
            margin-top: 2px;
        }

        .navbar-panel-action,
        .navbar-panel-action-link {
            background: transparent;
            border: none;
            color: var(--primary-dark);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 600;
            padding: 0;
        }

        .navbar-panel-list {
            max-height: 360px;
            overflow-y: auto;
            padding: 8px;
        }

        .navbar-panel-list.compact {
            padding-top: 10px;
        }

        .navbar-panel-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px;
            color: var(--dark-color);
            text-decoration: none;
            border-radius: 14px;
            transition: all 0.2s ease;
        }

        .navbar-panel-item:hover {
            background: var(--light-color);
        }

        .navbar-panel-icon {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1rem;
        }

        .navbar-panel-icon.info {
            background: rgba(102, 126, 234, 0.14);
            color: #667eea;
        }

        .navbar-panel-icon.success {
            background: rgba(72, 187, 120, 0.14);
            color: #48bb78;
        }

        .navbar-panel-icon.warning {
            background: rgba(237, 137, 54, 0.14);
            color: #ed8936;
        }

        .navbar-panel-icon.error,
        .navbar-panel-icon.danger {
            background: rgba(245, 101, 101, 0.14);
            color: #f56565;
        }

        .navbar-panel-content {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .navbar-panel-content strong {
            font-size: 0.9rem;
            color: var(--dark-color);
            line-height: 1.4;
        }

        .navbar-panel-content small {
            color: var(--gray-color);
            line-height: 1.45;
        }

        .navbar-panel-empty {
            color: var(--gray-color);
            text-align: center;
            padding: 26px 18px;
            font-size: 0.92rem;
        }

        .navbar-panel-footer {
            padding: 14px 18px 18px;
            border-top: 1px solid #edf2f7;
        }

        .navbar-panel-footer a {
            color: var(--primary-dark);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .navbar-panel-footer.actions {
            padding-top: 12px;
        }

        .navbar-logout-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: #fff5f5;
            color: #c53030;
            border: 1px solid #fed7d7;
            border-radius: 12px;
            padding: 12px 14px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .navbar-logout-button:hover {
            background: #fed7d7;
        }

        .dropdown-divider {
            height: 1px;
            background: #e2e8f0;
            margin: 8px 0;
        }

        /* Content Area */
        .content {
            padding: 24px;
            padding-bottom: 96px;
        }

        .app-footer {
            position: fixed;
            bottom: 0;
            left: 280px;
            right: 0;
            z-index: 998;
            background: rgba(255, 255, 255, 0.96);
            border-top: 1px solid #e2e8f0;
            backdrop-filter: blur(6px);
            color: var(--gray-color);
        }

        .main-content.expanded .app-footer {
            left: 80px;
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            margin-bottom: 16px;
        }

        .stat-icon.total { background: rgba(102, 126, 234, 0.1); color: #667eea; }
        .stat-icon.active { background: rgba(72, 187, 120, 0.1); color: #48bb78; }
        .stat-icon.inactive { background: rgba(245, 101, 101, 0.1); color: #f56565; }
        .stat-icon.sent { background: rgba(37, 211, 102, 0.1); color: #25D366; }
        .stat-icon.pending { background: rgba(236, 201, 75, 0.1); color: #ecc94b; }

        /* Auth Pages */
        .auth-shell {
            min-height: calc(100vh - 80px);
            display: flex;
            align-items: center;
        }

        .auth-grid {
            display: grid;
            grid-template-columns: 1.1fr 1fr;
            background: #ffffff;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
            border: 1px solid rgba(15, 23, 42, 0.06);
        }

        .auth-showcase {
            position: relative;
            padding: 36px;
            color: #f8fafc;
            background:
                radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.20), transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.14), transparent 46%),
                linear-gradient(145deg, #128C7E, #25D366 52%, #0f766e);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 520px;
        }

        .auth-brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #ffffff;
            border-radius: 999px;
            padding: 6px 14px;
            font-size: 0.82rem;
            font-weight: 600;
            width: fit-content;
            backdrop-filter: blur(3px);
        }

        .auth-showcase h2 {
            font-size: 2rem;
            line-height: 1.2;
            margin: 20px 0 12px;
            color: #ffffff;
        }

        .auth-showcase p {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 0;
        }

        .auth-points {
            display: grid;
            gap: 12px;
            margin-top: 24px;
        }

        .auth-point {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.92rem;
            color: rgba(255, 255, 255, 0.95);
        }

        .auth-point i {
            font-size: 1rem;
            color: #d1fae5;
        }

        .auth-card {
            padding: 36px;
            background: #ffffff;
        }

        .auth-title {
            font-size: 1.55rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 6px;
        }

        .auth-subtitle {
            color: #6b7280;
            margin-bottom: 22px;
        }

        .auth-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 14px;
            font-size: 0.92rem;
        }

        .auth-links.inline {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .auth-links a {
            color: #0f766e;
            text-decoration: none;
            font-weight: 600;
        }

        .auth-links a:hover {
            color: #0d9488;
            text-decoration: underline;
        }

        .auth-helper {
            margin-top: 10px;
            color: #6b7280;
            font-size: 0.88rem;
            line-height: 1.5;
        }

        .password-strength {
            margin: 10px 0 14px;
        }

        .password-strength-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 0.82rem;
            color: #6b7280;
        }

        .password-strength-value {
            font-weight: 700;
        }

        .password-strength-bar {
            width: 100%;
            height: 8px;
            border-radius: 999px;
            background: #e5e7eb;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .password-strength-fill {
            height: 100%;
            width: 0;
            border-radius: 999px;
            transition: width 0.2s ease, background-color 0.2s ease;
            background: #9ca3af;
        }

        .password-strength-fill.weak {
            background: #f56565;
        }

        .password-strength-fill.medium {
            background: #ed8936;
        }

        .password-strength-fill.strong {
            background: #48bb78;
        }

        .password-checklist {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 6px;
            font-size: 0.82rem;
            color: #6b7280;
        }

        .password-checklist li {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .password-checklist li i {
            color: #a0aec0;
        }

        .password-checklist li.valid {
            color: #2f855a;
        }

        .password-checklist li.valid i {
            color: #48bb78;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--dark-color);
            line-height: 1.2;
        }

        .stat-label {
            color: var(--gray-color);
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Section Cards */
        .section-card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 24px;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark-color);
            margin: 0;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 24px;
            padding: 16px 0;
        }

        .pagination-item {
            min-width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border: 1px solid #e2e8f0;
            color: var(--dark-color);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .pagination-item:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .pagination-item.active {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
        }

        .pagination-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Grid Layouts */
        .listas-grid,
        .mensagens-grid,
        .campanhas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        /* Cards */
        .lista-card,
        .mensagem-card,
        .campanha-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .lista-card:hover,
        .mensagem-card:hover,
        .campanha-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .card-title {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--dark-color);
        }

        .card-badge {
            background: var(--primary-color);
            color: white;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .card-badge.status-rascunho { background: #a0aec0; }
        .card-badge.status-agendada { background: #4299e1; }
        .card-badge.status-ativa { background: #48bb78; }
        .card-badge.status-pausada { background: #ed8936; }
        .card-badge.status-concluida { background: #667eea; }

        .card-stats,
        .campanha-metrics {
            display: flex;
            justify-content: space-around;
            margin: 15px 0;
            padding: 10px 0;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }

        .campanha-metrics {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .stat-item,
        .metric-item {
            text-align: center;
        }

        .stat-item .value,
        .metric-item .value {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--dark-color);
        }

        .stat-item .label,
        .metric-item .label {
            font-size: 0.7rem;
            color: var(--gray-color);
        }

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

        .card-actions button {
            flex: 1;
            padding: 8px;
            border: none;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .btn-view { background: var(--light-color); color: var(--dark-color); }
        .btn-edit { background: var(--secondary-color); color: white; }
        .btn-send { background: var(--primary-color); color: white; }
        .btn-delete { background: var(--danger-color); color: white; }
        .btn-duplicate { background: var(--warning-color); color: var(--dark-color); }
        .btn-warning { background: var(--warning-color); color: var(--dark-color); }

        /* Upload Area */
        .upload-area {
            border: 2px dashed #cbd5e0;
            border-radius: 20px;
            padding: 40px 20px;
            text-align: center;
            margin-bottom: 24px;
            transition: all 0.3s ease;
            cursor: pointer;
            background: #fafbfc;
        }

        .upload-area:hover,
        .upload-area.dragover {
            border-color: var(--primary-color);
            background-color: #f0f9f4;
        }

        .upload-icon {
            font-size: 48px;
            margin-bottom: 12px;
            color: var(--primary-color);
        }

        .upload-text {
            color: #2d3748;
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .upload-hint {
            color: #718096;
            font-size: 14px;
        }

        /* Contatos Table */
        .contatos-table-container {
            max-height: 400px;
            overflow-y: auto;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            margin: 20px 0;
        }

        .contatos-table {
            width: 100%;
            border-collapse: collapse;
        }

        .contatos-table th {
            position: sticky;
            top: 0;
            background: var(--light-color);
            padding: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gray-color);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e2e8f0;
            z-index: 10;
        }

        .contatos-table td {
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
            color: var(--dark-color);
            font-size: 0.95rem;
        }

        .contatos-table tr:hover {
            background: var(--light-color);
        }

        /* Tables */
        .table-container {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            overflow-x: auto;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .conversas-search {
            width: min(260px, 100%);
        }

        .chat-scroll {
            max-height: min(60vh, 540px);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 8px 4px;
        }

        .reply-composer {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }

        .reply-send-btn {
            height: 80px;
            min-width: 100px;
        }

        .conversa-header-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .table th {
            text-align: left;
            padding: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gray-color);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e2e8f0;
        }

        .table td {
            padding: 12px;
            border-bottom: 1px solid #e2e8f0;
            color: var(--dark-color);
            font-size: 0.95rem;
        }

        .operacao-table {
            min-width: 0;
            width: 100%;
            table-layout: fixed;
        }

        .operacao-table th,
        .operacao-table td {
            white-space: nowrap;
            vertical-align: middle;
            padding: 10px 8px;
            font-size: 0.88rem;
        }

        .operacao-table td {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .operacao-col-contato {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .operacao-col-contato strong {
            display: inline-block;
            max-width: 62%;
            overflow: hidden;
            text-overflow: ellipsis;
            vertical-align: middle;
        }

        .operacao-col-numero,
        .operacao-col-data {
            font-variant-numeric: tabular-nums;
        }

        .operacao-col-status .badge {
            min-width: 74px;
            text-align: center;
        }

        .operacao-action-group {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .operacao-action-btn {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: 1px solid transparent;
            background: #f8fafc;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 0.9rem;
            line-height: 1;
        }

        .operacao-action-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .operacao-action-btn.send {
            color: #2563eb;
            border-color: #bfdbfe;
            background: #eff6ff;
        }

        .operacao-action-btn.send:hover:not(:disabled) {
            background: #dbeafe;
        }

        .operacao-action-btn.reschedule {
            color: #7c3aed;
            border-color: #ddd6fe;
            background: #f5f3ff;
        }

        .operacao-action-btn.reschedule:hover:not(:disabled) {
            background: #ede9fe;
        }

        .operacao-action-btn.whatsapp {
            color: #15803d;
            border-color: #bbf7d0;
            background: #f0fdf4;
        }

        .operacao-action-btn.whatsapp:hover:not(:disabled) {
            background: #dcfce7;
        }

        @media (max-width: 1200px) {
            .operacao-table th,
            .operacao-table td {
                font-size: 0.83rem;
                padding: 8px 6px;
            }

            .operacao-col-contato strong {
                max-width: 56%;
            }

            .operacao-col-status .badge {
                min-width: 64px;
                font-size: 0.7rem;
            }
        }

        @media (max-width: 992px) {
            .operacao-table {
                table-layout: auto;
            }

            .operacao-table th:nth-child(6),
            .operacao-table td:nth-child(6) {
                display: none;
            }

            .operacao-table th,
            .operacao-table td {
                white-space: normal;
            }

            .operacao-col-numero,
            .operacao-col-contato,
            .operacao-col-status {
                white-space: nowrap;
            }
        }

        @media (max-width: 768px) {
            .operacao-table th:nth-child(5),
            .operacao-table td:nth-child(5) {
                display: none;
            }

            .operacao-table th,
            .operacao-table td {
                font-size: 0.8rem;
                padding: 7px 5px;
            }

            .operacao-col-contato strong {
                max-width: 100%;
            }

            .operacao-col-contato .text-small {
                display: none;
            }

            .operacao-action-btn {
                width: 28px;
                height: 28px;
            }
        }

        .operacao-table td:last-child .btn {
            white-space: nowrap;
        }

        .badge {
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            display: inline-block;
        }

        .badge-success { background: #c6f6d5; color: #22543d; }
        .badge-danger { background: #fed7d7; color: #742a2a; }
        .badge-info { background: #b2f5ea; color: #234e52; }
        .badge-warning { background: #feebc8; color: #7b341e; }
        .badge-primary { background: #bee3f8; color: #2c5282; }
        .badge-purple { background: #e9d8fd; color: #553c9a; }
        .badge-secondary { background: #e2e8f0; color: #4a5568; }

        .action-btn {
            padding: 6px 10px;
            border-radius: 8px;
            border: none;
            font-size: 0.85rem;
            margin: 0 2px;
            transition: all 0.2s ease;
        }

        .action-btn.whatsapp { background: #25D366; color: white; }
        .action-btn.edit { background: var(--secondary-color); color: white; }
        .action-btn.delete { background: var(--danger-color); color: white; }
        .action-btn.view { background: var(--light-color); color: var(--dark-color); }

        /* Forms */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--dark-color);
            font-weight: 500;
            font-size: 0.95rem;
        }

        .form-control,
        .form-select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.2s ease;
            background: white;
        }

        .form-control:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .form-control.is-invalid {
            border-color: var(--danger-color);
        }

        .invalid-feedback {
            color: var(--danger-color);
            font-size: 0.85rem;
            margin-top: 5px;
        }

        /* Paste Area */
        .paste-area {
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px;
            margin: 20px 0;
            background: #fafbfc;
        }

        .paste-area textarea {
            width: 100%;
            min-height: 120px;
            border: none;
            background: transparent;
            padding: 8px;
            font-family: monospace;
            resize: vertical;
        }

        .paste-area textarea:focus {
            outline: none;
        }

        /* Tabs */
        .import-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 10px;
        }

        .import-tab {
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: var(--light-color);
        }

        .import-tab.active {
            background: var(--primary-color);
            color: white;
        }

        /* WhatsApp Preview */
        .whatsapp-preview {
            background: #e5ddd5;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23cdc5b9" d="M0 0h100v100H0z"/><path fill="%23d5cdc1" d="M0 0h50v50H0zM50 50h50v50H50z"/></svg>');
            background-size: 100px 100px;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .message-bubble {
            background: white;
            border-radius: 12px;
            padding: 12px 16px;
            max-width: 80%;
            position: relative;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            word-wrap: break-word;
            white-space: pre-wrap;
            line-height: 1.5;
        }

        .message-bubble.sent {
            background: #dcf8c6;
            margin-left: auto;
        }

        .message-time {
            font-size: 11px;
            color: #999;
            text-align: right;
            margin-top: 8px;
        }

        /* Modals */
        .modal-content {
            border-radius: 20px;
            border: none;
        }

        .modal-header {
            border-bottom: 1px solid #e2e8f0;
            padding: 20px 24px;
        }

        .modal-body {
            padding: 24px;
        }

        .modal-footer {
            border-top: 1px solid #e2e8f0;
            padding: 20px 24px;
        }

        /* Progress Bar */
        .progress {
            height: 8px;
            border-radius: 4px;
            background: #e2e8f0;
            margin: 10px 0;
        }

        .progress-bar {
            background: var(--primary-color);
            border-radius: 4px;
            transition: width 0.3s ease;
        }

        /* Timeline */
        .timeline {
            position: relative;
            padding-left: 30px;
        }

        .timeline-item {
            position: relative;
            padding-bottom: 20px;
        }

        .timeline-item:before {
            content: '';
            position: absolute;
            left: -30px;
            top: 0;
            width: 2px;
            height: 100%;
            background: #e2e8f0;
        }

        .timeline-item:last-child:before {
            height: 0;
        }

        .timeline-dot {
            position: absolute;
            left: -36px;
            top: 0;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--primary-color);
            border: 2px solid white;
        }

        .timeline-date {
            font-size: 0.8rem;
            color: var(--gray-color);
            margin-bottom: 4px;
        }

        .timeline-content {
            background: var(--light-color);
            padding: 12px;
            border-radius: 8px;
        }

        /* Metrics Grid */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            margin: 20px 0;
        }

        .metric-box {
            background: var(--light-color);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
        }

        .metric-box .metric-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .metric-box .metric-label {
            font-size: 0.85rem;
            color: var(--gray-color);
        }

        /* Chart Container */
        .chart-container {
            height: 300px;
            margin: 20px 0;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .mobile-menu-btn {
                display: inline-flex;
            }

            .sidebar {
                width: min(280px, 84vw);
                transform: translateX(-100%);
                z-index: 1050;
            }

            .sidebar.mobile-open {
                transform: translateX(0);
            }

            .sidebar.collapsed {
                width: min(280px, 84vw);
            }

            .sidebar .sidebar-header h3,
            .sidebar .menu-item span,
            .sidebar .menu-label {
                display: initial;
            }

            .sidebar.collapsed .sidebar-header h3,
            .sidebar.collapsed .menu-item span,
            .sidebar.collapsed .menu-label {
                display: initial;
            }

            .main-content,
            .main-content.expanded {
                margin-left: 0;
            }

            .content {
                padding-bottom: 110px;
            }

            .app-footer,
            .main-content.expanded .app-footer {
                left: 0;
            }

            .navbar-content {
                align-items: flex-start;
                flex-direction: column;
            }

            .navbar-right {
                margin-left: 0;
                width: 100%;
                justify-content: space-between;
            }

            .page-subtitle {
                max-width: 100%;
            }

            .navbar-dropdown-panel,
            .navbar-user-panel {
                position: fixed;
                top: 76px;
                right: 12px;
                left: 12px;
                min-width: auto;
                max-width: none;
                max-height: calc(100dvh - 96px);
            }

            .navbar-panel-list {
                max-height: calc(100dvh - 200px);
            }

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

            .auth-showcase {
                min-height: auto;
                padding: 28px;
            }

            .auth-card {
                padding: 28px;
            }
        }

        @media (max-width: 768px) {
            .content {
                padding-bottom: 110px;
            }

            .navbar-page-copy {
                display: none;
            }

            .notifications-menu-group {
                display: none;
            }

            .navbar-content {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }

            .navbar-right {
                width: auto;
                margin-left: auto;
                justify-content: flex-end;
            }

            .app-footer {
                display: none;
            }
            
            .stats-grid {
                grid-template-columns: 1fr 1fr;
            }
            
            .listas-grid,
            .mensagens-grid,
            .campanhas-grid {
                grid-template-columns: 1fr;
            }
            
            .user-info {
                display: none;
            }
        }

        @media (max-width: 576px) {
            .toast-container {
                top: 10px;
                left: 10px;
                right: 10px;
            }

            .toast-message {
                width: 100%;
                margin-bottom: 8px;
                padding: 12px 14px;
            }

            .navbar {
                padding: 12px;
            }

            .navbar-right {
                gap: 10px;
            }

            .notification-badge,
            .user-avatar {
                width: 38px;
                height: 38px;
            }

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

            .content {
                padding: 16px;
                padding-bottom: 24px;
            }

            .conversas-search {
                width: 100%;
            }

            .reply-composer {
                flex-direction: column;
                align-items: stretch;
            }

            .reply-send-btn {
                width: 100%;
                min-width: 0;
                height: auto;
            }

            .conversa-header-actions {
                width: 100%;
                display: grid;
                grid-template-columns: 1fr;
            }
        }

        @keyframes slideOut {
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }
    
