.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* ocupa toda la altura de la ventana */
}

.page-wrapper > *:not(footer-component) {
  flex: 1;  /* hace que el contenido empuje el footer hacia abajo */
}

.container-fluid  {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between; /* Logo izquierda - menú derecha */
    width: 100%;
}

.container-fluid  img {
    max-width: 80px;
}

.container-fluid  .nav {
    display: flex;
    flex-grow: 1; 
    gap: 15px; /* Separación entre los items del menú */
} 
.search-container {
    /* Fondo y tamaño */
    background-image: url('../media/banner-searchv2.png'); 
    background-size: cover; 
    background-blend-mode: overlay; /* O 'multiply', 'soft-light', etc. para diferentes efectos */
    
    background-color: rgba(255, 255, 255, 0.726);
    background-repeat: no-repeat;
    background-position: center; /* Asegura que la imagen esté centrada */
    min-height: 300px;
    
    /* Centrado Flexbox */
    display: flex;
    align-items: center; /* Centrado Vertical */
    justify-content: center; /* Centrado Horizontal */
}
/* Contenedor de navegación */
.nav {
    margin-top: 15px;
    margin-left: 30px;
    margin-right: 30px;
    background: linear-gradient(135deg, #8a8aff 0%, #4D4DFF 100%);
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
}

/* Elementos de la lista */
.nav-item {
    margin: 0 12px;
    display: flex;
    align-items: center;
}

/* Último elemento a la derecha */
.container-fluid .nav li:last-child {
    margin-left: auto;
}

/* Imagen del logo */
.nav-logo {
    max-height: 100px;
    height: auto;
    display: block;
    margin-right: 15px;
}

/* Enlaces */
.nav-link {
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s, transform 0.2s;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.nav > .nav-item > .nav-link {
    color: #ffffff;
}

/* Hover */
.nav > .nav-item > .nav-link:hover {
    color: #FFEB3B;
}

/* Activo */
.nav > .nav-item > .nav-link.active {
    background-color: #1DD1A1;
    color: #ffffff;
}

/* Deshabilitado */
.nav > .nav-item > .nav-link.disabled {
    color: #cccccc;
}


/* ===========================
   RESPONSIVE MEDIANO (MD 768–991px)
   Menú horizontal pero más pequeño
=========================== */
/* Ocultar dropdown >= 990px */
@media (min-width: 990px) {
    .d-lg-none {
        display: none !important;
    }
    .d-lg-flex {
        display: flex !important;
    }
}
/* Mostrar el dropdown solo cuando la pantalla es menor a 1100px */
@media (max-width: 1099px) {
    .navbar .dropdown {
        display: block !important;
    }
}

/* Items grandes solo ≥1100px */
@media (min-width: 1100px) {
    .custom-desktop-items {
        display: flex !important;
    }
}

/* Ocultarlos <1100px */
@media (max-width: 1099px) {
    .custom-desktop-items {
        display: none !important;
    }
}


/* Mostrar dropdown < 990px */
@media (max-width: 1100px) {
    .d-lg-none {
        display: block !important;
    }
    .d-lg-flex {
        display: none !important;
    }
}
@media (max-width: 991px) and (min-width: 768px) {

    .nav {
        padding: 6px 15px;
    }

    .nav-logo {
        max-height: 60px;
        margin-right: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 4px 8px;
    }
}


/* ===========================
   RESPONSIVE PEQUEÑO (SM - XS <768px)
   Menú colapsado tipo hamburguesa
=========================== */
@media (max-width: 767px) {

    /* Menú interno en columna */
    .nav {
        flex-direction: column;
        padding: 10px 15px;
    }

    .nav-item {
        margin: 8px 0;
    }

    /* Logo centrado */
    .nav-logo {
        max-height: 50px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* Enlaces ocupan ancho completo */
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}


/* Contenedor del formulario */
.search-div {
    display: flex;
    /* margin-top: 20px; */
    align-items: center;
    justify-content: center;
}

/* Input de búsqueda */
.d-flex .form-control {
    width: 500px;
    height: 50px;
    padding: 6px 12px;
    border: 3px solid #4D4DFF;
    border-radius: 8px 0 0 8px; /* solo esquinas izquierda redondeadas */
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Placeholder */
.d-flex .form-control::placeholder {
    color: #A0A0FF;
    opacity: 1;
}

/* Focus del input */
.d-flex .form-control:focus {
    border-color: #1DD1A1;
    box-shadow: 0 0 8px rgba(29, 209, 161, 0.4);
}

/* Botón de búsqueda */
.d-flex .btn {
    border-radius: 0 8px 8px 0; /* solo esquinas derecha redondeadas */
    border: 2px solid #4D4DFF;
    background-color: #4D4DFF;
    color: #FFFFFF;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

/* Hover del botón */
.d-flex .btn:hover {
    background-color: #1DD1A1;
    border-color: #1DD1A1;
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .search-div {
        flex-direction: column !important; /* fuerza apilamiento */
        align-items: stretch;              /* que ocupen todo el ancho */
        gap: 10px;                         /* espacio entre input y botón */
        width: 100%;
    }

    .d-flex .form-control,
    .d-flex .btn {
        width: 100% !important;            /* ocupan todo el ancho disponible */
        border-radius: 8px;                 /* bordes redondeados iguales */
    }

    .d-flex .btn {
        height: 48px;                       /* altura cómoda para móvil */
    }
}
/* Loading modal template */
.gradient-spinner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    background: conic-gradient(
        #8a8aff 0%,
        #1DD1A1 100%
    );
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black 0);
}

.error-message {
    width: 100%;
    max-width: 600px;
    background: white;
    color: #333;
    padding: 20px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-left: 5px solid #8a8aff;
}

/* icono opcional usando pseudo-elemento */
.error-message::before {
    content: "⚠";
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
    color: #8a8aff;
}

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

footer {
  margin-bottom: 0%;
}

[ng-cloak] {
  display: none !important;
}

.search-results {
    gap: 15px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    
    width: 100%;
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    color: #030303;
}

.header .domain-name {
    font-size: 24px;
    color: #4D4DFF;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: #8a8aff;
    color: white;
    padding: 5px;
    border-radius: 8px;
    border-bottom: 5px solid #1DD1A1;
    text-align: center;
}
/* .info-span {
    border-bottom: 5px solid #28a745;
} */
.stat-number {
    background: linear-gradient(135deg, #ffffff 100%);
    color: #302f2f;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    
    font-size: 14px;
    font-weight: 700;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.records-container {
    display: grid;
    gap: 10px;
}

.record-type-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.2s;
}

.record-type-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.record-type-header {
    padding: 10px 15px;
    background: #F2EDE7;
    color: rgb(2, 2, 2);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-type-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.record-count {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.record-type-content {
    width: 1200px;
    padding: 25px;
}

.record-card {
    background: #f8f9fa;
    border-left: 4px solid #8a8aff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: all 0.2s;
}

.record-card:hover {
    background: #e9ecef;
    border-left-color: #4D4DFF;
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.record-field {
    margin-bottom: 12px;
}

.record-field:last-child {
    margin-bottom: 0;
}

.field-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.field-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.field-value.highlight {
    color: #8a8aff;
    font-weight: 600;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #8a8aff;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.type-A { background: #4CAF50; }
.type-NS { background: #2196F3; }
.type-SOA { background: #FF9800; }
.type-MX { background: #9C27B0; }
.type-CNAME { background: #00BCD4; }
.type-TXT { background: #795548; }

.ttl-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.soa-details {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.soa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #fff;
    font-size: 18px;
}

.toggle-icon {
    transition: transform 0.3s;
}

.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

@media (max-width: 768px) {
    .record-type-content {
    width: 350px;
    padding: 25px;
}
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .record-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================== */
/*       WHOIS UI STYLES           */
/* =============================== */

.whois-container {
    margin: 20px;
}

.whois-section {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s;
}

.whois-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* ---------------- HEADER ---------------- */

.whois-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: #f5f7fa;
    border-bottom: 1px solid #e3e6ea;
    cursor: pointer;
}

.whois-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.whois-badge {
    background: #007bff;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.record-count {
    font-size: 14px;
    color: #666;
    background: rgba(0,0,0,0.05);
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.toggle-icon {
    font-size: 16px;
    transition: transform 0.3s;
}

.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* ---------------- CONTENT ---------------- */

.whois-content {
    padding: 22px;
}

/* ---------------- CARD ---------------- */

.whois-card {
    background: #fff;
    border: 1px solid #e3e6e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.whois-card:hover {
    background: #fafbfc;
    border-color: #cfd3d6;
}

/* ---------------- GRID ---------------- */

.whois-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.whois-field {
    margin-bottom: 12px;
}

.field-label {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.field-value.highlight {
    color: #007bff;
    font-weight: bold;
}

/* ---------------- STATUS / BADGES ---------------- */

.status-badge {
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}

.ns-item {
    padding: 3px 0;
}

/* ---------------- CONTACT ---------------- */

.contact-section {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* ---------------- TTL INDICATOR ---------------- */

.ttl-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #e9f2ff;
    color: #0056b3;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------------- SOA DETAILS ---------------- */

.soa-details {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e3e6e9;
    margin-top: 12px;
}

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

/* ---------------- EMPTY STATE ---------------- */

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}
