/* Estilos Base y Tipografía */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f4f7f6; 
    color: #334155; 
}

/* Cabecera Principal */
.header-section { 
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); 
    color: white; 
    padding: 25px 0; 
    border-bottom: 5px solid #ffd700; 
}

/* Tarjetas y Contenedores */
.card { 
    border: none; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    overflow: hidden; 
}

/* Cabeceras de Sección estilo "Botón" */
.card-header-cuak { 
    background-color: #fff; 
    border-bottom: 1px solid #eee; 
    padding: 10px 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.header-badge { 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 6px; 
    color: white; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 0.5px; 
}

/* Registros DNS */
.dns-badge { 
    width: 55px; 
    text-align: center; 
    font-weight: bold; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    display: inline-block; 
}

.dns-value { 
    font-family: 'SFMono-Regular', Consolas, monospace; 
    font-size: 0.85rem; 
    word-break: break-all; 
    white-space: pre-wrap; 
}

.dns-row { 
    border-bottom: 1px solid #f8f9fa; 
    padding: 8px 0; 
}

/* Escáner de Puertos - Diseño de Etiquetas a la Izquierda */
.port-row { 
    border-bottom: 1px solid #f1f5f9; 
    padding: 6px 0; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
}

.port-label { 
    font-size: 0.6rem; 
    font-weight: 700; 
    padding: 2px 6px; 
    border-radius: 4px; 
    text-transform: uppercase; 
    background: #e2e8f0; 
    color: #475569; 
    display: inline-block; 
    min-width: 55px; 
    text-align: center;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.port-label.open {
    background: #dcfce7; /* Verde suave */
    color: #15803d;      /* Texto verde fuerte */
    border: 1px solid #86efac;
}

.port-number {
    font-size: 0.85rem;
    font-family: monospace;
}

.port-number.open {
    color: #15803d;
    font-weight: 700;
}

.port-group-title { 
    font-size: 0.6rem; 
    font-weight: 800; 
    color: #94a3b8; 
    text-transform: uppercase; 
    margin-top: 12px; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 2px; 
}

/* Bloque WHOIS */
.whois-scroll { 
    background: #1e293b; 
    color: #f8fafc; 
    padding: 20px; 
    border-radius: 6px; 
    font-family: monospace; 
    font-size: 0.85rem; 
    max-height: 500px; 
    overflow-y: auto; 
    white-space: pre-wrap; 
    line-height: 1.6; 
}

/* Estado de Carga */
#btn-loading { 
    display: none; 
}

* Selectores de Módulos */
.module-selectors {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 15px;
}

.form-check-input:checked {
    background-color: #1a2a6c;
    border-color: #1a2a6c;
}

.form-check-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}