* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.shield-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.shield-icon i {
    width: 48px;
    height: 48px;
}

.custom-shield {
    width: 60%;
    height: auto;
    transition: transform 0.3s ease;
}

.custom-shield:hover {
    transform: scale(1.08);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Input Section */
.input-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.input-section h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.input-description {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

#ipInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#ipInput:focus {
    outline: none;
    border-color: #3498db;
}

#verifyBtn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

#verifyBtn i {
    width: 18px;
    height: 18px;
}

#verifyBtn i[data-lucide="loader-2"] {
    animation: spin 1s linear infinite;
}

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

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

#verifyBtn:hover {
    background: #34495e;
}

#verifyBtn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

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

/* Results */
.results {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.results>div {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results h2 i {
    width: 24px;
    height: 24px;
}

/* Summary Section */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.value.red {
    color: #e74c3c;
}

.value.security-safe {
    color: #2ecc71;
}

.value.security-verified {
    color: #3498db;
}

.value.security-caution {
    color: #f39c12;
}

.value.security-moderate {
    color: #e67e22;
}

.value.security-suspicious {
    color: #e74c3c;
}

.value.security-dangerous {
    color: #c0392b;
    font-weight: 700;
}

/* Trust Section */
.trust-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.trust-subtitle {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 1rem;
}

.trust-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.trust-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#e74c3c 0deg, #e74c3c var(--trust-angle, 90deg), #ecf0f1 var(--trust-angle, 90deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.trust-circle::before {
    content: '';
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.trust-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.trust-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.trust-info p {
    color: #7f8c8d;
}

/* Geolocation Section */
.geo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Geolocation Section - Nuevo diseño */
.geo-container-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-full {
    height: 350px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

/* Fix para Leaflet - asegurar que las tiles se carguen correctamente */
.leaflet-container {
    height: 350px !important;
    width: 100% !important;
    border-radius: 12px;
}

.leaflet-tile {
    max-width: none !important;
}

.leaflet-control-container {
    display: block;
}

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

.geo-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e9ecef;
}

.geo-card-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.geo-card-icon i {
    width: 20px;
    height: 20px;
}

.geo-card-content {
    flex: 1;
}

.geo-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.geo-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.geo-card-sub {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Marcador personalizado para OpenStreetMap */
.custom-map-marker {
    background: none;
    border: none;
}

.marker-pin-new {
    width: 30px;
    height: 30px;
    background: #007bff;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.marker-pin-new::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.geo-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.geo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.geo-item:last-child {
    border-bottom: none;
}

.geo-label {
    font-weight: 500;
    color: #7f8c8d;
}

.geo-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Category Section */
.category-description {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count {
    font-weight: 600;
    color: #7f8c8d;
}

.status-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #2ecc71;
    color: white;
}

.status-indicator.warning {
    background: #f39c12;
}

.status-indicator.danger {
    background: #e74c3c;
}

/* Detailed Section */
.detailed-description {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.accordion-item {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header span:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.list-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #e74c3c;
    color: white;
}

.status-badge.clean {
    background: #2ecc71;
}

.accordion-arrow {
    transition: transform 0.3s;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 500px;
    overflow-y: auto;
}

.blacklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #ecf0f1;
}

.blacklist-item:last-child {
    border-bottom: none;
}

.blacklist-name {
    font-family: monospace;
    color: #2c3e50;
}

.blacklist-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blacklist-status.listed {
    background: #e74c3c;
    color: white;
}

.blacklist-status.clean {
    background: #2ecc71;
    color: white;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .input-container {
        flex-direction: column;
    }

    .trust-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .geo-container {
        grid-template-columns: 1fr;
    }

    .geo-cards {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accordion-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: blur(10px);
    border-top: 1px solid #e1e8ed;
    padding: 8px 0;
    z-index: 1000;

}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
}

.footer p {
    font-size: 10px !important;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Agregar padding al body para que el contenido no se oculte detrás del footer */
body {
    padding-bottom: 50px;
}

/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e1e8ed;
    padding: 8px 0;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.top-bar.visible {
    transform: translateY(0);
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.top-bar-logo {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.top-bar-logo:hover {
    transform: scale(1.1);
}

/* Admin Link Styles */
.admin-link-footer {
    color: #7f8c8d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.admin-link-footer:hover {
    color: #667eea;
}

.admin-link-footer .admin-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* AbuseIPDB Professional Section */
.abuseipdb-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.abuseipdb-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
}

.abuseipdb-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.abuseipdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.abuseipdb-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.abuseipdb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.abuseipdb-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.abuseipdb-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #475569;
}

.abuseipdb-card.primary .abuseipdb-card-header {
    color: rgba(255, 255, 255, 0.95);
}

.abuseipdb-card-header i {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.abuseipdb-card.primary .abuseipdb-card-header i {
    color: white;
}

.abuseipdb-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.abuseipdb-card.primary .abuseipdb-value {
    color: white;
}

.abuseipdb-desc {
    font-size: 0.9rem;
    color: #64748b;
}

.abuseipdb-card.primary .abuseipdb-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Threat Categories */
.threat-categories {
    margin-bottom: 25px;
}

.threat-categories h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: 600;
}

.threat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.threat-tag {
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.threat-tag.low {
    background: #16a34a;
}

.threat-tag.medium {
    background: #ea580c;
}

.threat-tag.high {
    background: #dc2626;
}

.threat-tag.none {
    background: #0ea5e9;
}

/* ISP Information */
.isp-info {
    margin-top: 20px;
}

.isp-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.isp-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: 600;
}

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

.isp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.isp-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.isp-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

/* Responsive adjustments for AbuseIPDB section */
@media (max-width: 768px) {
    .abuseipdb-grid {
        grid-template-columns: 1fr;
    }

    .threat-tags {
        justify-content: center;
    }

    .isp-details {
        grid-template-columns: 1fr;
    }
}

/* Threat Analysis Section */
.threat-analysis-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.threat-analysis-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.threat-analysis-description {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 1rem;
}

.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.threat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.threat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}

.threat-card.primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
}

.threat-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #475569;
}

.threat-card.primary .threat-card-header {
    color: rgba(255, 255, 255, 0.95);
}

.threat-card-header i {
    width: 20px;
    height: 20px;
}

.threat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.threat-card.primary .threat-value {
    color: white;
}

.threat-desc {
    font-size: 0.9rem;
    color: #64748b;
}

.threat-card.primary .threat-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Threat Types List */
.threat-types-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.threat-type-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.threat-type-item.empty {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Threat Categories Breakdown */
.threat-categories-breakdown {
    margin-bottom: 25px;
}

.threat-categories-breakdown h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e74c3c;
    font-weight: 600;
}

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

.threat-category-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.threat-category-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

.threat-category-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.threat-category-severity {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.threat-category-severity.high {
    background: #fee2e2;
    color: #dc2626;
}

.threat-category-severity.medium {
    background: #fef3c7;
    color: #d97706;
}

.threat-category-severity.low {
    background: #dcfce7;
    color: #16a34a;
}

/* Risk Assessment */
.risk-assessment h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e74c3c;
    font-weight: 600;
}

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

.risk-indicator {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.risk-label {
    font-weight: 600;
    color: #475569;
}

.risk-value {
    font-weight: 700;
    color: #1e293b;
}

.risk-value.danger-high {
    color: #dc2626;
}

.risk-value.danger-medium {
    color: #d97706;
}

.risk-value.danger-low {
    color: #16a34a;
}

/* Responsive adjustments for Threat Analysis */
@media (max-width: 768px) {
    .threat-grid {
        grid-template-columns: 1fr;
    }

    .threat-categories-grid {
        grid-template-columns: 1fr;
    }

    .risk-indicators {
        grid-template-columns: 1fr;
    }
}

/* Sources Checklist Section - Blacklists DNS */
.sources-checklist {
    margin-top: 0;
}

/* Blacklist Summary Grid */
.blacklist-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.blacklist-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.blacklist-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blacklist-summary-card.danger {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.blacklist-summary-card.danger .summary-icon {
    background: #e74c3c;
}

.summary-content {
    flex: 1;
}

.summary-title {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 500;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.blacklist-summary-card.danger .summary-value {
    color: #dc2626;
}

.summary-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Blacklist Details (Collapsible) */
.blacklist-details {
    margin-top: 20px;
}

.toggle-details-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 0.95rem;
}

.toggle-details-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.toggle-details-btn i {
    transition: transform 0.2s ease;
}

.toggle-details-btn.expanded i {
    transform: rotate(180deg);
}

.blacklist-details-content {
    margin-top: 15px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.blacklist-details-content.hidden {
    display: none;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.source-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.source-item.source-primary {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.source-item.source-summary {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    font-weight: 600;
}

.source-item.source-blacklist {
    border-left: 3px solid #64748b;
}

.source-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.source-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.source-status.listed {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.source-status.not-listed {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.source-detail {
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
}

.source-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    grid-column: 1 / -1;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.source-separator {
    background: #1e293b;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin: 12px 0 8px 0;
}

/* Responsive adjustments for Sources */
@media (max-width: 768px) {
    .source-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .source-detail {
        text-align: center;
    }

    .source-status {
        justify-self: center;
    }
}

/* Tarjetas con efecto hover mejorado - Colores acordes a la web */
.geo-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.geo-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(52, 152, 219, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #3498db;
}