body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: #f7f9fa; 
    color: #333;
    line-height: 1.5;
  }
  
  header { 
    background: linear-gradient(135deg, #2d6cdf, #1a4fa0); 
    color: #fff; 
    padding: 0.8rem 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  header h1 { 
    margin: 0; 
    font-size: 1.5rem; 
    font-weight: 600;
  }
  
  nav a { 
    color: #fff; 
    margin-left: 1.2rem; 
    text-decoration: none; 
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  nav a:hover { 
    background-color: rgba(255,255,255,0.15);
  }
  
  main { 
    max-width: 1200px; 
    margin: 1.5rem auto; 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    padding: 1.5rem;
  }
  
  section {
    margin-bottom: 1.8rem;
  }
  
  section h2 {
    color: #2d6cdf;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
  }
  
  .result-count {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.8rem;
    font-weight: normal;
  }
  
  /* Filters section */
  #filters {
    background-color: #f9fbfd;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
  }
  
  .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
    align-items: flex-end;
  }
  
  .filter-row:last-child {
    margin-bottom: 0;
  }
  
  .filter-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
  }
  
  .filter-group label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.3rem;
  }
  
  .filter-group select, 
  .filter-group input {
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    background-color: #fff;
    transition: border-color 0.2s;
  }
  
  .filter-group select:focus,
  .filter-group input:focus {
    border-color: #2d6cdf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
  }
  
  .search-group {
    flex: 2;
  }
  
  .filter-buttons {
    display: flex;
    gap: 0.8rem;
  }
  
  .autocomplete-wrapper {
    position: relative;
    width: 100%;
  }
  
  #filters button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
  
  #applyFilters {
    background: #2d6cdf;
    color: #fff;
    border: none;
  }
  
  #applyFilters:hover {
    background: #1a4fa0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  #resetFilters {
    background: #f1f3f5;
    color: #555;
    border: 1px solid #ddd;
  }
  
  #resetFilters:hover {
    background: #e9ecef;
  }
  
  /* Table section */
  .table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
  }
  
  #proposalTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem; /* Smaller font size */
  }
  
  #proposalTable th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.2rem; /* Increased padding */
    border-bottom: 2px solid #e9ecef;
  }
  
  #proposalTable td {
    padding: 0.9rem 1.2rem; /* Increased padding */
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
  }
  
  #proposalTable tr:last-child td {
    border-bottom: none;
  }
  
  .clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .clickable-row:hover {
    background-color: #f0f7ff;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    padding: 0.7rem;
    background-color: #f9fbfd;
    border-radius: 8px;
  }
  
  .pagination button {
    padding: 0.4rem 0.8rem;
    background-color: #2d6cdf;
    color: #fff;
    border: 1px solid #2d6cdf;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
  }
  
  .pagination button:hover:not(:disabled) {
    background-color: #1a4fa0;
    color: #fff;
    border-color: #1a4fa0;
  }
  
  .pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  #pageInfo {
    font-size: 0.85rem;
    color: #555;
  }
  
  /* Loading indicators */
  #tableLoading {
    padding: 2rem;
    text-align: center;
    color: #666;
  }
  
  #noResults {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
  }
  
  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .modal-content {
    background-color: #fff;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 1.5rem;
    position: relative;
    animation: modalFadeIn 0.3s;
  }
  
  @keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Loading progress modal */
  #loadingProgressModal .modal-content {
    max-width: 500px;
  }
  
  #loadingProgressBar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
  }
  
  #loadingProgressFill {
    height: 100%;
    background-color: #2d6cdf;
    width: 0%;
    transition: width 0.3s ease;
  }
  
  #loadingProgressText {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
  }
  
  #startBrowsingBtn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.6rem 1.2rem;
    background-color: #2d6cdf;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
  }
  
  #startBrowsingBtn:hover {
    background-color: #1a4fa0;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    main {
      padding: 1rem;
      margin: 1rem;
    }
    
    .filter-row {
      flex-direction: column;
      gap: 0.8rem;
    }
    
    .filter-group {
      width: 100%;
    }
    
    .modal-content {
      width: 90%;
      margin: 10% auto;
      padding: 1.2rem;
    }
    
    #proposalTable th,
    #proposalTable td {
      padding: 0.8rem 0.9rem; /* Slightly smaller padding on mobile */
    }
  }