/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f9f9f9;
  color: #333;
}

/* Header */


/* === FIX: Header layout and Admin Buttons === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0077cc;
  padding: 5px 20px;
  color: white;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}





/* === FIXED ADMIN BUTTON (Top Header Style) === */

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-btn {
  position: static !important; /* overrides all previous fixed settings */
  background: #0056b3;
  color: #fff;
  padding: 8px 18px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.admin-btn:hover {
  background: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

#adminLogoutBtn {
  background: #dc3545;
}

#adminLogoutBtn:hover {
  background: #ff4d5a;
}





.logo {
  width: 50px;
  margin-right: 10px;
}

.brand-name {
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
}

/* Search Bar */
.search-container {
  padding: 5px 20px;
  flex-shrink: 0;
  background-color: #f9f9f9;
}

.search-box {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #fff;
}

#searchInput {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

.search-btn {
  background-color: #0077cc;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.1rem;
}

.search-btn:hover {
  background-color: #005fa3;
}


/* Filter buttons container */
.filter-buttons {
  display: flex;           /* Make children in a row */
  justify-content: center; /* Center the buttons horizontally */
  flex-wrap: wrap;         /* Wrap to next line if screen is too small */
  gap: 10px;               /* Space between buttons */
  margin: 2px 0;
}

/* Individual filter buttons */
.filter-btn {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 5px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn:hover {
  background-color: #444;
}

.filter-btn.active {
  background-color: #007bff;
}




/* Contact Section */
#contact {
  max-width: 600px;
  margin: 5px auto;
  padding: 3px;
  background-color: #fff;
  border-radius: 12px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#contact h2 {
  color: #0077cc;
  margin-bottom: 8px;
}

#contact .contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px; /* space between phone and WhatsApp */
  flex-wrap: wrap; /* allows wrapping on small screens */
}

#contact .contact-links a {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
}

#contact .contact-links a:hover {
  text-decoration: underline;
}




#contact a.check-availability {
  color: #fff;
  background-color: #25D366;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: 0.3s;
}

#contact a.check-availability:hover {
  background-color: #128C7E;
}

/* Scrollable Table */
.table-container {
  flex: 1;
  overflow-y: auto;
  max-height: 450px; /* Fixed height for scroll */
  margin: 20px;
  border-radius: 12px;
}

/* Table Styling */
/*table {
  width: 100%;
  border-collapse: collapse;
}
*/


table {
  border-collapse: separate; /* works better with border-radius on iOS */
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}
thead {
  background-color: #0077cc;
  color: #fff;
  position: sticky; /* Fix header */
  top: 0;
  z-index: 2;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

table {
    border-collapse: separate;  /* important */
    border-spacing: 0 10px;     /* vertical gap between rows */
}

tbody tr:nth-child(even) {
  background-color: #f2f8ff;
}

tbody tr:hover {
  background-color: #e8f2ff;
}

/* Stock Status */
.in-stock {
  display: inline-block;
  white-space: nowrap;
  background: #28a745;
  color: #fff;
  padding: 5px 10px;
  border-radius: 12px;
}

.low-stock {
  display: inline-block;
  white-space: nowrap;
  background: #ff9800;
  color: #fff;
  padding: 5px 10px;
  border-radius: 12px;
}

.out-stock {
  display: inline-block;
  white-space: nowrap;
  background: #dc3545;
  color: #fff;
  padding: 5px 10px;
  border-radius: 12px;
}


    /* ======= ADMIN FEATURE ======= */
 /*   .admin-only {
      display: none;
    } */

    /* ======= ADMIN BUTTONS ======= */
/*    .admin-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 8px;
      padding: 10px 16px;
      cursor: pointer;
      font-weight: 600;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: 0.3s;
      z-index: 1000;
    }  */

/*
    .admin-btn:hover {
      background: #0056b3;
    }
*/
    /* ======= MODAL ======= */
  /*  .modal {
      display: none;
      justify-content: center;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
    }

    .modal-content {
      background: white;
      padding: 25px;
      border-radius: 12px;
      width: 300px;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      animation: fadeIn 0.3s ease;
    }

    .modal-content h2 {
      margin-bottom: 15px;
    }

    .modal-content input {
      width: 100%;
      padding: 8px;
      margin-bottom: 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
    }

    .modal-content button {
      width: 100%;
      padding: 8px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }

    .modal-content button:hover {
      background: #0056b3;
    }

    .close {
      float: right;
      font-size: 20px;
      cursor: pointer;
    }

    .close:hover {
      color: red;
    }

    .error-text {
      color: red;
      font-size: 0.9em;
      margin-top: 5px;
    }
*/

.install-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0077cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 16px;
  z-index: 1000;
}


.no-results {
  text-align: center;
  font-size: 18px;
  color: #dc3545;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 0;
  animation: fadeIn 0.3s ease-in-out;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Optional: make sure the area doesn't create huge empty space */
.table-container {
  margin-bottom: 10px;
}


/* Responsive */
@media (max-width: 768px) {
  .brand-name { font-size: 1.3rem; }
  th, td { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1rem; }
  th, td { font-size: 0.8rem; padding: 10px 6px; }
}





