/* High failure rate styling */
.high-failure-rate {
    background-color: #dc3545 !important;
    color: white !important;
    font-weight: bold;
}

/* Clickable elements styling */
.vus-clickable, .volume-clickable {
    position: relative;
    z-index: 10;
    cursor: pointer !important;
    user-select: none;
}

.vus-clickable:hover {
    background-color: #e3f2fd !important;
    transition: background-color 0.2s ease;
}

.volume-clickable:hover {
    background-color: #f5f5f5 !important;
    transition: background-color 0.2s ease;
}

/* Garantir que os cliques funcionem em todas as linhas da tabela */
#example tbody tr .vus-clickable:hover {
    background-color: #e3f2fd !important;
}

#example tbody tr .volume-clickable:hover {
    background-color: #f5f5f5 !important;
}

/* Override específico para linhas pares e ímpares */
#example tbody tr:nth-child(even) .vus-clickable:hover,
#example tbody tr:nth-child(odd) .vus-clickable:hover,
#example tbody tr.even .vus-clickable:hover,
#example tbody tr.odd .vus-clickable:hover {
    background-color: #e3f2fd !important;
}

#example tbody tr:nth-child(even) .volume-clickable:hover,
#example tbody tr:nth-child(odd) .volume-clickable:hover,
#example tbody tr.even .volume-clickable:hover,
#example tbody tr.odd .volume-clickable:hover {
    background-color: #f5f5f5 !important;
}

/* Garantir que os elementos clicáveis sejam sempre visíveis */
.vus-clickable, .volume-clickable {
    display: block !important;
    pointer-events: auto !important;
}

.vus-details, .volume-details {
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    z-index: 11;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para o Environment Info */
.env-info-trigger {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.env-info-icon {
    margin-left: 8px;
    color: #6c757d;
    font-size: 1.1em;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.env-info-trigger:hover .env-info-icon {
    color: #007bff;
    transform: scale(1.15);
}

.env-details {
    position: absolute;
    z-index: 1050;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    min-width: 900px;
    max-width: 1400px;
    font-size: 0.85em;
    animation: fadeInUp 0.3s ease-out;
}

.env-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.env-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.env-details-header {
    font-weight: bold;
    color: #495057;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.1em;
}

.env-section {
    margin-bottom: 16px;
}

.env-section-title {
    font-weight: 600;
    color: #6f42c1;
    margin-bottom: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.env-item {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.env-label {
    color: #6c757d;
    font-weight: 500;
    margin-right: 12px;
}

.env-value {
    color: #495057;
    font-weight: 600;
    text-align: right;
}

.env-resource {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.env-resource-header {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.env-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.env-close-btn:hover {
    color: #dc3545;
    background: #f8f9fa;
    transform: rotate(90deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay para fechar ao clicar fora */
.env-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    background: transparent;
}

/* Details Links Styling */
.details-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3em;
    transition: all 0.2s ease;
    color: #6c757d;
    background: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
}

.detail-link i {
    transition: all 0.2s ease;
}

.detail-link-html:hover {
    color: #a02530;    
}

.detail-link-dashboard:hover {
    color: #17a2b8;    
}
