/* services/nats-kv-monitor/static/css/style.css */

body {
    padding-bottom: 30px;
}

/* Estilos para a navbar com tema claro */
.navbar-light {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Ajuste para o link ativo na navbar */
.navbar-light .navbar-nav .active > .nav-link {
    color: #0d6efd;
    font-weight: 500;
}

.code-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
    max-height: 400px;
    overflow-y: auto;
}

.json-tree {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    display: inline-block;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.025);
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.075);
}

.table-responsive {
    margin-bottom: 1rem;
}

.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: 500;
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Estilos para o campo de pesquisa */
.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.input-group-text i {
    color: #6c757d;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control:focus + .input-group-text {
    border-color: #80bdff;
}

/* Estilos para mensagem de sem resultados */
#no-results-row {
    background-color: #f8f9fa;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

#no-results-row.show {
    opacity: 1;
}

/* Estilo para o indicador de ordenação */
.text-muted i {
    margin-right: 4px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Foco no campo de busca */
#key-search:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilizando melhor a linha vazia */
.text-center.empty-message {
    padding: 2rem 0;
    color: #6c757d;
}