/* === FONDO OSCURO PROFESIONAL === */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f1a2b;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
/* === BARRA SUPERIOR CON BOTONES === */
.top-nav {
    background: #1a273d;
    padding: 12px 20px;
    text-align: center;
    border-bottom: 2px solid #2c7be5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.top-btn {
    color: #ffffff;
    background: #2c7be5;
    border: none;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.top-btn:hover {
    background: #1a5fd4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
/* === CONTENEDOR PRINCIPAL === */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: #162133;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid #2c7be5;
}
/* === LOGO Y TÍTULO === */
.logo-container {
    text-align: center;
    margin-bottom: 10px;
}
.logo-container img {
    width: 200px;
    margin: 0 auto;
    border-radius: 8px;
}
.logo-container h1 {
    margin: 15px 0 5px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
}
.logo-container p {
    color: #8ba0c7;
    font-size: 14px;
    margin: 5px 0;
}
/* === PESTAÑAS === */
.tab {
    overflow: hidden;
    background: #1a273d;
    border: 1px solid #2c7be5;
    border-radius: 6px;
    margin-bottom: 20px;
}
.tab button {
    background: #1a273d;
    color: #a0b8e0;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 15px;
    transition: 0.3s;
    border-radius: 0;
}
.tab button:hover {
    background: #2c7be5;
    color: white;
}
.tab button.active {
    background: #2c7be5;
    color: white;
    border-bottom: 3px solid #ffd066;
}
/* === CONTENIDO DE PESTAÑAS === */
.tabcontent {
    display: none;
    padding: 16px;
    background: #121c2c;
    border: 1px solid #2c7be5;
    border-radius: 0 0 6px 6px;
    animation: fadeEffect 0.5s;
}
@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* === TEXTAREAS Y FORMULARIOS === */
textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    background: #0d1626;
    color: #e0e0e0;
    border: 1px solid #2c7be5;
    border-radius: 6px;
    font-family: monospace;
    margin: 20px 0;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
textarea:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 8px rgba(44, 123, 229, 0.5);
}
/* === BOTONES GENERALES === */
button {
    background: #2c7be5;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
button:hover {
    background: #1a5fd4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
/* === ÁREA DE CARGA === */
.upload-container {
    border: 2px dashed #2c7be5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    background: #121c2c;
    transition: all 0.3s;
}
.upload-container:hover {
    background: #152030;
    border-color: #4a9eff;
}
.file-label {
    display: inline-block;
    padding: 12px 20px;
    background: #2c7be5;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s;
}
.file-label:hover {
    background: #1a5fd4;
    transform: scale(1.05);
}
.file-info {
    margin: 10px 0;
    font-size: 14px;
    color: #8ba0c7;
}
/* === ALERTAS Y RESULTADOS === */
.alert {
    background: #1c2a4a;
    border-left: 4px solid #2c7be5;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    color: #a0d0ff;
}
.tip {
    font-style: italic;
    color: #8ba0c7;
    margin-top: 10px;
}
.stats {
    background: #121c2c;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #2c7be5;
}
/* === TABLAS DE RESULTADOS === */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 10px 0;
    background: #101a2a;
    border: 1px solid #2c7be5;
    border-radius: 6px;
    overflow: hidden;
}
.results-table th {
    background: #2c7be5;
    color: white;
    padding: 12px;
    text-align: left;
}
.results-table td {
    padding: 10px;
    border-bottom: 1px solid #1a273d;
    vertical-align: top;
}
.results-table tr:hover {
    background: #1a273d;
    cursor: pointer;
}
.geo-cell {
    min-width: 120px;
    font-size: 13px;
}
/* === BOTONES PEQUEÑOS EN TABLAS === */
.btn-small {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
    transition: all 0.2s;
}
.defense-btn {
    background: #e67e22 !important;
}
.solution-btn {
    background: #8e44ad !important;
}
.btn-small:hover {
    transform: scale(1.05);
}
/* === OTROS === */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #7f8c8d;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.or-divider::before {
    margin-right: .5em;
}
.or-divider::after {
    margin-left: .5em;
}
.warning {
    color: #c0392b;
    font-size: 14px;
    margin: 10px 0;
}
/* === BARRA DE CONTACTO Y SUSCRIPCIÓN === */
.info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #1a273d;
    border: 1px solid #2c7be5;
    border-radius: 8px;
    justify-content: space-between;
}

.contact-section, .subscribe-section {
    flex: 1;
    min-width: 300px;
}

.contact-section h3, .subscribe-section h3 {
    color: #2c7be5;
    margin-bottom: 10px;
}

.btn-orange {
    background: #e67e22;
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-orange:hover {
    background: #d35400;
    transform: scale(1.05);
}

/* === FOOTER === */
.footer {
    margin-top: 40px;
    text-align: center;
    color: #a0b8e0;
    font-size: 14px;
    padding: 20px 0;
    border-top: 1px solid #2c7be5;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #2c7be5;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}
/* === SECCIÓN DE CONTACTO Y SUSCRIPCIÓN === */
.info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #1a273d;
    border: 1px solid #2c7be5;
    border-radius: 8px;
    justify-content: space-between;
}
.contact-section, .subscribe-section {
    flex: 1;
    min-width: 300px;
}
.contact-section h3, .subscribe-section h3 {
    color: #2c7be5;
    margin-bottom: 10px;
}
.btn-orange {
    background: #e67e22;
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
}
.btn-orange:hover {
    background: #d35400;
    transform: scale(1.05);
}

/* === FOOTER === */
.footer {
    margin-top: 40px;
    text-align: center;
    color: #a0b8e0;
    font-size: 14px;
    padding: 20px 0;
    border-top: 1px solid #2c7be5;
}
.footer-links {
    margin-top: 10px;
}
.footer-links a {
    color: #2c7be5;
    text-decoration: none;
    margin: 0 10px;
}
.footer-links a:hover {
    text-decoration: underline;
}
/* === RESULTADOS DE MODSECURITY === */
.analysis-container {
    background: #121c2c;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #2c7be5;
    margin: 20px 0;
    color: #e0e0e0;
}

.analysis-container h2, 
.analysis-container h3 {
    color: #2c7be5;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.analysis-container ul {
    background: #0d1626;
    padding: 15px;
    border-radius: 6px;
    list-style: disc;
    margin: 10px 0;
}

.analysis-container li {
    margin: 5px 0;
    font-size: 14px;
}

.analysis-container code {
    background: #1a273d;
    color: #a0d0ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.analysis-container strong {
    color: #ffffff;
}