@import url('https://googleapis.com');

/* ================================================================== */
/* 🎨 DASHBOARD SAAS ULTRA-PREMIUM (ESTILO CLEAN MINIMALISTA)         */
/* ================================================================== */
body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important; 
    background-color: #f8fafc; 
    color: #0f172a; 
    margin: 0; 
    padding: 30px 20px; 
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1240px; margin: 0 auto; }

/* 🛸 HEADER PRINCIPAL */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 24px; 
    background: #ffffff; 
    padding: 20px 30px; 
    border-radius: 14px; 
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}
.header h2 { margin: 0; color: #0f172a; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.btn-sair { 
    padding: 10px 20px; 
    background: #ef4444; /* 🔴 Fundo vermelho sólido impactante */
    color: #ffffff !important; /* ⬜ Texto branco puro garantido */
    border: none; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 13px; 
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    display: inline-block;
}
.btn-sair:hover { 
    background: #dc2626; 
    transform: translateY(-1px); 
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3); 
}

/* ✨ CARDS (FORMULÁRIO E TABELA) */
.card-form { 
    background: #ffffff; 
    padding: 24px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px; 
    border: 1px solid #f1f5f9;
}
.card-table { 
    background: #ffffff; 
    padding: 26px 30px; 
    border-radius: 14px; 
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px; 
    border: 1px solid #e2e8f0;
}
.card-title { 
    font-size: 14px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    color: #334155; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* 📐 FORMULÁRIO DE CADASTRO PREMIUM */
.row-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 16px; 
    align-items: end; /* 🎯 Alinha rigorosamente todas as bases dos inputs */
}
.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 6px;
}
.form-group label { 
    font-size: 13px; /* 👈 Aumentado para dar mais destaque fora */
    font-weight: 700; 
    color: #1e293b; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}


.input-field { 
    padding: 0 12px; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 500;
    color: #1e293b;
    background: #f8fafc; /* 🌌 Fundo suave ultra moderno */
    transition: all 0.2s ease; 
    box-sizing: border-box; 
    height: 38px;
    width: 100%;
}
.input-field:focus { 
    background-color: #ffffff;
    border-color: #0284c7; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}
.btn-submit { 
    grid-column: span 4; 
    justify-self: center; /* 🎯 Centraliza o botão elegantemente sem esticar tudo */
    height: 40px;
    padding: 0 32px; 
    background: #00b55b; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 13px; 
    margin-top: 8px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 181, 91, 0.15);
    transition: all 0.2s ease; 
}
.btn-submit:hover { 
    background: #00964a; 
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 181, 91, 0.2);
}
.btn-submit:active {
    transform: translateY(0);
}

/* 📊 TABELA DE GERENCIAMENTO MODERNIZADA */
.card-table { overflow-x: auto; width: 100%; box-sizing: border-box; padding: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 100%; }
th { background: #f8fafc; color: #475569; padding: 14px 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e2e8f0; }
td { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #334155; }
tr:hover { background-color: #f8fafc; }

/* 🏷️ BADGES DE STATUS REFINADAS (FONTES AMPLIADAS) */
.badge { padding: 4px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.bg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bg-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fee2e2; }

/* 🎯 BADGE DE SUBDOMÍNIO ATUALIZADA: Grande, encorpada e super nítida */
.bg-sub { 
    background: #f1f5f9; 
    color: #1e293b; 
    font-weight: 600; 
    font-size: 14px; 
    border: 1px solid #e2e8f0; 
    padding: 3px 6px; /* 🎯 Reduzido para economizar espaço e sumir com a rolagem horizontal */
    border-radius: 6px;
}

/* ==================================================================
   🎯 COMPACTAÇÃO NATURAL ANTI-ROLAGEM HORIZONTAL (SEM !IMPORTANT)
   ================================================================== */
.card-table table thead tr th,
.card-table table tbody tr td {
    padding: 8px 3px; /* 👈 Comprime as laterais naturalmente para caber no seu monitor */
}

.acoes-cobranca-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    width: 100%;
}

.form-linha-controles {
    margin: 0;
    display: inline-flex;
    gap: 4px; /* 👈 Reduz o espaçamento de separação entre as caixinhas */
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

/* ⚙️ CONTROLES DA LINHA DA TABELA */
.btn-save { 
    padding: 0 10px; 
    background: #2563eb; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 13px; 
    transition: all 0.2s ease; 
    height: 32px;
}
.btn-save:hover { background: #1d4ed8; }

/* 🛸 TELA DE LOGIN (ESTILO GLASSMORPHISM) */
.body-login { 
    background: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%); 
    font-family: 'Inter', system-ui, sans-serif !important; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
    max-height: 100vh; 
    margin: 0; 
    padding: 0;
    overflow: hidden !important; 
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}
.card-login { 
    background: #ffffff; 
    padding: 24px 35px; 
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    text-align: center; 
    width: 100%; 
    max-width: 360px; 
    margin: auto; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}
.card-login h3 { margin: 0 0 6px 0; color: #0f172a; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.card-login p { color: #475569; font-size: 13px; margin: 0 0 20px 0; font-weight: 600; line-height: 1.4; }
.form-control-login { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 16px; 
    border: 1px solid #cbd5e1; 
    border-radius: 12px; 
    box-sizing: border-box; 
    text-align: center; 
    font-size: 15px; 
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}
.form-control-login:focus { border-color: #2563eb; background: #ffffff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); outline: none; }
.btn-login { 
    width: 100%; 
    padding: 12px; 
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); 
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 15px; 
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4); }
.alert-login { background: #fee2e2; color: #991b1b; padding: 12px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 600; }



/* ==================================================================
   🎯 CONTROLES E BOTÕES DO PAINEL DE LICENÇAS (REORGANIZADO)
   ================================================================== */

/* Container das ações na célula da tabela */
.acoes-cobranca-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
}

/* Formulário da Linha 1 */
.form-linha-controles {
    margin: 0;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

/* Texto do telefone */
.texto-telefone-compacto {
    font-size: 11px;
    color: #4b5563;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 2px;
}

/* Caixinha azul do valor */
.input-valor-SaaS {
    padding: 4px 6px;
    font-size: 14px; /* 👈 Letra do preço maior e mais legível */
    width: 75px;    /* 👈 Aumentado para 75px para o valor não ficar apertado */
    height: 32px;
    box-sizing: border-box;
    margin: 0;
    font-weight: bold;
    text-align: center;
    border: 1px solid #0284c7;
    border-radius: 6px;
    background: #ffffff;
}

/* Campo de data da tabela */
.input-data-tabela {
    padding: 4px 6px;
    font-size: 12px;
    width: 110px;
    height: 30px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

/* Seletor de status com largura corrigida para 'Suspenso' */
.select-status-tabela {
    padding: 4px 6px;
    font-size: 12px;
    width: 105px; /* 🎯 Largura ajustada para caber a palavra inteira */
    height: 30px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

/* Botão Azul Salvar */
.btn-salvar-azul {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    box-sizing: border-box;
    margin: 0;
    white-space: nowrap;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-salvar-azul:hover {
    background: #0369a1;
}

/* Botão Vermelho Excluir */
.btn-excluir-linha {
    padding: 0 10px;
    font-size: 12px;
    cursor: pointer;
    margin: 0;
    height: 30px;
    box-sizing: border-box;
    line-height: 28px;
    white-space: nowrap;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-excluir-linha:hover {
    background: #dc2626;
}

/* Container do Botão do WhatsApp (Linha 2) */
.container-btn-whatsapp {
    width: 100%;
    text-align: right;
}

/* Botão Verde do WhatsApp com Ícone */
.btn-whatsapp-evolution {
    background: #00b55b;
    color: #ffffff;
    padding: 0 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    width: calc(100% - 100px);
    max-width: 250px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.2s;
}
.btn-whatsapp-evolution:hover {
    background: #00964a;
}


/* ==================================================================
   🛸 TELA DE SUSPENSÃO PREMIUM (NATURAL - SEM !IMPORTANT)
   ================================================================== */
body.body-suspensao {
    background: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.card-suspensao {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
    text-align: center;
    max-width: 440px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    animation: surgirSuspensao 0.6s ease-out;
}

.icon-box-suspensao {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: #f87171;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.card-suspensao h2.title-suspensao {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subtitulo-suspensao {
    color: #f87171;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: block;
}

.card-suspensao p.texto-suspensao {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.empresa-destaque-suspensao {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
}

.btn-reativar-suspensao {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #00b55b 0%, #00964a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 181, 91, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-reativar-suspensao:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 181, 91, 0.3);
    filter: brightness(1.1);
}

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