/* RESET + BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
  }
  
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* HEADER */
  .header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
  }
  
  .header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  }
  
  .header p {
    font-size: 1.2em;
    opacity: 0.9;
  }
  
  /* CARDS */
  .card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  
  .card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
  }
  
  .dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
  
  /* STATISTICS */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .stat-item {
    text-align: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  
  .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4c51bf;
    margin-bottom: 8px;
  }
  
  .stat-label {
    font-size: 1em;
    color: #444;
    text-transform: uppercase;
    font-weight: 600;
  }
  
  /* SEARCH SECTION */
  .search-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  
  .search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .search-group {
    display: flex;
    flex-direction: column;
  }
  
  .search-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
  }
  
  .search-group input, .search-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
  }
  
  .search-group input:focus, .search-group select:focus {
    outline: none;
    border-color: #667eea;
  }
  
  .search-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
  }
  
  .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
  }
  
  .btn-secondary {
    background: #6c757d;
    color: white;
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  /* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* forces uniform column widths */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-size: 15px;
  }
  
  .results-table thead {
    background-color: #667eea;
    color: #fff;
  }
  
  .results-table th,
  .results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .results-table tbody tr:hover {
    background-color: #f1f5ff; /* light highlight on hover */
    cursor: pointer;
  }
  
  .results-table th:nth-child(1),
  .results-table td:nth-child(1) {
    width: 90px;
  }
  .results-table th:nth-child(2),
  .results-table td:nth-child(2) {
    width: 180px;
  }
  .results-table th:nth-child(3),
  .results-table td:nth-child(3) {
    width: 100px;
  }
  .results-table th:nth-child(4),
  .results-table td:nth-child(4) {
    width: 100px;
  }
  .results-table th:nth-child(5),
  .results-table td:nth-child(5) {
    width: 140px;
  }
  .results-table th:nth-child(6),
  .results-table td:nth-child(6) {
    width: 100px;
  }
  .results-table th:nth-child(7),
  .results-table td:nth-child(7) {
    width: 80px;
  }
  .network-node-section {
    margin: 30px 0;
}

#topology-svg {
    width: 100%;
    height: 700px;
    display: block;
    margin: auto;
    background:white ;
    border-radius: 12px;
    font-size: x-small;
}
#topology-back-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;

}
  /* MEDIA QUERIES */
  @media (max-width: 768px) {
    .dashboard {
      grid-template-columns: 1fr;
    }
    .search-grid {
      grid-template-columns: 1fr;
    }
  }