/* Design System & Variáveis */
:root {
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --card-border: #eae8f0;
    --text-primary: #282828;
    --text-secondary: #666666;
    --primary-gradient: #282828;
    --primary-color: #282828;
    --primary-glow: rgba(40, 40, 40, 0.08);
    --success-color: #fbb300;
    --success-glow: rgba(251, 179, 0, 0.15);
    --error-color: #ff5e7e;
    
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 40px 20px;
}

/* Orbes Animados de Fundo (Aparência Premium) */
.bg-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.04;
    animation: float 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #fbb300;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #eae8f0;
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #fbb300;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* Container do Painel */
.dashboard-container {
    width: 100%;
    max-width: 680px;
    z-index: 10;
    position: relative;
}

/* Cabeçalho */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    margin-bottom: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 42px;
}

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.5;
    text-wrap: balance;
}

/* Card Principal (Visual Claro Premium) */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(40, 40, 40, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(to right, transparent, rgba(40,40,40,0.05), transparent);
}

/* Transições de Conteúdo */
.view-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Formulário e Inputs */
.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

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

@media (max-width: 580px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    body {
        padding: 20px 10px;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .subtitle {
        font-size: 0.95rem;
        line-height: 1.35;
    }
    
    .dashboard-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .loading-header h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    
    .loading-header p {
        font-size: 0.85rem;
        line-height: 1.35;
    }
    
    .success-header h2 {
        font-size: 1.7rem;
        line-height: 1.25;
    }
    
    .success-header p {
        font-size: 0.95rem;
        line-height: 1.35;
    }
    
    .step-info h3 {
        font-size: 0.95rem;
        line-height: 1.25;
    }
    
    .step-info p {
        font-size: 0.8rem;
        line-height: 1.35;
    }
    
    .result-body h4 {
        font-size: 0.95rem;
        line-height: 1.25;
    }
    
    .result-body p {
        font-size: 0.8rem;
        line-height: 1.35;
    }
}

label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.required {
    color: var(--error-color);
}

.optional {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 16px;
    background: #fcfcfc;
    border: 1px solid #eae8f0;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder, input[type="email"]::placeholder {
    color: #999999;
}

input[type="text"]:focus, input[type="email"]:focus {
    background: #ffffff;
    border-color: #fbb300;
    box-shadow: 0 0 20px rgba(251, 179, 0, 0.15);
}

/* Botões */
.btn {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #282828;
    color: white;
    font-weight: 300;
    box-shadow: 0 4px 12px rgba(40, 40, 40, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #404040;
    box-shadow: 0 6px 18px rgba(40, 40, 40, 0.2);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-primary:hover .btn-shine {
    left: 200%;
    transition: 0.8s ease-in-out;
}

/* Loading View */
.loading-header {
    text-align: center;
    margin-bottom: 40px;
}

.pulse-loader {
    width: 64px;
    height: 64px;
    background: #282828;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    animation: pulse 1.8s infinite ease-in-out;
}

.pulse-loader::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #282828;
    border-radius: 50%;
    animation: ripple 1.8s infinite ease-in-out;
    opacity: 0.5;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { transform: scale(1); box-shadow: 0 0 30px 10px rgba(40, 40, 40, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(40, 40, 40, 0); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.loading-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.loading-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-wrap: balance;
}

/* Lista de Passos */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    background: #fcfcfc;
    border: 1px solid #eae8f0;
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.4s ease;
}

.step-status {
    width: 28px;
    height: 28px;
    margin-right: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(40, 40, 40, 0.1);
    border-top-color: #fbb300;
    border-radius: 50%;
    animation: rotate 1s infinite linear;
    display: none;
}

.check {
    color: #fbb300;
    font-size: 1.3rem;
    font-weight: 700;
    display: none;
}

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

.step-item.pending {
    opacity: 0.4;
}

.step-item.running {
    opacity: 1;
    background: rgba(251, 179, 0, 0.03);
    border-color: rgba(251, 179, 0, 0.2);
}

.step-item.running .spinner {
    display: block;
}

.step-item.completed {
    opacity: 1;
    background: rgba(251, 179, 0, 0.05);
    border-color: rgba(251, 179, 0, 0.25);
}

.step-item.completed .check {
    display: block;
}

.step-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.step-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-wrap: balance;
}

/* Success View */
.success-header {
    text-align: center;
    margin-bottom: 36px;
}

.success-badge {
    width: 72px;
    height: 72px;
    background: #282828;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 8px 30px var(--primary-glow);
}

.success-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.success-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-wrap: balance;
}

/* Grid de Resultados */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.result-card {
    display: flex;
    align-items: center;
    background: #fcfcfc;
    border: 1px solid #eae8f0;
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: #ffffff;
    border-color: #d1cedb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.result-card.highlight {
    background: rgba(251, 179, 0, 0.03);
    border-color: rgba(251, 179, 0, 0.2);
    box-shadow: 0 4px 20px rgba(251, 179, 0, 0.03);
}

.result-card.highlight:hover {
    background: rgba(251, 179, 0, 0.05);
    border-color: rgba(251, 179, 0, 0.35);
}

.result-icon {
    font-size: 1.8rem;
    margin-right: 20px;
}

.result-body {
    flex-grow: 1;
}

.result-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.result-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-wrap: balance;
}

.hidden-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.result-actions .btn {
    width: auto;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #eae8f0;
    color: var(--text-primary);
}

.btn-outline:hover {
    background: #eae8f0;
    border-color: #d1cedb;
}

.btn-action {
    background: #eae8f0;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #d1cedb;
    transform: translateY(-1px);
}

.btn-copy-highlight {
    background: #fbb300;
    color: #282828;
    box-shadow: 0 4px 12px rgba(251, 179, 0, 0.2);
}

.btn-copy-highlight:hover {
    background: #e0a000;
    box-shadow: 0 6px 16px rgba(251, 179, 0, 0.35);
    transform: translateY(-1px);
}

.btn-reset {
    margin-top: 10px;
    background: #eae8f0;
    border: 1px solid #eae8f0;
    color: var(--text-primary);
}

.btn-reset:hover {
    background: #d1cedb;
    border-color: #d1cedb;
}

/* Animações */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-success {
    animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Card Gmail Destacado */
.result-card.highlight-email {
    background: rgba(251, 179, 0, 0.03);
    border-color: rgba(251, 179, 0, 0.25);
    box-shadow: 0 4px 20px rgba(251, 179, 0, 0.05);
}

.result-card.highlight-email:hover {
    background: rgba(251, 179, 0, 0.05);
    border-color: rgba(251, 179, 0, 0.4);
}

.result-card.highlight-email .btn-copy-highlight {
    background: #fbb300;
    color: #282828;
    box-shadow: 0 4px 15px rgba(251, 179, 0, 0.2);
}

.result-card.highlight-email .btn-copy-highlight:hover {
    background: #e0a000;
    box-shadow: 0 6px 20px rgba(251, 179, 0, 0.35);
    transform: translateY(-1px);
}

/* Modal de Prévia do E-mail */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #ffffff;
    border: 1px solid #eae8f0;
    border-radius: 24px;
    width: 100%;
    max-width: 760px;
    height: 90vh;
    max-height: 750px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Header do Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #eae8f0;
}

.modal-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-icon {
    font-size: 1.8rem;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.close-btn {
    background: #f4f4f4;
    border: 1px solid #eae8f0;
    color: var(--text-secondary);
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #eae8f0;
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Abas */
.modal-tabs {
    display: flex;
    background: #fcfcfc;
    padding: 6px;
    gap: 6px;
    border-bottom: 1px solid #eae8f0;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(40, 40, 40, 0.03);
}

.tab-btn.active {
    color: #ffffff;
    background: #282828;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 40, 40, 0.15);
}

/* Corpo do Modal */
.modal-body {
    flex-grow: 1;
    padding: 24px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.tab-content {
    display: none;
    height: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Iframe da Prévia */
.iframe-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eae8f0;
    background: #f8f7fa;
}

#emailPreviewIframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Área de Código */
.code-area-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-copy-code {
    width: auto;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    background: #282828;
    border: 1px solid #282828;
    color: white;
}

.btn-copy-code:hover {
    background: #404040;
    border-color: #404040;
    transform: translateY(-1px);
}

#emailCodeTextarea {
    flex-grow: 1;
    background: #fcfcfc;
    border: 1px solid #eae8f0;
    border-radius: 12px;
    padding: 16px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    resize: none;
    outline: none;
}

#emailCodeTextarea:focus {
    border-color: #fbb300;
}

/* Floating Labels - Premium Style */
.form-floating {
    position: relative;
    margin-bottom: 25px;
}

.form-floating input,
.form-floating select,
.form-floating textarea {
    width: 100%;
    background: #fdfdfd;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px 20px 12px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
}

.form-floating select {
    appearance: none;
    cursor: pointer;
}

.form-floating label {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 15px;
    color: #888;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-weight: 400;
    background: transparent;
}

/* Float the label when input is focused or not empty, and always for select */
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating select ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fbb300;
}

.form-floating input:focus,
.form-floating select:focus,
.form-floating textarea:focus {
    border-color: #fbb300;
    box-shadow: 0 0 0 4px rgba(251, 179, 0, 0.1);
}

/* Diagnóstico do Sistema & Base de Clientes */
.btn-healthcheck {
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-healthcheck:hover {
    background: #eae8f0;
    color: var(--text-primary);
    border-color: #d1cedb;
    transform: translateY(-1px);
}

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

.dashboard-tabs {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 6px;
    gap: 6px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(40, 40, 40, 0.02);
}

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

.clients-title-area h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.clients-title-area p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-wrapper {
    flex-grow: 1;
    max-width: 350px;
    position: relative;
}

#clientSearchInput {
    width: 100%;
    padding: 12px 16px;
    background: #fdfdfd;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

#clientSearchInput:focus {
    border-color: #fbb300;
    box-shadow: 0 0 0 3px rgba(251, 179, 0, 0.1);
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.clients-table th {
    background: #fcfcfc;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}

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

.clients-table tr:last-child td {
    border-bottom: none;
}

.clients-table tr:hover td {
    background: rgba(40, 40, 40, 0.01);
}

.empty-field {
    color: #ccc;
    font-style: italic;
}

.copyable-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.copy-cell-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.copy-cell-btn:hover {
    opacity: 1;
    background: #eae8f0;
}

.copy-cell-btn.copied {
    opacity: 1;
    color: #fbb300;
    font-weight: bold;
    transform: scale(1.1);
}

.truncated-address {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.client-wa-link {
    color: #fbb300;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.client-wa-link:hover {
    color: #e0a000;
    text-decoration: underline;
}

.client-name-cell {
    font-weight: 600;
}

.client-email-cell {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Health Check Specific styles */
.health-modal {
    max-height: 480px;
}

.health-status-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.health-item {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.health-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.health-icon {
    font-size: 1.6rem;
    margin-right: 16px;
}

.health-details {
    flex-grow: 1;
}

.health-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.health-details .status-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.health-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-loading {
    background: rgba(40, 40, 40, 0.05);
    color: var(--text-secondary);
}

.status-ok {
    background: rgba(251, 179, 0, 0.1);
    color: #d89600;
}

.status-error {
    background: rgba(255, 94, 126, 0.1);
    color: var(--error-color);
}

.btn-retest {
    background: #eae8f0;
    color: var(--text-primary);
    border: 1px solid #eae8f0;
    font-weight: 600;
}

.btn-retest:hover {
    background: #d1cedb;
    border-color: #d1cedb;
}

