/**
 * Estilos frontend SaaS - New Whats Max
 * Mobile-first, responsivo, design profissional com cores vibrantes
 *
 * @package NewWhatsMax
 */

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
.nwm-panel {
	--nwm-primary:       #25D366;
	--nwm-primary-dark:  #128C7E;
	--nwm-primary-light: #dcf8c6;
	--nwm-secondary:     #075E54;
	--nwm-accent:        #34B7F1;
	--nwm-danger:        #FF4757;
	--nwm-warning:       #FFA502;
	--nwm-success:       #2ed573;
	--nwm-bg:            #f0f4f8;
	--nwm-sidebar-bg:    #1a1a2e;
	--nwm-sidebar-w:     260px;
	--nwm-card-bg:       #ffffff;
	--nwm-text:          #1a202c;
	--nwm-text-muted:    #718096;
	--nwm-border:        #e2e8f0;
	--nwm-radius:        12px;
	--nwm-shadow:        0 2px 12px rgba(0,0,0,.08);
	--nwm-transition:    .2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* =============================================
   RESET DENTRO DO PAINEL
   ============================================= */
.nwm-panel *,
.nwm-panel *::before,
.nwm-panel *::after {
	box-sizing: border-box;
}

.nwm-panel { margin: 0; padding: 0; }

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
.nwm-panel {
	display: flex;
	min-height: 600px;
	background: var(--nwm-bg);
	border-radius: var(--nwm-radius);
	/* overflow: hidden removido — o sidebar mobile precisa aparecer sobre o conteúdo */
	box-shadow: 0 4px 24px rgba(0,0,0,.12);
	position: relative;
}

/* =============================================
   SIDEBAR
   ============================================= */
.nwm-sidebar {
	width: var(--nwm-sidebar-w);
	background: var(--nwm-sidebar-bg);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	position: relative;
	z-index: 10;
	transition: transform var(--nwm-transition);
}

.nwm-sidebar-logo {
	padding: 24px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}

.nwm-sidebar-logo span {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.3px;
}

/* NAV */
.nwm-nav {
	padding: 16px 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nwm-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: rgba(255,255,255,.65);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all var(--nwm-transition);
}

.nwm-nav-item:hover {
	background: rgba(255,255,255,.08);
	color: #fff;
	text-decoration: none;
}

.nwm-nav-item.active {
	background: linear-gradient(135deg, var(--nwm-primary), var(--nwm-primary-dark));
	color: #fff;
	box-shadow: 0 4px 12px rgba(37,211,102,.35);
}

/* Sidebar user */
.nwm-sidebar-user {
	padding: 16px 20px;
	border-top: 1px solid rgba(255,255,255,.08);
	display: flex;
	align-items: center;
	gap: 12px;
}

.nwm-avatar,
.nwm-profile-avatar {
	border-radius: 50%;
}

.nwm-avatar { width: 36px; height: 36px; }
.nwm-profile-avatar { width: 80px; height: 80px; }

.nwm-sidebar-user-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nwm-sidebar-user-name {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nwm-sidebar-user-email {
	color: rgba(255,255,255,.5);
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.nwm-main {
	flex: 1;
	overflow-y: auto;
	padding: 32px 28px;
	min-width: 0;
}

/* MOBILE HEADER */
.nwm-mobile-header {
	display: none;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--nwm-border);
}

.nwm-sidebar-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: var(--nwm-text);
	border-radius: 8px;
}

.nwm-sidebar-toggle:hover { background: var(--nwm-border); }

.nwm-mobile-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--nwm-text);
}

/* =============================================
   SECTIONS
   ============================================= */
.nwm-section { display: none; }
.nwm-section.active { display: block; }

.nwm-section-header {
	margin-bottom: 24px;
}

.nwm-section-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--nwm-text);
	margin: 0 0 6px;
}

.nwm-section-header p {
	color: var(--nwm-text-muted);
	margin: 0;
	font-size: 15px;
}

/* =============================================
   CARDS
   ============================================= */
.nwm-card {
	background: var(--nwm-card-bg);
	border-radius: var(--nwm-radius);
	border: 1px solid var(--nwm-border);
	margin-bottom: 20px;
	box-shadow: var(--nwm-shadow);
	overflow: hidden;
}

.nwm-card-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--nwm-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.nwm-card-header h3,
.nwm-card-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--nwm-text);
}

.nwm-card-body { padding: 20px; }

.nwm-card-info {
	border-left: 4px solid var(--nwm-accent);
	background: #f0f9ff;
}

.nwm-card-nested {
	box-shadow: none;
	border: 1px solid var(--nwm-border);
}

/* =============================================
   FORM
   ============================================= */
.nwm-form-group { margin-bottom: 20px; }
.nwm-form-group:last-child { margin-bottom: 0; }

.nwm-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--nwm-text);
	margin-bottom: 8px;
}

.nwm-input,
.nwm-textarea,
.nwm-select {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--nwm-border);
	border-radius: 10px;
	font-size: 14px;
	color: var(--nwm-text);
	background: #fff;
	transition: border-color var(--nwm-transition), box-shadow var(--nwm-transition);
	outline: none;
	font-family: inherit;
}

.nwm-input:focus,
.nwm-textarea:focus {
	border-color: var(--nwm-primary);
	box-shadow: 0 0 0 3px rgba(37,211,102,.15);
}

.nwm-input-sm { width: auto; min-width: 150px; }

.nwm-textarea { resize: vertical; }
.nwm-textarea-contacts { font-family: 'Courier New', monospace; font-size: 13px; }

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

.nwm-input-group .nwm-input { flex: 1; }

.nwm-hint {
	font-size: 12px;
	color: var(--nwm-text-muted);
	margin: 6px 0 0;
}

.nwm-badge-info {
	font-size: 12px;
	color: var(--nwm-accent);
	background: #e0f2fe;
	padding: 3px 10px;
	border-radius: 20px;
	font-weight: 500;
}

.nwm-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.nwm-form-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.nwm-form-submit {
	display: flex;
	justify-content: flex-end;
	padding-top: 4px;
}

/* =============================================
   BUTTONS
   ============================================= */
.nwm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all var(--nwm-transition);
	font-family: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.nwm-btn-lg { padding: 14px 28px; font-size: 15px; }

.nwm-btn-primary {
	background: linear-gradient(135deg, var(--nwm-primary), var(--nwm-primary-dark));
	color: #fff;
	box-shadow: 0 4px 12px rgba(37,211,102,.3);
}

.nwm-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(37,211,102,.4);
}

.nwm-btn-secondary {
	background: #f8fafc;
	color: var(--nwm-text);
	border: 1.5px solid var(--nwm-border);
}

.nwm-btn-secondary:hover { background: var(--nwm-border); }

.nwm-btn-outline {
	background: transparent;
	color: var(--nwm-text-muted);
	border: 1.5px solid var(--nwm-border);
	padding: 10px 14px;
}

.nwm-btn-outline:hover { background: var(--nwm-bg); }

.nwm-btn-ghost {
	background: transparent;
	color: var(--nwm-text-muted);
	border: none;
	padding: 8px 12px;
}

.nwm-btn-ghost:hover { color: var(--nwm-text); background: var(--nwm-bg); }

.nwm-btn-danger {
	background: var(--nwm-danger);
	color: #fff;
}

.nwm-btn-sm { padding: 6px 14px; font-size: 13px; }

/* =============================================
   STATUS BANNER
   ============================================= */
.nwm-status-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
}

.nwm-status-connected {
	background: #d4edda;
	color: #155724;
}

.nwm-status-disconnected {
	background: #f8d7da;
	color: #721c24;
}

.nwm-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.nwm-status-connected .nwm-status-dot {
	background: var(--nwm-success);
	box-shadow: 0 0 0 3px rgba(46,213,115,.25);
	animation: nwm-pulse 2s infinite;
}

.nwm-status-disconnected .nwm-status-dot {
	background: var(--nwm-danger);
}

@keyframes nwm-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(46,213,115,.25); }
	50%       { box-shadow: 0 0 0 6px rgba(46,213,115,.1); }
}

/* =============================================
   FEEDBACK
   ============================================= */
.nwm-feedback {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	margin-top: 12px;
}

.nwm-feedback-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.nwm-feedback-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* =============================================
   AUTOMATIONS LIST
   ============================================= */
.nwm-section-actions { margin-bottom: 20px; }

.nwm-automations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.nwm-automation-card {
	background: #fff;
	border: 1px solid var(--nwm-border);
	border-radius: var(--nwm-radius);
	padding: 20px;
	box-shadow: var(--nwm-shadow);
	transition: transform var(--nwm-transition), box-shadow var(--nwm-transition);
}

.nwm-automation-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.nwm-automation-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 12px;
	gap: 8px;
}

.nwm-automation-card-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--nwm-text);
	flex: 1;
}

.nwm-automation-status {
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.nwm-status-pending   { background: #fef3c7; color: #92400e; }
.nwm-status-running   { background: #dbeafe; color: #1e40af; }
.nwm-status-completed { background: #d1fae5; color: #065f46; }
.nwm-status-failed    { background: #fee2e2; color: #991b1b; }
.nwm-status-paused    { background: #e5e7eb; color: #374151; }

.nwm-automation-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.nwm-meta-tag {
	font-size: 12px;
	color: var(--nwm-text-muted);
	background: var(--nwm-bg);
	padding: 4px 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 4px;
}

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

/* =============================================
   SEND TYPE TOGGLE
   ============================================= */
.nwm-send-type-toggle {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.nwm-toggle-option {
	cursor: pointer;
	flex: 1;
	min-width: 160px;
}

.nwm-toggle-option input[type="radio"] {
	display: none;
}

.nwm-toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 2px solid var(--nwm-border);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--nwm-text-muted);
	transition: all var(--nwm-transition);
	cursor: pointer;
}

.nwm-toggle-option input:checked + .nwm-toggle-label {
	border-color: var(--nwm-primary);
	color: var(--nwm-primary-dark);
	background: rgba(37,211,102,.05);
}

/* =============================================
   VARS HINT
   ============================================= */
.nwm-vars-hint {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.nwm-hint-label {
	font-size: 13px;
	color: var(--nwm-text-muted);
	font-weight: 600;
}

.nwm-var-tag {
	background: linear-gradient(135deg, var(--nwm-primary), var(--nwm-primary-dark));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-family: 'Courier New', monospace;
	transition: opacity var(--nwm-transition);
}

.nwm-var-tag:hover { opacity: .8; }

/* =============================================
   WHATSAPP BUBBLE
   ============================================= */
.nwm-message-preview-wrap { margin-top: 12px; }

.nwm-whatsapp-bubble {
	background: var(--nwm-primary-light);
	border-radius: 12px 12px 12px 0;
	padding: 12px 16px;
	font-size: 14px;
	color: #1a1a1a;
	line-height: 1.6;
	max-width: 80%;
	box-shadow: 0 2px 6px rgba(0,0,0,.1);
	white-space: pre-wrap;
	word-break: break-word;
}

/* =============================================
   CONTACTS PREVIEW
   ============================================= */
.nwm-contacts-preview {
	margin-top: 12px;
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid var(--nwm-border);
	border-radius: 8px;
}

.nwm-contact-preview-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--nwm-border);
	font-size: 13px;
}

.nwm-contact-preview-item:last-child { border-bottom: none; }

.nwm-contact-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--nwm-primary), var(--nwm-primary-dark));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

/* =============================================
   REPORTS
   ============================================= */
.nwm-reports-controls {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.nwm-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.nwm-mini-stat {
	background: #fff;
	border-radius: var(--nwm-radius);
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid var(--nwm-border);
	box-shadow: var(--nwm-shadow);
}

.nwm-mini-stat-value {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.nwm-mini-stat-label {
	font-size: 12px;
	color: var(--nwm-text-muted);
}

.nwm-mini-stat-total   .nwm-mini-stat-value { color: var(--nwm-accent); }
.nwm-mini-stat-success .nwm-mini-stat-value { color: var(--nwm-success); }
.nwm-mini-stat-failed  .nwm-mini-stat-value { color: var(--nwm-danger); }
.nwm-mini-stat-rate    .nwm-mini-stat-value { color: var(--nwm-primary); }

.nwm-chart-container {
	position: relative;
	height: 280px;
}

.nwm-donut-wrap { display: flex; justify-content: center; }
.nwm-donut-container { max-width: 280px; width: 100%; }

/* =============================================
   PROFILE
   ============================================= */
.nwm-profile-card .nwm-card-body {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nwm-profile-avatar-section {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
}

.nwm-profile-name {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.nwm-profile-email {
	margin: 0;
	color: var(--nwm-text-muted);
	font-size: 14px;
}

/* =============================================
   HELP
   ============================================= */
.nwm-help-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.nwm-help-card .nwm-card-body,
.nwm-help-card {
	padding: 20px;
}

.nwm-help-icon {
	font-size: 28px;
	margin-bottom: 12px;
}

.nwm-help-card h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--nwm-text);
	margin: 0 0 12px;
}

.nwm-steps, .nwm-help-list {
	padding-left: 20px;
	margin: 0;
}

.nwm-steps li, .nwm-help-list li {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--nwm-text-muted);
	line-height: 1.6;
}

.nwm-code-snippet {
	background: #1a1a2e;
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 12px 0;
}

.nwm-code-snippet code {
	color: var(--nwm-primary);
	font-family: 'Courier New', monospace;
	font-size: 13px;
	background: transparent;
	padding: 0;
}

.nwm-help-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-top: 8px;
}

.nwm-help-table th {
	text-align: left;
	padding: 8px 10px;
	background: var(--nwm-bg);
	color: var(--nwm-text-muted);
	font-weight: 600;
	border-bottom: 1px solid var(--nwm-border);
}

.nwm-help-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--nwm-border);
	color: var(--nwm-text);
}

.nwm-help-table code {
	background: var(--nwm-bg);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
}

/* FAQ */
.nwm-faq-item { border-bottom: 1px solid var(--nwm-border); }
.nwm-faq-item:last-child { border-bottom: none; }

.nwm-faq-question {
	width: 100%;
	text-align: left;
	padding: 14px 0;
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--nwm-text);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: inherit;
}

.nwm-faq-question::after {
	content: '+';
	font-size: 20px;
	color: var(--nwm-primary);
}

.nwm-faq-question.open::after { content: '−'; }

.nwm-faq-answer {
	display: none;
	padding: 0 0 16px;
	font-size: 14px;
	color: var(--nwm-text-muted);
	line-height: 1.7;
}

/* =============================================
   SPINNERS / LOADING
   ============================================= */
.nwm-loading-spinner {
	text-align: center;
	padding: 40px;
}

.nwm-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--nwm-border);
	border-top-color: var(--nwm-primary);
	border-radius: 50%;
	animation: nwm-spin .8s linear infinite;
	margin: 0 auto 12px;
}

@keyframes nwm-spin { to { transform: rotate(360deg); } }

/* =============================================
   SECTION HEADER FLEX
   ============================================= */
.nwm-section-header-flex {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.nwm-section-header-flex h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.nwm-empty-state {
	text-align: center;
	padding: 40px;
	color: var(--nwm-text-muted);
}

.nwm-empty-state p {
	font-size: 15px;
	margin-top: 12px;
}

/* =============================================
   LOGIN NOTICE
   ============================================= */
.nwm-login-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: var(--nwm-radius);
	padding: 20px;
	text-align: center;
	font-size: 15px;
}

.nwm-link {
	color: var(--nwm-primary-dark);
	font-weight: 600;
	text-decoration: underline;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 900px) {

	/* Panel: clip visual com border-radius, mas não clip o sidebar */
	.nwm-panel {
		position: relative;
		overflow: visible; /* Sidebar pode aparecer acima do conteúdo */
		border-radius: var(--nwm-radius);
	}

	/* Sidebar: posição fixa relativa ao panel, fora do fluxo */
	.nwm-sidebar {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		min-height: 100%;
		width: var(--nwm-sidebar-w);
		transform: translateX(-110%); /* Vai além da borda para não aparecer */
		transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
		z-index: 9999; /* Máximo possível para garantir que fica acima de tudo */
		border-radius: var(--nwm-radius) 0 0 var(--nwm-radius);
	}

	.nwm-sidebar.open {
		transform: translateX(0);
		box-shadow: 4px 0 32px rgba(0, 0, 0, .4);
	}

	/* Overlay: cobre o conteúdo principal quando sidebar está aberto */
	.nwm-overlay {
		display: none;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, .5);
		z-index: 9998; /* Logo abaixo do sidebar */
		border-radius: var(--nwm-radius);
	}

	.nwm-overlay.active {
		display: block;
	}

	.nwm-mobile-header { display: flex; }

	/* O main ocupa toda a largura em mobile */
	.nwm-main {
		padding: 20px 16px;
		width: 100%;
		min-width: 0;
	}
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 600px) {
	.nwm-section-header h2 { font-size: 20px; }

	.nwm-automations-grid { grid-template-columns: 1fr; }

	.nwm-help-grid { grid-template-columns: 1fr; }

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

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

	.nwm-send-type-toggle { flex-direction: column; }

	.nwm-toggle-option { min-width: unset; }

	.nwm-form-submit { justify-content: stretch; }
	.nwm-form-submit .nwm-btn { width: 100%; justify-content: center; }

	.nwm-form-actions { flex-direction: column; }
	.nwm-form-actions .nwm-btn { width: 100%; justify-content: center; }

	.nwm-btn-lg { width: 100%; justify-content: center; }

	.nwm-donut-container { max-width: 220px; }
}

/* =============================================
   BARRA DE PROGRESSO DE AUTOMAÇÃO
   ============================================= */
.nwm-progress-wrap {
	position: relative;
	background: var(--nwm-border);
	border-radius: 99px;
	height: 8px;
	margin: 10px 0 4px;
	overflow: hidden;
}

.nwm-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--nwm-primary), var(--nwm-primary-dark));
	border-radius: 99px;
	transition: width .4s ease;
}

.nwm-progress-bar.nwm-progress-done {
	background: linear-gradient(90deg, var(--nwm-success), #20c960);
}

.nwm-progress-label {
	display: block;
	font-size: 11px;
	color: var(--nwm-text-muted);
	margin-top: 3px;
}

/* =============================================
   BADGE DE PLANO DO USUÁRIO
   ============================================= */
.nwm-plan-badge {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, var(--nwm-sidebar-bg), #16213e);
	color: #fff;
	border-radius: var(--nwm-radius);
	padding: 10px 16px;
	margin-bottom: 16px;
	font-size: 13px;
	gap: 12px;
}

.nwm-plan-label {
	font-weight: 600;
	color: var(--nwm-primary);
}

.nwm-plan-count {
	background: rgba(255,255,255,.1);
	border-radius: 99px;
	padding: 2px 10px;
	font-size: 12px;
	color: rgba(255,255,255,.85);
}

/* =============================================
   STATUS BADGE — PAUSED + PT-BR
   ============================================= */
.nwm-automation-status.nwm-status-paused {
	background: #fff3cd;
	color: #856404;
}

.nwm-automation-status.nwm-status-running {
	background: #cff4fc;
	color: #055160;
}

/* Feedback INFO (azul) para avisos de edição */
.nwm-feedback.nwm-feedback-info {
	background: #e8f4fd;
	border-left: 3px solid #3498db;
	color: #1a5276;
}

/* Acesso negado */
.nwm-access-denied {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: var(--nwm-radius);
	padding: 20px 24px;
	color: #856404;
	font-size: 15px;
}

/* =============================================
   SIDEBAR — LOGOUT
   ============================================= */
.nwm-sidebar-logout {
	padding: 12px 16px 20px;
	margin-top: auto;
	border-top: 1px solid rgba(255,255,255,.08);
}

.nwm-btn-logout {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 14px;
	background: rgba(255, 71, 87, .12);
	color: #ff6b7a;
	border: 1px solid rgba(255, 71, 87, .25);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background var(--nwm-transition), color var(--nwm-transition);
	cursor: pointer;
}

.nwm-btn-logout:hover {
	background: rgba(255, 71, 87, .25);
	color: #fff;
	text-decoration: none;
}

/* =============================================
   SIDEBAR — ESTRELAS DE PLANO
   ============================================= */
.nwm-sidebar-user-name {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.nwm-plan-stars {
	font-size: 11px;
	letter-spacing: 1px;
	line-height: 1;
}

/* =============================================
   PERFIL — HERO CARD
   ============================================= */
.nwm-profile-hero {
	padding: 0 !important;
	overflow: hidden;
	border-radius: var(--nwm-radius) !important;
}

.nwm-profile-hero-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px 24px;
	flex-wrap: wrap;
}

.nwm-profile-avatar-lg {
	width: 72px !important;
	height: 72px !important;
	border-radius: 50% !important;
	border: 3px solid rgba(255,255,255,.4);
	flex-shrink: 0;
}

.nwm-profile-hero-info {
	flex: 1;
	min-width: 0;
}

.nwm-profile-hero-name {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.nwm-profile-hero-stars {
	font-size: 16px;
	letter-spacing: 2px;
}

.nwm-profile-hero-email {
	font-size: 13px;
	color: rgba(255,255,255,.75);
	margin: 0 0 10px;
}

.nwm-profile-hero-plan {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.nwm-profile-plan-badge {
	background: rgba(255,255,255,.2);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 99px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.nwm-profile-plan-limit {
	background: rgba(0,0,0,.2);
	color: rgba(255,255,255,.85);
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 99px;
}

.nwm-profile-hero-actions {
	margin-left: auto;
	flex-shrink: 0;
}

.nwm-btn-logout-hero {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 18px;
	background: rgba(255,255,255,.15);
	color: #fff;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease;
	white-space: nowrap;
}

.nwm-btn-logout-hero:hover {
	background: rgba(255, 71, 87, .5);
	border-color: rgba(255, 71, 87, .6);
	color: #fff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.nwm-profile-hero-inner { flex-direction: column; align-items: flex-start; }
	.nwm-profile-hero-actions { margin-left: 0; width: 100%; }
	.nwm-btn-logout-hero { width: 100%; justify-content: center; }
}

/* =============================================
   SIDEBAR — BOTÃO ASSINATURA
   ============================================= */
.nwm-sidebar-subscription {
	padding: 0 16px 10px;
}

.nwm-btn-subscription {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 14px;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #fff;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	transition: filter .2s ease, transform .1s ease;
	box-shadow: 0 2px 8px rgba(245, 158, 11, .35);
}

.nwm-btn-subscription:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}

.nwm-btn-subscription:active {
	transform: translateY(0);
}
