/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


    html {
      min-width: 420px;
      max-width: 450px;
      height: 100%;
    }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0b141a;
    color: #e9edef;
    width: 420px;
    min-height: 600px;
    font-size: 14px;
    line-height: 1.4;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #0b141a 0%, #1f2937 100%);
}

/* Header */
.header {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.logo svg {
    color: white;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #10b981;
}

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

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: #1f2937;
    border-bottom: 1px solid #374151;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #9ca3af;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    position: relative;
}

.tab-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
}

.tab-btn.active {
    color: #128c7e;
    background: rgba(18, 140, 126, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #128c7e, #075e54);
    box-shadow: 0 0 8px rgba(18, 140, 126, 0.5);
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

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

/* Section */
.section {
    margin-bottom: 24px;
}

.section h3 {
    color: #e9edef;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.description {
    color: #8696a0;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

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

label {
    display: block;
    color: #e9edef;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: #2a3942;
    border: 1px solid #3b4a54;
    border-radius: 8px;
    padding: 10px 12px;
    color: #e9edef;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 40px;
}

.form-control:focus {
    outline: none;
    border-color: #128c7e;
    box-shadow: 0 0 0 2px rgba(18, 140, 126, 0.2);
    background: #374151;
}

.form-control::placeholder {
    color: #8696a0;
}

textarea.form-control {
    min-height: 80px;
    font-family: inherit;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-area {
    border: 2px dashed #3b4a54;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #8696a0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #128c7e;
    background: rgba(18, 140, 126, 0.05);
}

.file-upload-area svg {
    margin-bottom: 8px;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.4);
}

.btn-secondary {
    background: #374151;
    color: #e9edef;
    border: 1px solid #4b5563;
}

.use-template {
  background-color: #25d366;   /* verde WhatsApp */
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.use-template:hover {
  background-color: #1ebe5a;
}

.use-template:active {
  transform: scale(0.96);
}
.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-1px);
}

.delete-template {
  background-color: #ff4d4d;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.delete-template:hover {
  background-color: #e04444;
}

.delete-template:active {
  transform: scale(0.96);
}

.delete-scheduled {
  background-color: #ff4d4d;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.delete-scheduled:hover {
  background-color: #e04444;
}

.delete-scheduled:active {
  transform: scale(0.96);
}


.btn-link {
    background: none;
    color: #128c7e;
    border: none;
    padding: 4px 0;
    font-size: 12px;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0d7377;
}

/* Glow Effect */
.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(45deg, #128c7e, #075e54, #128c7e);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow:hover::before {
    opacity: 0.7;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
}

/* Progress */
.progress-container {
    margin: 20px 0;
    padding: 16px;
    background: #2a3942;
    border-radius: 8px;
    border: 1px solid #3b4a54;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #3b4a54;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #128c7e, #075e54);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(18, 140, 126, 0.5);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8696a0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.stat-card {
    background: #2a3942;
    border: 1px solid #3b4a54;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #128c7e;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: #8696a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Template List */
.template-list {
    margin-bottom: 20px;
}

.template-item {
    background: #2a3942;
    border: 1px solid #3b4a54;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.template-item:hover {
    background: #374151;
    transform: translateX(4px);
}

.template-info h4 {
    color: #e9edef;
    font-size: 14px;
    margin-bottom: 4px;
}

.template-info p {
    color: #8696a0;
    font-size: 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.template-actions button {
    background: none;
    border: none;
    color: #8696a0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.template-actions button:hover {
    color: #128c7e;
    background: rgba(18, 140, 126, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 400px) {
    body {
        width: 100vw;
    }
    
    .container {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* Results Tab Styles */
.results-summary {
    margin-bottom: 20px;
}

.stat-card.success .stat-number {
    color: #10b981;
}

.stat-card.error .stat-number {
    color: #ef4444;
}

.results-tabs {
    display: flex;
    background: #1f2937;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.result-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #9ca3af;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.result-tab-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
}

.result-tab-btn.active {
    background: #128c7e;
    color: white;
}

.results-content {
    position: relative;
    min-height: 200px;
}

.result-pane {
    display: none;
}

.result-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.result-list {
    background: #2a3942;
    border: 1px solid #3b4a54;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #3b4a54;
}

.result-item:last-child {
    border-bottom: none;
}

.result-number {
    font-family: monospace;
    color: #e9edef;
    font-size: 14px;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.result-status.success {
    color: #10b981;
}

.result-status.error {
    color: #ef4444;
}

.result-time {
    color: #8696a0;
    font-size: 11px;
}

.empty-state {
    text-align: center;
    color: #8696a0;
    padding: 40px 20px;
}

.empty-state svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Scheduled List Styles */
.scheduled-list {
    margin: 20px 0;
    background: #2a3942;
    border: 1px solid #3b4a54;
    border-radius: 8px;
    padding: 16px;
}

.scheduled-list h4 {
    color: #e9edef;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scheduled-item {
    background: #374151;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #128c7e;
}

.scheduled-item:last-child {
    margin-bottom: 0;
}

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

.scheduled-time {
    color: #128c7e;
    font-weight: 600;
    font-size: 14px;
}

.scheduled-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.scheduled-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.scheduled-status.sending {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.scheduled-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.scheduled-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.scheduled-details {
    color: #8696a0;
    font-size: 12px;
    line-height: 1.4;
}

.scheduled-message {
    color: #e9edef;
    font-size: 13px;
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduled-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.scheduled-actions button {
    background: none;
    border: 1px solid #3b4a54;
    color: #8696a0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scheduled-actions button:hover {
    border-color: #128c7e;
    color: #128c7e;
}

.scheduled-actions button.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Media Type Conditional Display */
.media-conditional {
    transition: all 0.3s ease;
}

.media-conditional.hidden {
    display: none !important;
}

/* Bulk Progress Styles */
.bulk-progress {
    margin: 20px 0;
}

/* File Upload Enhanced */
.file-upload-area.has-file {
    border-color: #128c7e;
    background: rgba(18, 140, 126, 0.1);
}

.file-upload-area.has-file span {
    color: #128c7e;
}

/* Responsive adjustments for new tab */
@media (max-width: 400px) {
    .nav-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        min-width: 70px;
        font-size: 10px;
        padding: 10px 6px;
    }
    
    .results-tabs {
        flex-direction: column;
    }
    
    .scheduled-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}


/* Estilos para ações de agendamentos */
.scheduled-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.scheduled-actions button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scheduled-actions button:hover {
    background: #ff3742;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.scheduled-actions button:active {
    transform: scale(0.95);
}


/* Container dos toasts */
#toastContainer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

/* Toast base */
.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  color: #fff;
}

/* Estado visível */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cores por tipo */
.toast.success { background: #25d366; }    /* verde WhatsApp */
.toast.error   { background: #ff4d4d; }
.toast.warning { background: #ffb020; color: #111; }
.toast.info    { background: #2d9cdb; }


.file-upload-area { transition: all .15s ease; }
.file-upload-area.dragover { border-color: #128c7e; background: rgba(18,140,126,0.08); }
.file-upload-area.has-file { border-color: #128c7e; }
.file-name { display:block; margin-top:6px; font-size:0.9rem; color:#233; }

/* === Estilos de Licenciamento === */
.license-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: #2a3942;
    border-radius: 8px;
    border: 1px solid #3b4a54;
}

.status-label {
    font-weight: 600;
    color: #aaa;
}

.status-value {
    font-weight: 700;
    font-size: 1.1em;
}

.license-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #2a3942;
    border-radius: 6px;
}

.info-label {
    font-weight: 600;
    color: #aaa;
    min-width: 120px;
}

.info-value {
    flex: 1;
    color: #fff;
    font-family: monospace;
    font-size: 0.9em;
}

.btn-icon {
    background: #128c7e;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-icon:hover {
    background: #075e54;
}

#licenseInputGroup {
    margin: 20px 0;
}

#licenseManagementButtons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#licenseManagementButtons .btn {
    flex: 1;
}

#licenseMessage {
    border-radius: 6px;
    padding: 12px;
    font-size: 0.9em;
}

#licenseMessageText {
    margin: 0;
    color: #fff;
}

/* Resultados em quatro categorias */
.stat-card.number-not-found .stat-number { color: #f59e0b; }
.stat-card.chat-not-loaded .stat-number { color: #60a5fa; }
.results-tabs { flex-wrap: wrap; }
.result-tab-btn { flex: 1 1 50%; min-width: 0; font-size: 12px; padding: 10px 8px; }
.result-item { justify-content: flex-start; line-height: 1.35; word-break: break-word; }

/* Ação de limpeza da aba Extrair */
.clear-extracted-btn {
    margin-top: 12px;
    color: #f15c6d;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-extracted-btn:hover:not(:disabled) {
    color: #ff7b89;
}

.clear-extracted-btn:disabled {
    color: #667781;
    opacity: 0.55;
}

/* === Etapa 2 / v1.1.1: recuperação de campanha === */
.bulk-recovery-card {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
}

.bulk-recovery-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 7px;
    color: #fbbf24;
}

.bulk-recovery-summary,
.bulk-recovery-warning,
.bulk-recovery-media {
    font-size: 12px;
    line-height: 1.45;
    color: #d9e0e5;
    margin-top: 6px;
}

.bulk-recovery-warning {
    padding: 8px 10px;
    border-radius: 7px;
    background: rgba(239, 68, 68, 0.10);
    color: #fca5a5;
}

.bulk-recovery-media {
    color: #93c5fd;
}

.bulk-recovery-actions {
    margin-top: 12px;
}

.bulk-recovery-actions .btn {
    flex: 1;
}


/* === Retomada manual após reinício - v1.1.1.9 === */
.pending-resume-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.pending-resume-modal {
    width: min(100%, 360px);
    border-radius: 16px;
    padding: 20px;
    background: var(--bg-secondary, #1f2937);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.pending-resume-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    background: rgba(37, 211, 102, 0.14);
    color: #25d366;
}

.pending-resume-modal h3 {
    margin: 4px 0 10px;
    line-height: 1.3;
}

.pending-resume-modal p {
    margin: 0 0 10px;
    opacity: 0.86;
    line-height: 1.45;
    font-size: 13px;
}

.pending-resume-progress {
    margin: 10px 0 16px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.pending-resume-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pending-resume-actions .btn {
    width: 100%;
    margin: 0;
}

/* === Etapa 3 / v1.1.2: Pausar, Continuar, Cancelar === */
.bulk-control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bulk-control-actions .btn {
    width: 100%;
    min-width: 0;
}

.bulk-pause-note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    color: #93c5fd;
}

/* =====================================================
   WTS Pro v1.1.3 - Painel operacional / histórico / diagnóstico
   ===================================================== */
.nav-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-tabs .tab-btn {
    min-width: 58px;
}

.dashboard-title-row,
.dashboard-subsection-head,
.dashboard-current-head,
.dashboard-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-title-row {
    align-items: flex-start;
}

.dashboard-refresh-icon {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
}

.dashboard-current-card,
.dashboard-subsection {
    background: #182229;
    border: 1px solid #33424c;
    border-radius: 10px;
    padding: 13px;
    margin-bottom: 14px;
}

.dashboard-current-card {
    border-color: rgba(18, 140, 126, .55);
    background: linear-gradient(135deg, rgba(18,140,126,.13), rgba(24,34,41,.96));
}

.dashboard-kicker,
.dashboard-runtime-head {
    font-size: 12px;
    color: #9fb0ba;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
}

.dashboard-current-line {
    margin-top: 8px;
    color: #e9edef;
    font-weight: 600;
    line-height: 1.45;
}

.dashboard-current-meta,
.dashboard-subtitle,
.dashboard-updated {
    color: #8fa2ad;
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-current-meta {
    margin-top: 8px;
}

.dashboard-status-badge,
.dashboard-history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.dashboard-status-badge.running,
.dashboard-history-status.completed {
    color: #7ee8b2;
    background: rgba(16,185,129,.12);
    border-color: rgba(16,185,129,.35);
}

.dashboard-status-badge.paused {
    color: #ffd166;
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.35);
}

.dashboard-status-badge.interrupted,
.dashboard-history-status.stopped,
.dashboard-history-status.discarded {
    color: #ffb4b4;
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.35);
}

.dashboard-status-badge.idle {
    color: #a8b3ba;
    background: rgba(148,163,184,.10);
    border-color: rgba(148,163,184,.28);
}

.dashboard-mini-progress {
    margin-top: 10px;
}

.dashboard-mini-progress-track {
    height: 7px;
    background: #2a3942;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-mini-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #128c7e, #25d366);
    transition: width .25s ease;
}

.dashboard-mini-progress-text {
    margin-top: 5px;
    font-size: 11px;
    color: #9fb0ba;
    text-align: right;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}

.dashboard-stat-card {
    background: #202c33;
    border: 1px solid #33424c;
    border-radius: 9px;
    padding: 11px;
}

.dashboard-stat-value {
    font-size: 22px;
    font-weight: 750;
    color: #e9edef;
    line-height: 1.1;
}

.dashboard-stat-card.success .dashboard-stat-value { color: #25d366; }
.dashboard-stat-card.error .dashboard-stat-value { color: #ff6b6b; }
.dashboard-stat-card.rate .dashboard-stat-value { color: #8ab4f8; }

.dashboard-stat-label {
    font-size: 11px;
    color: #8fa2ad;
    margin-top: 4px;
}

.dashboard-subsection h4 {
    font-size: 14px;
    color: #e9edef;
    margin: 0 0 2px;
}

.dashboard-filter {
    max-width: 112px;
    background: #202c33;
    color: #e9edef;
    border: 1px solid #3b4a54;
    border-radius: 7px;
    padding: 6px 7px;
    font-size: 11px;
}

.dashboard-history-list,
.dashboard-runtime-list {
    margin-top: 10px;
    max-height: 245px;
    overflow-y: auto;
    border-top: 1px solid #2d3a42;
}

.dashboard-history-item,
.dashboard-runtime-item {
    padding: 10px 0;
    border-bottom: 1px solid #2d3a42;
}

.dashboard-history-item:last-child,
.dashboard-runtime-item:last-child {
    border-bottom: none;
}

.dashboard-history-top,
.dashboard-runtime-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-history-title,
.dashboard-runtime-state {
    color: #e9edef;
    font-size: 12px;
    font-weight: 650;
}

.dashboard-history-meta,
.dashboard-history-counts,
.dashboard-runtime-meta,
.dashboard-runtime-error {
    font-size: 11px;
    color: #8fa2ad;
    margin-top: 4px;
    line-height: 1.4;
    word-break: break-word;
}

.dashboard-runtime-error {
    color: #ff9b9b;
}

.dashboard-history-counts strong {
    color: #cbd5db;
    font-weight: 600;
}

.dashboard-health-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.dashboard-health-item {
    background: #202c33;
    border: 1px solid #33424c;
    border-radius: 8px;
    padding: 9px;
}

.dashboard-health-item span {
    display: block;
    color: #8fa2ad;
    font-size: 10px;
    margin-bottom: 3px;
}

.dashboard-health-item strong {
    color: #e9edef;
    font-size: 11px;
    font-weight: 650;
}

.dashboard-runtime-head {
    margin-top: 4px;
}

.dashboard-empty {
    color: #82939d;
    font-size: 12px;
    padding: 16px 4px;
    text-align: center;
}

.dashboard-actions-row {
    margin-top: 10px;
    align-items: stretch;
}

.dashboard-actions-row .btn {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
}

/* === Etapa 5 / WTS Pro v1.2.0: listas, CSV/XLSX e personalização === */
.bulk-import-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    align-items: center;
}
.bulk-import-file-btn { padding: 7px 10px; font-size: 12px; }
.bulk-sample-csv-btn {
    padding: 7px 5px;
    font-size: 12px;
    white-space: nowrap;
}
.bulk-sample-csv-help {
    margin-top: 6px;
    font-size: 10.5px;
    line-height: 1.4;
    color: #8696a0;
}
.bulk-import-card,
.bulk-lists-card,
.bulk-preview-card {
    margin-top: 10px;
    border: 1px solid rgba(18, 140, 126, .35);
    background: rgba(18, 140, 126, .07);
    border-radius: 9px;
    padding: 10px;
}
.bulk-import-title-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}
.bulk-import-summary,
.bulk-import-stats,
.bulk-personalization-head,
.bulk-template-warning {
    font-size: 11px;
    color: #aebac1;
    line-height: 1.45;
}
.bulk-import-clear { padding: 2px 4px; }
.bulk-import-grid { margin-top: 9px; }
.bulk-import-grid label { font-size: 11px; color: #d1d7db; display: block; margin-bottom: 4px; }
.bulk-import-stats { margin-top: 7px; }
.bulk-saved-list-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.bulk-saved-list-row .btn { padding: 7px 10px; }
.bulk-saved-list-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; }
.danger-link { color: #ff8a80 !important; }
.bulk-personalization { margin-top: 8px; }
.bulk-personalization-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bulk-personalization-head > span:first-child { color: #d1d7db; font-weight: 700; font-size: 12px; }
.bulk-variable-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.bulk-variable-chip {
    border: 1px solid rgba(18, 140, 126, .55);
    background: rgba(18, 140, 126, .13);
    color: #d7fff8;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}
.bulk-variable-chip:hover { background: rgba(18, 140, 126, .25); }
.bulk-template-warning {
    margin-top: 7px;
    border-left: 3px solid #f0b429;
    padding: 6px 8px;
    background: rgba(240,180,41,.08);
    color: #f5d77e;
}
.bulk-preview-card { background: rgba(11, 20, 26, .55); }
.bulk-preview-title { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.bulk-preview-item { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.06); }
.bulk-preview-item:first-child { border-top: none; padding-top: 0; }
.bulk-preview-number { font-size: 10px; color: #8696a0; margin-bottom: 2px; }
.bulk-preview-message { font-size: 11px; color: #e9edef; white-space: pre-wrap; word-break: break-word; max-height: 72px; overflow: hidden; }
