/* Loading and Error States */
.loadingContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 300px;
  }
  
  .loadingContainer p {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 1.1rem;
  }
  
  .errorContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    min-height: 300px;
  }
  
  .errorMessage {
    text-align: center;
    background-color: #fef2f2;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    max-width: 500px;
  }
  
  .errorMessage h3 {
    color: #dc2626;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
  }
  
  .errorMessage p {
    color: #7f1d1d;
    margin: 0;
  }
  
  /* Main Container */
  .container {
    width: 95%;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  
  .tableWrapper {
    overflow-x: auto;
    overflow: hidden;
  }
  
  /* Table Styling - Exact match to the image */
  .caseTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
    line-height: 1.5;
  }
  
  .caseTable thead {
    background-color: #ffffff;
    color: #2c3087;
    font-size: 2rem;
  }
  
  .caseTable th {
    text-align: left;
    padding-left: 10px;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
  }
  
  .caseTable tbody tr {
    /* Removed default border-bottom to use the cell borders */
  }
  
  .caseTable td {
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    padding: 12px 10px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Row Styling */
  .evenRow {
    background-color: #eeeeee;
  
  }
  
  .oddRow {
    background-color: #ffffff;
  }
  
  .caseTable tr:hover {
    background-color: #e3f2fd !important;
  }
  
  /* Cell-specific styling */
  .citationCell {
    width: 20%;
  }
  
  .titleCell {
    width: 45%;
  }
  
  .courtCell {
    width: 25%;
  }
  
  .judgmentCell {
    width: 15%;
    text-align: left;
  }
  
  /* View/Download Button - Exact match to image */
  .viewButton {
    display: inline-block;
    padding: 6px 12px;
    color: #de751c;
    text-decoration: none;
    font-size: 1.3rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  
  .viewButton:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
  }
  
  .naText {
    color: #666;
    font-style: italic;
  }
  
  .noDataCell {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
  }
  
  /* Mobile View */
  .mobileView {
    display: none;
  }
  
  .caseCard {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
  }
  
  .cardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .citationBadge {
    background-color: #e3f2fd;
    color: #2c5aa0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
  }
  
  .mobileViewButton {
    background-color: #ff6b35;
    color: white;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
  }
  
  .mobileViewButton:hover {
    background-color: #e55a2b;
    text-decoration: none;
    color: white;
  }
  
  .cardTitle {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
  }
  
  .cardCourt {
    color: #666;
    font-size: 14px;
    margin: 0;
  }
  
  .noDataCard {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .caseTable {
      font-size: 13px;
    }
    
    .caseTable th,
    .caseTable td {
      padding: 10px 12px;
    }
    
    .titleCell {
      max-width: 250px;
    }
  }
  
  @media (max-width: 768px) {
    .tableWrapper {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin: 0 -1rem;
      padding: 0 1rem;
    }
    
    .caseTable {
      font-size: 12px;
      min-width: 100%;
      table-layout: fixed;
    }
    
    .caseTable th {
      padding: 8px;
      font-size: large;
      font-weight: 500;
      white-space: normal;
      word-wrap: break-word;
    }
    
    .caseTable td {
      padding: 8px;
      font-size: medium;
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
      vertical-align: top;
    }
    
    .viewButton {
      font-size: medium;
      white-space: nowrap;
    }
    
    /* Responsive column widths */
    .citationCell {
      width: 20%;
      white-space: normal;
      word-break: break-word;
    }
    
    .titleCell {
      width: 40%;
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
      line-height: 1.4;
    }
    
    .courtCell {
      width: 25%;
      white-space: normal;
      word-wrap: break-word;
    }
    
    .judgmentCell {
      width: 15%;
      white-space: normal;
    }
    
    .container {
      padding: 1.5rem 0.75rem;
    }
    
    .caseCard {
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 15px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }
    
    .cardHeader {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    
    .citationBadge {
      background-color: #2c3087;
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 1.2rem;
    }
    
    .mobileViewButton {
      display: inline-block;
      padding: 4px 8px;
      background-color: #f0f0f0;
      color: #2c3087;
      border: 1px solid #ccc;
      border-radius: 4px;
      text-decoration: none;
      font-size: 1.2rem;
    }
    
    .cardTitle {
      font-size: 1.6rem !important;
      font-weight: 600;
      color: #000;
      margin-bottom: 5px;
    }
    
    .cardCourt {
      font-size: 1.3rem !important;
      color: #555;
    }
    
    .officeItem::before {
      content: '';
      display: none;
    }
    
    .officeItem {
      padding-left: 0;
    }
  }
  
  @media (max-width: 640px) {
    .container {
      padding: 1rem 0.5rem;
    }
    
    .caseTable {
      font-size: 11px;
    }
    
    .caseTable th,
    .caseTable td {
      padding: 6px 4px;
    }
    
    .titleCell {
      width: 45%;
      font-size: 11px;
      line-height: 1.3;
    }
    
    .citationCell {
      width: 18%;
      font-size: 10px;
    }
    
    .courtCell {
      width: 22%;
      font-size: 10px;
    }
    
    .judgmentCell {
      width: 15%;
    }
    
    .viewButton {
      font-size: 10px;
      padding: 4px 6px;
    }
    
    .caseCard {
      padding: 1.25rem;
    }
    
    .cardHeader {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
    
    .citationBadge {
      align-self: flex-start;
    }
    
    .mobileViewButton {
      align-self: flex-end;
    }
  }
  
  /* Print Styles */
  @media print {
    .container {
      max-width: none;
      padding: 0;
    }
    
    .mobileView {
      display: none;
    }
    
    .tableWrapper {
      display: block;
      box-shadow: none;
    }
    
    .caseTable tr:hover {
      background-color: transparent !important;
    }
    
    .viewButton {
      background-color: #000 !important;
      color: white !important;
    }
  }