  @page {
      size: A4;
      /* margin: 1cm; */

      margin-top: 3cm;
      margin-bottom: 2.5cm;

      @bottom-center {
          content: element(footer);
      }

      @top-center {
          content: element(header);
      }
  }


  .btn-upload {
      display: inline-block;
      padding: 5px 40px;
      background: #667eea;
      color: white;
      text-decoration: none;
      border-radius: 8px;
      font-size: 18px;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }

  .btn-upload:hover {
      background: #764ba2;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
  }


  
  .btn-download {
      display: inline-block;
      padding: 5px 40px;
      background: #6ca6fd;
      color: white;
      text-decoration: none;
      border-radius: 8px;
      font-size: 18px;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }

  .btn-download:hover {
      background: #764ba2;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
  }


  section {
      max-width: 700px;
  }

  /* Header styling */
  .header {
      position: running(header);
      text-align: center;
      /* padding: 10px 0; */
  }

  .header img {
      /* height: 50px; */
      width: auto;
  }

  .footer {
      position: running(footer);
      text-align: center;
      padding: 10px 0;
      /* border-top: 1px solid #999; */
      font-size: 12px;
      /* color: #666; */
  }

  .footer .page-number::after {
      content: counter(page);
  }

  .footer .total-pages::after {
      content: counter(pages);
  }

  body {
      font-family: Arial, sans-serif;
      direction: rtl;
      margin: 0;
      padding: 0;
  }

  .logo-header {
      text-align: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
  }

  .logo-header img {
      max-width: 150px;
      max-height: 100px;
      object-fit: contain;
  }

  h1 {
      text-align: center;
      color: #2c3e50;
      margin: 15px 0 10px 0;
  }

  h2 {
      text-align: center;
      color: #7f8c8d;
      margin-bottom: 30px;
  }

  .fish-item {
      page-break-inside: avoid;
      border: 1px solid #bdc3c7;
      padding-left: 15px;
      padding-right: 15px;
      padding-top: 1rem;
      margin-bottom: 20px;
      background-color: #f8f9fa;
      border-radius: 5px;
  }

  .fish-header {
      display: flex;
      gap: 20px;
      /* margin-bottom: 15px; */
  }

  .fish-image {
      flex: 0 0 200px;
      text-align: center;
  }

  .fish-image img {
      max-width: 100%;
      max-height: 200px;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition:
          transform 0.2s ease,
          filter 0.2s ease;
  }

  .fish-image img:hover {
      transform: scale(1.05);
      filter: brightness(0.9);
  }

  .fish-image-link {
      cursor: pointer;
      display: inline-block;
  }

  .fish-info {
      flex: 1;
  }

  .fish-info h2 {
      margin: 0 0 10px 0;
      color: #34495e;
      font-size: 20px;
  }

  .fish-name-en {
      color: #7f8c8d;
      font-size: 14px;
      margin-bottom: 15px;
  }

  .size-table {
      width: 100%;
      border-collapse: collapse;
  }

  .size-table th {
      background-color: #34495e;
      color: white;
      padding: 8px;
      text-align: right;
      font-weight: bold;
      border: 1px solid #bdc3c7;
  }

  .size-table td {
      padding: 8px;
      border: 1px solid #bdc3c7;
      text-align: right;
  }

  .size-col {
      width: 40%;
  }

  .price-col {
      width: 60%;
  }

  .size-table tr:nth-child(even) {
      background-color: #ecf0f1;
  }

  .price-cell {
      font-weight: bold;
      color: #e74c3c;
  }

  .no-image {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 200px;
      height: 200px;
      background-color: #ecf0f1;
      color: #95a5a6;
      border-radius: 5px;
      text-align: center;
  }

  button {
      background-color: #01182fe2;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
  }

  .fish-categories {
      display: flex;
      justify-content: center;
      margin-bottom: 5px;
      gap: 5rem;
  }

  .fish-category-button {
      background-color: #0e64ba;
      color: white;
      padding: 5px 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
  }

  .category-bar {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      padding: 10px;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      max-width: 100%;
      text-align: center;
      justify-content: center;
      flex-wrap: wrap;
  }

  .category-item {
      white-space: nowrap;
      padding: 8px 16px;
      border-radius: 999px;
      background: #f0f1f3;
      color: #333;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.2s ease;
  }

  .category-item:hover {
      background: #e2e4e8;
  }

  .category-item.active {
      background: #2563eb;
      color: #fff;
  }

  .category-link {
      display: block;
      padding: 10px 20px;
      background: #f8f9fa;
      color: #333;
      text-decoration: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.2s ease;
      white-space: nowrap;
      border: 1px solid transparent;
  }

  .category-link:hover {
      background: #e9ecef;
      border-color: #dee2e6;
  }

  .category-link.active {
      background: #007bff;
      color: white;
  }

  section h2 {
      font-size: 28px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 24px;
      letter-spacing: -0.5px;
  }




  @media screen and (min-width: 769px) {
      .center-container {
          width: 31cm;
          padding: 20px;
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
          max-width: 100%;
          margin: 0 auto;
          padding: 20px;
          text-align: center;
      }

      .footer {
          display: none;
      }

      section {
          max-width: 100%;
      }

      .fish-category-header h2 {
          font-size: 28px;
          font-weight: 600;
          color: #00347e;
          /* margin-bottom: 24px; */
          letter-spacing: -0.5px;
          border-bottom: 1;
          box-shadow: 2px 2px 20px rgb(20 0 110 / 25%);
          padding: 10px;
      }


      .fish-grid {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-content: center;
          align-items: stretch;
          flex-wrap: wrap;
          gap: 2rem;
      }

      .center-container {
          padding: 15px;
      }

      .fish-item {
          max-width: 20rem;
          margin-bottom: 0px;
      }

      .fish-image {
          flex: 0 0 150px;
          text-align: center;
      }

      .fish-image img {
          max-width: 100%;
          max-height: 200px;
          border-radius: 5px;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
          cursor: pointer;
          transition:
              transform 0.2s ease,
              filter 0.2s ease;
      }

      body {
          background-color: #f5f5f5;
          padding: 20px 0;
      }
  }

  /* Mobile styles */
  @media screen and (max-width: 768px) {
      .footer {
          display: none;
      }


      .fish-image {
          flex: 0 0 100px;
          text-align: center;
      }

      .fish-image img {
          max-width: 100%;
          max-height: 200px;
          border-radius: 5px;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
          cursor: pointer;
          transition:
              transform 0.2s ease,
              filter 0.2s ease;
      }


      .center-container {
          padding: 15px;
      }


  }

  @media screen and (max-width: 480px) {
      .center-container {
          padding: 10px;
      }



      h1 {
          font-size: 20px;
      }

      h2 {
          font-size: 18px;
      }

      p {
          font-size: 13px;
      }
  }






  @media print {
      .no-print {
          display: none !important;
      }



      /* body {
        margin: 0;
        padding: 0;
        orphans: 3;
        widows: 3;
    } */

      /* .no-print,
    .category-bar {
        display: none !important;
    }
     */

      .header {
          position: running(header);
          text-align: center;
          margin-top: 1cm;
          /* padding: 10px 0; */
      }

      /* .logo-header img {
          max-width: 150px;
      } */

      h1 {
          font-size: 24px;
          margin: 10px 0;
      }

      h2 {
          font-size: 18px;
          margin: 5px 0 20px 0;
      }

      /* Prevent category sections from breaking across pages */
      .fish-category {
          page-break-inside: avoid;
          break-inside: avoid;
          margin-bottom: 25px;
      }

      /* Keep category header with its content */
      .fish-category-header {
          page-break-after: avoid;
          break-after: avoid;
          page-break-inside: avoid;
          margin-bottom: 15px;
      }

      .fish-category-header h2 {
          page-break-after: avoid;
      }

      /* Prevent individual fish items from breaking */
      .fish-item {
          page-break-inside: avoid;
          break-inside: avoid;
          margin-bottom: 15px;
          box-shadow: none;
          border: 1px solid #ccc;
      }

      /* Grid adjustments for print */
      .fish-grid {
          grid-template-columns: 1fr;
          gap: 15px;
      }

      /* Image adjustments */

      .no-image {
          width: 120px;
          height: 120px;
      }

      .fish-image-link {
          cursor: default;
      }

      /* Remove interactive elements */
      .fish-image-link:hover {
          opacity: 1;
      }

      /* Table adjustments */
      .size-table {
          font-size: 0.9em;
      }


      .footer {
          position: running(footer);
          text-align: center;
          padding: 10px 0;
          border-top: 1px solid #b6b6b6;
          font-size: 12px;
          width: 19cm;
          /* color: #666; */
      }

      body {
          padding-bottom: 20px;
      }



      /* Color adjustments for print */
      .fish-category-header {
          background-color: #3333334f !important;
          -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
      }

      .price-cell {
          color: #000;
      }

      /* Ensure images print */
      img {
          -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
      }


  }