/*Query Form*/
.form-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

@media (min-width: 1200px) {
  .form-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .form-actions {
    grid-column: 4;
    justify-self: end;
  }
}

@media (max-width: 1199px) {
  .form-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .form-actions {
    grid-column: span 2;
    justify-self: end;
  }
}

@media (max-width: 767px) {
  .form-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .form-actions {
    grid-column: 1;
    justify-self: end;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .btn-search,
  .btn-reset {
    width: auto;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 12px;
    gap: 10px;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .form-actions {
    justify-self: end;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input::placeholder {
  color: #999;
  font-size: 13px;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.btn-search {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  min-width: 100px;
}

.btn-search:hover {
  background-color: #0056b3;
}

.form-group input[type="datetime-local"] {
  min-height: 44px;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.table-header {
  background: #f8f9fa;
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.expand-header {
  text-align: center;
  background: #f8f9fa;
}

.table-cell {
  padding: 16px 12px;
  border-bottom: 1px solid #e9ecef;
  color: #212529;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}

.expand-cell {
  text-align: center;
  width: 40px;
  padding: 16px 8px;
}

.table-row:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.expand-button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.expand-button:hover {
  background: #0056b3;
  transform: scale(1.1);
}

.expanded-row {
  background: #f8f9fa;
  display: none;
}

.expanded-content {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  width: 100%;
}

.stack-trace {
  background: white;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e9ecef;
}

.stack-trace h4 {
  margin: 0 0 12px 0;
  color: #000;
  font-size: 14px;
  font-weight: 600;
}

.stack-trace pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #dc3545;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  max-height: 300px;
  overflow-y: auto;
}

.log-container {
  margin-top: 20px;
}

.log-container h1 {
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .table-container {
    margin-top: 15px;
  }

  .table-header,
  .table-cell {
    padding: 12px 8px;
    font-size: 13px;
  }

  .expand-cell {
    padding: 12px 6px;
    width: 36px;
  }

  .expand-checkbox {
    width: 16px;
    height: 16px;
  }

  .expanded-content {
    padding: 16px;
  }

  .stack-trace {
    padding: 12px;
  }

  .stack-trace pre {
    font-size: 11px;
    padding: 10px;
    max-height: 250px;
  }

  .log-container h1 {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .table-header,
  .table-cell {
    padding: 8px 6px;
    font-size: 12px;
  }

  .expand-cell {
    padding: 8px 4px;
    width: 32px;
  }

  .expand-checkbox {
    width: 14px;
    height: 14px;
  }

  .expanded-content {
    padding: 12px;
  }

  .stack-trace {
    padding: 10px;
  }

  .stack-trace h4 {
    font-size: 13px;
  }

  .stack-trace pre {
    font-size: 10px;
    padding: 8px;
    max-height: 200px;
  }

  .data-table {
    font-size: 12px;
  }
}

.pagination-container {
  margin-top: 20px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.pagination-controls {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.page-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  border: 1px solid #dee2e6;
  background: white;
  color: #495057;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-btn:hover:not(.disabled) {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-btn {
  border: 1px solid #dee2e6;
  background: white;
  color: #495057;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.page-btn:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.page-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.page-btn.active:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.ellipsis {
  padding: 8px 12px;
  color: #6c757d;
  font-size: 14px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .pagination-container {
    padding: 15px;
  }

  .pagination-controls {
    flex-direction: column;
    gap: 15px;
  }

  .page-size-selector {
    justify-content: center;
  }

  .page-navigation {
    justify-content: center;
  }

  .page-numbers {
    gap: 3px;
  }

  .page-btn,
  .nav-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .pagination-container {
    padding: 12px;
  }

  .page-size-selector label {
    font-size: 13px;
  }

  .page-size-select {
    padding: 6px 10px;
    font-size: 13px;
  }

  .page-btn,
  .nav-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
    padding: 5px 8px;
  }

  .ellipsis {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
