.tunnel-map {
    border-left: 2px solid #444;
    margin-left: 20px;
    padding-left: 20px;
}

.tunnel-level {
    position: relative;
    margin-bottom: 40px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

/* El punto que conecta con la línea vertical */
.tunnel-level::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: #666;
    border-radius: 50%;
}

.level-indicator {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    font-size: 0.9em;
}

.auth-tag, .auth-tag-high {
    display: inline-block;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-weight: bold;
}

.auth-tag { background: #fd7e14; color: white; }
.auth-tag-high { background: #dc3545; color: white; }

.emergency-box {
    border: 1px dashed #fd7e14;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9em;
}

.warning-text {
    color: #ffc107;
    font-weight: bold;
}

/* Colores de nivel para los puntos de la línea */
.level-public::before { background: #28a745; }
.level-admin::before { background: #fd7e14; }
.level-restricted::before { background: #dc3545; }
.level-unknown::before { background: #ffc107; box-shadow: 0 0 8px #ffc107; }

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

.access-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    padding: 15px;
    border-radius: 5px;
}

.access-card h4 {
    margin-top: 0;
    color: #28a745;
    border-bottom: 1px solid #28a745;
    padding-bottom: 5px;
}

.emergency-table-container {
    margin-top: 30px;
}

.emergency-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.2);
}

.emergency-table th, .emergency-table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

.emergency-table th {
    background: #333;
    color: #fff;
    text-transform: uppercase;
}

.emergency-table tr:hover {
    background: rgba(40, 167, 69, 0.05);
}