/* ==========================================================================
   MARKETLIST HUB - NEO-TACTILE & FROSTED GLASS UI DESIGN SYSTEM
   Inspirado em: Frosted Glassmorphism, 3D Soft Tactile Embossing,
   Glow Accents, Depth Shadows e Curvaturas Elegantes.
   ========================================================================== */

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Cores Oficiais Marketlist & Destaques Neo-Tactile */
    --ml-orange-primary: #FF5500;
    --ml-orange-glow: #FF6A00;
    --ml-orange-light: #FFA14A;
    --ml-red-accent: #DC2626;
    --ml-red-dark: #991B1B;
    
    /* Acentos Tácteis Tecnológicos (Ciano/Azul Elétrico & Roxo Suave) */
    --neo-cyan-glow: #06B6D4;
    --neo-cyan-bright: #22D3EE;
    --neo-blue-active: #3B82F6;
    --neo-blue-glow: 0 0 20px rgba(59, 130, 246, 0.5);

    /* Gradientes */
    --ml-gradient-brand: linear-gradient(135deg, #FF5500 0%, #E11D48 100%);
    --ml-gradient-tactile: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    --ml-gradient-blue-active: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --ml-gradient-pill: linear-gradient(135deg, rgba(255, 85, 0, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);

    /* Backgrounds Neo-Tactile Dark Frosted */
    --bg-page: #080B11;
    --bg-surface: rgba(13, 17, 26, 0.75);
    --bg-card: rgba(18, 24, 38, 0.65);
    --bg-card-solid: #121826;
    --bg-card-hover: rgba(26, 34, 52, 0.75);
    --bg-tactile-light: #E2E8F0;
    --bg-tactile-light-hover: #F1F5F9;
    --bg-input: rgba(10, 14, 23, 0.75);
    
    /* Bordas de Vidro (Glass Stroke) */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-glass-top: rgba(255, 255, 255, 0.25);
    --border-brand: rgba(255, 85, 0, 0.45);
    --border-brand-glow: 0 0 20px rgba(255, 85, 0, 0.35);

    /* Sombras & Profundidade Táctil (Neo-Tactile Shadows) */
    --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --shadow-tactile-card: 0 16px 40px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    --shadow-tactile-light: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 4px rgba(0, 0, 0, 0.08);
    --shadow-tactile-pressed: inset 0 3px 6px rgba(0, 0, 0, 0.4);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.45);

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #8492A6;
    --text-brand: #FF6A00;

    /* Status */
    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-danger: #EF4444;

    /* Formas & Raios Arredondados Neo-Tactile */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    
    --transition-fast: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-tactile: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset Global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 85, 0, 0.45) rgba(10, 14, 23, 0.95);
}

/* Custom Scrollbars com Identidade Visual Marketlist & Brilho Táctil */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0A0E17;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.6) 0%, rgba(220, 38, 38, 0.6) 100%);
    border-radius: 10px;
    border: 2px solid #0A0E17;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF6A00 0%, #EF4444 100%);
    box-shadow: 0 0 16px rgba(255, 85, 0, 0.85);
}

::-webkit-scrollbar-corner {
    background: #0A0E17;
}

/* Barra de Rolagem Superior para visualização fácil de cabeçalhos extensos */
.top-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
    margin-bottom: 8px;
    border-radius: var(--radius-pill);
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid rgba(255, 85, 0, 0.35);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.top-scroll-wrapper::-webkit-scrollbar {
    height: 10px;
}

.top-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.top-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF5500 0%, #DC2626 100%);
    border-radius: 10px;
    border: 2px solid #0A0E17;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

.top-scroll-content {
    height: 1px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(255, 85, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: var(--ml-orange-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #FFC085;
}

/* Layout Geral */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Frosted Glassmorphism com Luz Táctil */
.app-sidebar {
    width: 275px;
    background: rgba(13, 17, 26, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.app-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.4) 0%, rgba(6, 182, 212, 0.2) 50%, transparent 100%);
}

.sidebar-header {
    padding: 26px 22px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-tree-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(255, 85, 0, 0.6));
    transition: var(--transition-tactile);
}

.brand-link:hover .brand-tree-icon {
    transform: scale(1.05) rotate(-3deg);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    line-height: 1.1;
}

.brand-name span {
    color: var(--ml-orange-primary);
}

.brand-tagline {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Badge de Usuário com Efeito Táctil */
.sidebar-user-badge {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.user-avatar-initial {
    width: 40px;
    height: 40px;
    background: var(--ml-gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(255, 85, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-display-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Navegação Sidebar */
.sidebar-nav {
    flex: 1;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 12px 12px 6px;
    opacity: 0.8;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--transition-tactile);
    border: 1px solid transparent;
}

.nav-item svg {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.nav-item:hover svg {
    color: var(--ml-orange-light);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.18) 0%, rgba(220, 38, 38, 0.12) 100%);
    border: 1px solid rgba(255, 85, 0, 0.4);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 85, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-item.active svg {
    color: var(--ml-orange-primary);
    filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.6));
}

.sidebar-sftp-widget {
    margin: 14px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
    padding: 16px 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logout-link:hover {
    color: #F87171 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-online {
    background-color: #10B981;
    box-shadow: 0 0 12px #10B981;
}

/* Área Principal */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content-wrapper {
    padding: 32px 40px;
    flex: 1;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   NEO-TACTILE FROSTED CARDS & PANELS
   Painéis de vidro fosco com brilho ciano na base (referência Neo-Tactile)
   ========================================================================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-tactile-card);
    padding: 28px;
    margin-bottom: 26px;
    position: relative;
    transition: var(--transition-tactile);
    overflow: hidden;
}

/* Linha de brilho ciano/turquesa na base do card (Neo-Tactile signature) */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neo-cyan-bright), var(--neo-cyan-glow), transparent);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.card:hover::after {
    opacity: 1;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    border-top-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 30px rgba(6, 182, 212, 0.08);
}

.card-header {
    margin-bottom: 22px;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.card-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

/* Banner Hero Estilo Marketlist com Frosted Glass Glow */
.sftp-banner-card {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.15) 0%, rgba(18, 24, 38, 0.85) 50%, rgba(6, 182, 212, 0.1) 100%);
    backdrop-filter: blur(24px);
    border: 1.5px solid rgba(255, 85, 0, 0.4);
    border-top: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 85, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sftp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 85, 0, 0.15);
    border: 1px solid rgba(255, 85, 0, 0.45);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: var(--ml-orange-light);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.2);
}

.banner-title {
    font-size: 21px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.banner-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    max-width: 720px;
}

.sftp-banner-actions {
    display: flex;
    gap: 12px;
}

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

.stat-card {
    background: rgba(18, 24, 38, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-tactile-card);
    transition: var(--transition-tactile);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neo-cyan-bright), var(--neo-cyan-glow), transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(59, 130, 246, 0.15);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.icon-blue { background: rgba(255, 85, 0, 0.15); color: var(--ml-orange-light); border: 1.5px solid rgba(255, 85, 0, 0.35); }
.icon-indigo { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1.5px solid rgba(59, 130, 246, 0.35); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1.5px solid rgba(16, 185, 129, 0.35); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1.5px solid rgba(245, 158, 11, 0.35); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #C084FC; border: 1.5px solid rgba(168, 85, 247, 0.35); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    font-family: var(--font-mono);
    margin-top: 3px;
    letter-spacing: -0.5px;
}

/* Tabelas com Acabamento Vidro */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.data-table th {
    padding: 16px 18px;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-strong);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   NEO-TACTILE BUTTONS & PILLS (Efeito 3D Alto-Relevo & Tactile Hover)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-tactile);
    text-decoration: none;
    letter-spacing: -0.2px;
    position: relative;
    user-select: none;
}

/* Botão Primário Brand (Laranja Marketlist) com Soft Embossing */
.btn-primary {
    background: var(--ml-gradient-brand);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF6A00 0%, #F43F5E 100%);
    box-shadow: 0 10px 28px rgba(255, 85, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Botão Neo-Tactile Claro (Estilo "Defart / Light Embossed" da Referência) */
.btn-tactile-light {
    background: var(--bg-tactile-light);
    color: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-tactile-light);
    font-weight: 700;
}

.btn-tactile-light:hover {
    background: var(--bg-tactile-light-hover);
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 2px 0 #FFFFFF;
}

.btn-tactile-light:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Botão Neo-Tactile Active (Azul Elétrico com Glow) */
.btn-tactile-active {
    background: var(--ml-gradient-blue-active);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-tactile-active:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Botão Secundário Dark Frosted */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-strong);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Botão Outline */
.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-secondary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Tamanhos de Botão */
.btn-sm {
    padding: 7px 16px;
    font-size: 12.5px;
    border-radius: var(--radius-pill);
}

.btn-xs {
    padding: 5px 12px;
    font-size: 11.5px;
    border-radius: var(--radius-pill);
    gap: 5px;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   NEO-TACTILE FORM CONTROLS & INPUTS
   Inspirado no visual com relevo macio, cantos arredondados, toggles e selects táteis
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

/* ==========================================================================
   NEO-TACTILE PREMIUM FROSTED INPUTS & SELECTS
   Sleek Dark Frosted Glass com bordas sutis e foco com glow de precisão
   ========================================================================== */
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(14, 20, 32, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: #F1F5F9;
    font-size: 13.5px;
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-fast);
}

.form-control::placeholder {
    color: #64748B;
}

.form-control:focus {
    outline: none;
    border-color: var(--ml-orange-primary);
    background: rgba(18, 25, 40, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 85, 0, 0.25);
}

.form-control-sm {
    padding: 8px 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

/* Select Estilo Neo-Tactile Dark Frosted */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-color: rgba(14, 20, 32, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF8800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 38px;
    color: #F1F5F9;
}

select.form-control option {
    background: #0F172A;
    color: #F1F5F9;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--ml-gradient-brand);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

/* ==========================================================================
   NEO-TACTILE TOGGLES & SWITCHES (Inspiração Direta da UI)
   ========================================================================== */
.tactile-switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tactile-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.tactile-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tactile-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
    border-radius: 34px;
    transition: var(--transition-tactile);
}

.tactile-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2.5px;
    background: #E2E8F0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 0 #FFFFFF;
    transition: var(--transition-tactile);
}

input:checked + .tactile-slider {
    background: var(--ml-gradient-blue-active);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

input:checked + .tactile-slider:before {
    transform: translateX(25px);
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 #FFFFFF;
}

/* ==========================================================================
   NEO-TACTILE SLIDERS / RANGES
   ========================================================================== */
.tactile-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: linear-gradient(90deg, #3B82F6 0%, rgba(255, 255, 255, 0.1) 100%);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tactile-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 2px 0 #FFFFFF, 0 0 0 4px rgba(59, 130, 246, 0.3);
    transition: var(--transition-fast);
}

.tactile-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   NEO-TACTILE BADGES & PILLS
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.badge-neutral { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.badge-action { background: rgba(255, 85, 0, 0.15); color: var(--ml-orange-light); border: 1px solid rgba(255, 85, 0, 0.35); font-family: var(--font-mono); }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #22D3EE; border: 1px solid rgba(6, 182, 212, 0.35); }

.badge-folder-entrada { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-folder-retorno { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-folder-arquivados { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* Alertas com Frosted Glass Glow */
.alert {
    padding: 16px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1.5px solid rgba(239, 68, 68, 0.4); color: #FCA5A5; }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1.5px solid rgba(16, 185, 129, 0.4); color: #6EE7B7; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1.5px solid rgba(245, 158, 11, 0.4); color: #FDE68A; }
.alert-info { background: rgba(255, 85, 0, 0.15); border: 1.5px solid rgba(255, 85, 0, 0.4); color: var(--ml-orange-light); }

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* Modais Frosted Glass com Efeito Tactile Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-dialog {
    background: rgba(18, 24, 38, 0.9);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 580px;
    padding: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 85, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
    font-size: 19px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

/* Utilitários */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-strong { font-weight: 700; color: #FFFFFF; }
.font-mono { font-family: var(--font-mono); }
.font-sm { font-size: 12.5px; }
.font-xs { font-size: 11px; }
.font-strong { font-weight: 700; }
.p-4 { padding: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 22px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }
.mt-4 { margin-top: 22px !important; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-neutral { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.badge-action { background: rgba(255, 85, 0, 0.12); color: var(--ml-orange-light); border: 1px solid rgba(255, 85, 0, 0.3); font-family: var(--font-mono); }

.badge-folder-entrada { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-folder-retorno { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-folder-arquivados { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* Alertas */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 500;
}

.alert-danger { background-color: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); color: #FCA5A5; }
.alert-success { background-color: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4); color: #6EE7B7; }
.alert-warning { background-color: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.4); color: #FDE68A; }
.alert-info { background-color: rgba(255, 85, 0, 0.14); border: 1px solid rgba(255, 85, 0, 0.4); color: var(--ml-orange-light); }

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

/* Modais */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid rgba(255, 85, 0, 0.35);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    padding: 28px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 85, 0, 0.15);
}

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

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Utilitários */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-strong { font-weight: 700; color: #FFFFFF; }
.font-mono { font-family: var(--font-mono); }
.font-sm { font-size: 12px; }
.font-strong { font-weight: 700; }
.p-4 { padding: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 20px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 20px !important; }
/* Debug Floating Trigger & Terminal Modal */
.floating-debug-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(14, 19, 29, 0.95);
    border: 1.5px solid rgba(255, 85, 0, 0.6);
    color: var(--ml-orange-light);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 85, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    transition: var(--transition-fast);
}

.floating-debug-btn:hover {
    background: var(--ml-gradient-brand);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 85, 0, 0.4);
}

.debug-grid-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.debug-stat-chip {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
}

.debug-log-terminal {
    background-color: #06080D;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 14px;
    max-height: 280px;
    overflow-y: auto;
    font-family: var(--font-mono);
}

.log-entry {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #F87171;
    word-break: break-all;
}

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

/* ==========================================================================
   OPERATOR DASHBOARD - REDESIGN PREMIUM (MARKETLIST DARK THEME)
   ========================================================================== */
.operator-hero-bar {
    background: linear-gradient(135deg, rgba(14, 19, 29, 0.95) 0%, rgba(20, 27, 42, 0.9) 100%);
    border: 1px solid rgba(255, 85, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.operator-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.operator-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.operator-title-badge svg {
    stroke: var(--ml-orange-primary);
}

.operator-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 300;
}

.operator-client-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--ml-orange-light);
    letter-spacing: -0.2px;
}

.operator-sftp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-pill);
    color: #6EE7B7;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

.pulse-indicator-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px #10B981; }
    50% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 14px #10B981; }
}

.btn-hero-cta {
    background: var(--ml-gradient-brand);
    color: #FFFFFF !important;
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: var(--radius-pill);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(255, 85, 0, 0.35);
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-hero-cta:hover {
    background: linear-gradient(135deg, #FF6A00 0%, #E11D48 100%);
    box-shadow: 0 6px 24px rgba(255, 85, 0, 0.55);
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

/* Grid de Estatísticas do Operador */
.operator-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .operator-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .operator-stats-grid {
        grid-template-columns: 1fr;
    }
    .operator-hero-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.op-stat-card {
    background: rgba(14, 19, 29, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition-fast);
}

.op-stat-card:hover {
    border-color: rgba(255, 85, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.op-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.op-stat-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.op-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.op-stat-icon.icon-orange {
    background: rgba(255, 85, 0, 0.12);
    color: #FFAA66;
    border: 1px solid rgba(255, 85, 0, 0.3);
}

.op-stat-icon.icon-green {
    background: rgba(16, 185, 129, 0.12);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.op-stat-icon.icon-cyan {
    background: rgba(59, 130, 246, 0.12);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.op-stat-icon.icon-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.op-stat-body {
    display: flex;
    flex-direction: column;
}

.op-stat-number {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 4px;
}

.op-stat-hint {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Tabela de Retornos */
.op-table-card {
    border: 1px solid var(--border-subtle);
}

.retorno-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
    display: inline-block;
}

.empty-retorno-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.empty-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.file-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-tag-sub {
    display: block;
    font-size: 10px;
    color: #10B981;
    font-weight: 600;
    margin-top: 2px;
}

/* Botão Quadrado com Cantos Arredondados e Destaque Flame Orange */
.btn-square-rounded {
    background: linear-gradient(135deg, #FF5500 0%, #DC2626 100%) !important;
    color: #FFFFFF !important;
    padding: 14px 34px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 170, 102, 0.4) !important;
    box-shadow: 0 8px 24px rgba(255, 85, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    letter-spacing: -0.2px !important;
    cursor: pointer !important;
}

.btn-square-rounded:hover {
    background: linear-gradient(135deg, #FF6A00 0%, #EF4444 100%) !important;
    box-shadow: 0 12px 30px rgba(255, 85, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #FFFFFF !important;
}

/* Reordenação de Colunas no Mapeamento e Novas Colunas */
.order-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.drag-handle {
    cursor: grab;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 26px;
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.drag-handle:hover {
    color: var(--ml-orange-light);
    background: rgba(255, 85, 0, 0.15);
}

.drag-handle:active {
    cursor: grabbing;
}

.mapping-row.dragging {
    opacity: 0.45;
    background: rgba(255, 85, 0, 0.15) !important;
}

.mapping-row.drag-over {
    border-top: 2px solid var(--ml-orange-primary) !important;
}

/* Linha de Coluna Nova Personalizada com Cor de Destaque */
.mapping-row-custom {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%) !important;
    border-left: 3px solid #A855F7 !important;
}

.mapping-row-custom:hover td {
    background: rgba(168, 85, 247, 0.12) !important;
}

.badge-custom-col {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #D8B4FE;
    font-weight: 700;
}

.btn-order {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    transition: var(--transition-fast);
    padding: 0;
}

.btn-order:hover:not(:disabled) {
    background: rgba(255, 85, 0, 0.2);
    border-color: var(--ml-orange-primary);
    color: #FFFFFF;
}

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

.btn-remove-row {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-remove-row:hover {
    background: #DC2626;
    color: #FFFFFF;
}

/* ==========================================================================
   FLOATING DEBUG DOCK & TELEMETRY (Neo-Tactile Glassmorphism)
   ========================================================================== */
#debugFloatingDock {
    position: fixed;
    bottom: 18px;
    right: 22px;
    z-index: 9999;
    border-radius: var(--radius-md);
    background: rgba(13, 17, 26, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 85, 0, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 85, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-main);
    color: var(--text-primary);
    overflow: hidden;
}

#debugFloatingDock.debug-dock-collapsed {
    width: auto;
    max-width: 280px;
}

#debugFloatingDock.debug-dock-collapsed .debug-dock-body {
    display: none;
}

#debugFloatingDock.debug-dock-expanded {
    width: 680px;
    max-width: calc(100vw - 40px);
}

.debug-dock-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 15px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.12) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-fast);
}

.debug-dock-trigger:hover {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.22) 0%, rgba(220, 38, 38, 0.12) 100%);
}

.debug-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.debug-trigger-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.debug-btn-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.debug-dock-expanded .debug-icon-toggle {
    transform: rotate(180deg);
}

.debug-dock-body {
    padding: 14px 18px 18px 18px;
}

.debug-dock-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.debug-dock-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.debug-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.debug-tab:hover {
    background: rgba(255, 85, 0, 0.12);
    color: #FFFFFF;
    border-color: rgba(255, 85, 0, 0.3);
}

.debug-tab.active {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: var(--ml-orange-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.25);
}

.debug-dock-content {
    max-height: 380px;
    overflow-y: auto;
}

.debug-grid-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.debug-stat-chip {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.debug-folder-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.debug-folder-item {
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 8px 12px;
}

.debug-log-terminal {
    background: #05070A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-entry {
    color: #F87171;
    word-break: break-all;
    line-height: 1.4;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
