/* Compact and modern styles with softer colors */
.pagination {
  justify-content: center;
  margin-top: 1rem;
}

.pagination-item {
  margin: 0 2px;
}

.pagination-link {
  border-radius: 4px;
  color: #2b6cb0;
  padding: 6px 12px;
}

.pagination-item.active .pagination-link {
  background-color: #007bff;
  color: #ffffff;
  border-color: #007bff;
}

.pagination-item.disabled .pagination-link {
  color: #a0aec0;
  cursor: not-allowed;
}

.content.user-manual {
  padding: 8px;
}

.card {
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
}

.card-body {
  padding: 16px;
}

.table-data {
  overflow-x: auto;
}

.btn-link {
  color: #2b6cb0;
  padding: 6px 12px;
}

.btn-link:disabled {
  color: #a0aec0;
  cursor: not-allowed;
}

#logs {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

#logs th,
#logs td {
  padding: 12px 8px;
  text-align: left;
  border-top: 1px solid #e9ecef;
  vertical-align: middle;
  color: #212529;
}

#logs th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #6c757d;
  border-top: none;
}

#logs .module-header,
#logs .env-header,
#logs .created-header {
  width: 1%;
  white-space: nowrap;
}

#logs .module-cell,
#logs .env-cell,
#logs .created-cell {
  width: 10%;
  white-space: nowrap;
  color: #6c757d;
  font-size: 0.8rem;
}

#logs .message-header {
  width: auto;
}

#logs .message-cell {
  font-size: 0.9rem;
  color: #212529;
}

#logs tr {
  transition: all 0.2s ease;
  cursor: pointer;
}

#logs tr:hover {
  background-color: rgba(0, 123, 255, 0.03); /* Azul claro sutil */
}

#logs tr.warning {
  background-color: #fff9db; /* Más acorde al estilo general, menos saturado */
}

#logs tr.danger {
  background-color: #ffe5e5; /* Rojo claro más suave */
}

#logs tr.system {
  background-color: #f8f9fa;
}

#logs td a {
  color: #2b6cb0;
  text-decoration: none;
}

#logs td a:hover {
  text-decoration: underline;
}


.form-group label {
  font-weight: 500;
  color: #495057;
}

.form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 8px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  border-radius: 4px;
  padding: 8px 16px;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  border-radius: 4px;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  .form-group {
    margin-bottom: 1rem;
  }
  #logs th,
  #logs td {
    font-size: 0.8rem;
    padding: 8px;
  }
}


.kafka-table-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;

  .kafka-table {
    border-collapse: separate;
    border-spacing: 0;

    th {
      background-color: #f8f9fa;
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.75rem;
      letter-spacing: 0.5px;
      color: #6c757d;
      border-top: none;
    }

    .kafka-row {
      transition: all 0.2s ease;
      cursor: pointer;

      &:hover {
        background-color: rgba(0, 123, 255, 0.03);
      }

      &.expanded {
        background-color: rgba(0, 123, 255, 0.05);
      }

      td {
        vertical-align: middle;
        padding: 12px 8px;
        border-top: 1px solid #e9ecef;
      }

      .event-title {
        font-weight: 600;
        color: #212529;
      }

      .event-details {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
        font-size: 0.75rem;
        color: #6c757d;

        span {
          white-space: nowrap;
        }
      }

      .sender-badge {
        background-color: #e9ecef;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        color: #495057;
      }

      .consumers-count {
        color: #6c757d;
        font-size: 0.8rem;
      }

      .date-primary {
        color: #212529;
      }

      .date-secondary {
        font-size: 0.75rem;
        color: #6c757d;
      }

      .toggle-icon {
        color: #adb5bd;
        transition: transform 0.2s ease;
      }
    }

    .details-row {
      td {
        padding: 0;
        border-top: none;
      }

      .consumers-details {
        padding: 16px;
        background-color: #f8f9fa;
        border-radius: 4px;
        margin: 4px 8px;
        border-left: 3px solid #007bff;

        h5 {
          font-size: 0.9rem;
          margin-bottom: 12px;
          color: #495057;
        }

        .consumers-list {
          display: grid;
          gap: 12px;

          .consumer-item {
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);

            .consumer-header {
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin-bottom: 6px;

              .service-name {
                font-weight: 600;
                color: #212529;
              }
            }

            .consumer-description {
              font-size: 0.8rem;
              color: #6c757d;
              margin-bottom: 4px;
            }

            .consumer-meta {
              display: flex;
              justify-content: space-between;
              font-size: 0.7rem;
              color: #adb5bd;

              .retries {
                color: #dc3545;
                font-weight: 500;
              }
            }
          }
        }
      }
    }
  }
}