@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa !important;
  color: #334155;
}

/* Sidebar styling */
.fixed-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 20px 0 0; 
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (min-width: 768px) {
  .fixed-sidebar {
    width: 240px !important;
  }
  main {
    margin-left: 240px !important;
    width: calc(100% - 240px) !important;
  }
}

.sidebar .nav-link {
  color: #475569;
  font-weight: 500;
  padding: 0.6rem 1rem;
  margin-bottom: 0.2rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover:not(.pb-2) {
  background-color: #f1f5f9;
  color: #0f172a;
}

.sidebar .nav-link.active {
  color: #0d6efd;
  background-color: #e6f2ff;
  font-weight: 600;
}

/* Main Content offset */
main {
  margin-top: 0;
}

/* Custom scrollbar for the table container */
.table-responsive::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #f8f9fa;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Font updates */
.font-monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  color: #0f172a !important;
}

.card {
  border-radius: 0.5rem;
}

.table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* IPv4 Header Grid */
.ip-header-grid {
  display: flex;
  flex-direction: column;
  border: 2px solid #0d6efd;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ip-header-row {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #dee2e6;
}

.ip-header-row:last-child {
  border-bottom: none;
}

.ip-field {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-right: 1px solid #dee2e6;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ip-field:last-child {
  border-right: none;
}

.ip-field:hover {
  background-color: #e6f2ff;
}

.ip-field.active {
  background-color: #cfe2ff;
  box-shadow: inset 0 0 0 2px #0d6efd;
  z-index: 1;
}

.ip-field small {
  color: #6c757d;
  font-weight: 400;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.ip-field.active small {
  color: #052c65;
}
