/* ============================================================================
   RESPONSIVE LAYOUT FOR NATIVE APPS (iOS/Android)
   ============================================================================
   Uses env(safe-area-inset-*) to handle:
   - iPhone notches (iPhone X, 11, 12, 13, 14, 15)
   - Android status bars
   - Home indicators (bottom swipe areas)

   Fixed header at top, fixed bottom nav at bottom.
   Content scrolls between them with proper spacing.
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all elements */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

input, textarea, select, button {
    max-width: 100%;
}

html {
    height: 100dvh;
    width: 100%;
    /* NO scrolling on html */
    overflow: hidden;
    position: fixed;
}

body {
    background: #efefef;
    font-family: 'Arial', sans-serif;
    height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    /* NO scrolling on body - only in content container */
  
}




body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    border-top-left-radius: 30%;
    border-top-right-radius: 30%;
    background-color: #656565;
    z-index: -1;
}


label {
    font-weight: bolder !important;
}

/* Main content container (between header and footer) */
#mainContent {
    position: fixed;
    top: 52px; /* Header height */
    bottom: 62px; /* Bottom nav height */
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden; /* NO scroll - individual components handle their own scrolling */
    height: fit-content;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    padding: 12px 16px;
    /* Force hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.app-header img {
    height: 28px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.notification {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.notification span {
    position: absolute;
    top: -5px;
    right: -8px;
    background: red;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.user-profile img {
    height: 28px;
    width: 28px;
    border-radius: 50%;
}

.user-profile i {
    font-size: 14px;
    color: #333;
}

/* Overlay shown when dropdown open */
#pageOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 9990;
    /* under dropdown */
}

#pageOverlay.show {
    display: block;
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 55px;
    right: 10px;
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999;
    overflow: hidden;
    animation: fadeIn 0.18s ease-in-out;
}

.user-dropdown.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown .dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.user-dropdown .dropdown-header img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
}

.user-dropdown .user-name {
    font-weight: 600;
    font-size: 15px;
}

.user-dropdown .user-email {
    font-size: 13px;
    color: #777;
}

.user-dropdown .dropdown-list button {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: #fff;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
}

.user-dropdown .dropdown-list button:hover {
    background: #f7f7f7;
}

.user-dropdown .property-option.active {
    background: #f3f8ff;
    color: #007bff;
    font-weight: 600;
}

.user-dropdown .property-option.active i {
    position: absolute;
    right: 14px;
    color: #007bff;
}

.user-dropdown .dropdown-actions {
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.user-dropdown .dropdown-actions button {
    background: #fff;
    border: none;
    text-align: left;
    padding: 10px 14px;
    font-size: 14px;
}

.user-dropdown .dropdown-actions button:hover {
    background: #f7f7f7;
}

.tab-heading {
    margin: 10px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 12px;
    font-weight: 900;
}

/* Optional: Style for count badge in tab heading (if needed in future) */
.tab-heading .badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    background: #007bff;
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Hidden class for search filtering */
.job-card.hidden {
    display: none !important;
}

.tab-content {
    display: none; /* Hidden by default */
    margin: 10px;
    margin-bottom: 10px; /* 10px from bottom */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 1.1);
    padding: 10px 20px;
    height: 70svh;
    /* max-height: calc(100vh - 99px - 99px - 90px);  */
    /* overflow: auto; */
}

.tab-content.active {
    display: flex; /* Flexbox layout for search + scroll wrapper */
    flex-direction: column;
    justify-content: space-between;
}

/* New Jobs tab needs its own scrolling since it doesn't have tab-scroll-wrapper */
#tabnew-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for New Jobs tab */
#tabNew::-webkit-scrollbar {
    width: 8px;
}

#tabNew::-webkit-scrollbar-track {
    background: #f3f4f6; /* Default rail */
    border-radius: 4px;
}

#tabNew::-webkit-scrollbar-thumb {
    background: #007bff; /* Blue handle */
    border-radius: 4px;
}

#tabNew::-webkit-scrollbar-thumb:hover {
    background: #0056b3; /* Darker blue on hover */
}

#tabnew-scroll {
    scrollbar-width: thin;
    scrollbar-color: #121213 #f3f4f6; /* Blue handle, Default rail */
    
    
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.form-row label {
    flex: 0 0 40%;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 15px;
}

.form-select-btn {
    flex: 1;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px 10px;
    font-size: 14px;
    text-align: left;
    color: #333;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.form-select-btn::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

textarea {
    height: 70px;
    resize: none;
}

.photo-upload {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    width: 100%;
}

.photo-upload button {
    background: #e0e0e0;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
    


.btn-submit {
    flex: 1;
    background: #0f0f0f;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 10px;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid #050505;
    color: #050505;
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-cancel.active {
    background-color: #0e0d0d;
    color: white;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    z-index: 9999;
    padding: 10px 0 12px 0;
    /* Force hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.bottom-nav a {
    text-align: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

.bottom-nav i {
    font-size: 20px;
    display: block;
    margin-bottom: 2px;
}

.bottom-nav .active {
    color: #007bff;
}

.modal-body button {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.modal-body button:hover {
    background: #f1f1f1;
}

.dropdown-list-wrapper {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px;
    max-height: 160px;
    overflow-y: auto;
}

.dropdown-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list-wrapper::-webkit-scrollbar-thumb {
    background-color: #181717;
    border-radius: 10px;
}

/* Open Jobs Header */
.open-jobs-header {
  padding: 10px 10px 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.total-jobs {
  font-size: 15px;
  font-weight: 500;
  color: #007bff;
}

.property-info {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-bottom: 10px;
}

/* .job-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
} */

.job-header .job-id {
  font-size: 16px;
}

.detail-row {
  display: flex;
  /* justify-content: space-between; */
  /* align-items: baseline; */
  margin-bottom: 8px;
}

.detail-row .text-muted {
  font-size: 14px;
  flex: 0 0 40%;
  text-align: left;
}

.detail-row .text-dark {
  font-size: 14px;
  font-weight: 500;
  flex: 0 0 55%;
  text-align: right;
  word-wrap: break-word;
}

/* Photo Row Styling */
.photo-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.photo-row .text-muted {
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* .job-photo {
  max-width: 100px;
  width: 100px;
  height: auto;
  border-radius: 5px;
  margin-top: 0;
} */

.job-photo {
  width: 100px;
  height: 100px; /* fixed height */
  border-radius: 5px;
  margin-top: 0;
  object-fit: cover; /* image crop होकर fit रहेगी */
}


/* Status Row Alignment */
.d-flex {
  align-items: center;
  margin-top: 10px;
}

.d-flex .text-muted {
  font-size: 14px;
  margin-right: 10px;
}

.btn-primary {
  padding: 5px 15px;
  font-size: 14px;
}

/* Search bar - Simple and clean */
.search-container {
  position: relative;
  /* background: #ffffff; */
  /* padding: 16px 0; */
  margin-bottom: 16px;
  /* border-bottom: 1px solid #e0e0e0; */
}

/* Search icon using Font Awesome */
.search-container::before {
  content: "\f002"; /* Font Awesome search icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

/* Scrollable wrapper for job cards */
.tab-scroll-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.search-container .form-control {
  width: 100%;
  height: 46px; /* Fixed height for consistency */
  padding: 12px 16px 12px 44px; /* Left padding for icon */
  border-radius: 25px; /* Rounded pill shape */
  border: 2px solid #e0e0e0;
  background: #f8f9fa;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: block;
  box-sizing: border-box;
}

.search-container .form-control:focus {
  outline: none;
  border-color: #007bff;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.search-container .form-control::placeholder {
  color: #999;
  font-size: 14px;
}

/* Ensure all text-dark align properly */
.job-card .text-dark {
  text-align: left;
}



/* Jobs Section Styles */
#tabClose {
  padding: 20px;
  /* background: #fff; */
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,1.05);
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.jobs-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.jobs-count {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.jobs-scroll-container {
  /* max-height: calc(100vh - 80px - 120px - 134px);  */
  max-height: calc(100vh - 80px - 140px - 160px);
  overflow-y: auto;
}

@media (max-width: 768px) {
  .jobs-scroll-container {
    max-height: auto;   /* Phone & tablets */
  }
}

.count {
  background: #3b82f6;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Scrollable Container for job cards */
.jobs-scroll-container {
  /* No height/overflow - parent tab-scroll-wrapper handles it */
  padding-bottom: 20px;
  /* padding-right: 15px; */
}

/* Scrollbar styling for tab-scroll-wrapper */
.tab-scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}

.tab-scroll-wrapper::-webkit-scrollbar-track {
  background: #f3f4f6; /* Default rail */
  border-radius: 4px;
}

.tab-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #007bff; /* Blue handle */
  border-radius: 4px;
}

.tab-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #0056b3; /* Darker blue on hover */
}

.tab-scroll-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #141414 #f3f4f6; /* Blue handle, Default rail */
}

/* Job Card */
.job-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 20px 20px 0px 20px;
  height: 560px;
  box-shadow: 0 1px 3px rgba(0,0,0,1.1);
      /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); */
}


.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.job-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.closed {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  color: #ffff;
}

/* Job Details Grid */
.job-details-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 20px;
  margin-bottom: 16px;
}

.job-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.info-row i {
  color: #969697;
  width: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Image Container */
.image-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.image-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
}

.job-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

/* Job Footer */
.job-footer {
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #6b7280;
}

.status-row i {
  color: #10b981;
}

.status-text {
  font-weight: 500;
}

.remarks-section {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.remarks-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.remarks-content {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  /* body{
   
    overflow: hidden;
  } */
  .job-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .image-container {
    flex-direction: row;
    justify-content: center;
  }
  
  .jobs-header {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 12px;
  }
  .tab-heading{
    font-weight: 900;
  }
}



.status-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.status-modal {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.status-btn {
  border: none;
  padding: 6px 20px;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.bg-warning {
  background-color: #f0ad4e !important;
}

/* ====== IMAGE POPUP ====== */
.img-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.img-popup {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  max-width: 90%;
  max-height: 70%;
  overflow: auto;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.popup-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  border-radius: 8px;
  object-fit: contain;
}

#closeImgPopup {
  border-radius: 6px;
  font-weight: 600;
  margin-top: 10px;
}

/* resert password  */


    /* Popup styling */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(0,0,0,0.4);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .popup-content {
      background: #fff;
      padding: 25px;
      border-radius: 12px;
      width: 90%;
      max-width: 360px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .popup-content h4 {
      margin-bottom: 10px;
      font-size: 18px;
      text-align: center;
    }

    .popup-content p {
      text-align: center;
      font-size: 14px;
      color: #666;
      margin-bottom: 15px;
    }

    .input-box {
      margin-bottom: 12px;
    }

    .input-box label {
      font-size: 13px;
      display: block;
      margin-bottom: 5px;
    }

    .input-box input {
      width: 100%;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 6px;
    }

    .popup-buttons {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
    }

    .btn {
      flex: 1;
      padding: 8px;
      border: none;
      border-radius: 20px;
      font-weight: 600;
      cursor: pointer;
    }

    .btn-primary {
      background: black;
      color: white;
      margin-right: 10px;
      border-radius: 20px;
    }

    .btn-secondary {
      background: #ccc;
    }

    /* Strong colors with !important so they win over other styles */
    .status-bg-primary  { background-color: #0d6efd !important; color: #fff !important; }
    .status-bg-warning  { background-color: #fd7e14 !important; color: #fff !important; }
    .status-bg-success  { background-color: #198754 !important; color: #fff !important; }
    .status-bg-danger   { background-color: #dc3545 !important; color: #fff !important; }
    .status-bg-secondary{ background-color: #6c757d !important; color: #fff !important; }

    /* Modal styles (simple) */
    .status-modal-backdrop {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,.5);
      z-index: 9999;
    }
    .status-modal {
      width: 420px;
      max-width: 95%;
      background: #fff;
      padding: 16px;
      border-radius: 8px;
      box-shadow: 0 6px 24px rgba(0,0,0,.2);
    }



  .glass-effect-dark {
      background: rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  }

  .glass-effect-light {
       background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  }

  .glass-effect {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  }

  .glass-effect-modern {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.5);
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12),
                  inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

/* ============================================================================
   RESPONSIVE MEDIA QUERIES - Desktop & Tablet Optimization
   ============================================================================ */

/* Tablet (768px - 1024px) */
@media screen and (min-width: 768px) {
    /* Main content - adjust for taller header and footer */
    #mainContent {
        top: 64px; /* Adjusted for tablet header height */
        bottom: 68px; /* Adjusted for tablet bottom nav height */
    }

    /* Header adjustments */
    .app-header {
        padding: 16px 32px;
    }

    .app-header img {
        height: 32px;
    }

    /* Bottom nav adjustments */
    .bottom-nav {
        padding: 12px 0 16px 0;
    }

    /* Tab heading and content responsive */
    .tab-heading {
        font-size: 20px;
        padding: 16px 32px;
        max-width: 900px;
        margin: 10px auto;
    }

    .tab-content {
        max-width: 900px;
        margin: 10px auto;
        margin-bottom: 10px;
        padding: 24px;
        /* Tablet: 100vh - header(64px) - footer(68px) - tab-heading(~84px) - margins(30px)  */
         height: 70svh;
        /* max-height: calc(97vh - 99px - 99px - 90px);  */
        /* overflow: auto; */
    }

    /* Job cards in 2 columns on tablet */
    .jobs-scroll-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px 16px 20px 16px; /* Keep bottom padding 20px */
    }

    /* Form container centered */
    #tabNew {
        max-width: 700px;
        margin: 0 auto;
        padding: 20px;
    }

    /* Form inputs wider */
    .form-row input,
    .form-row textarea,
    .form-select-btn {
        font-size: 15px;
        padding: 12px;
    }

    /* Search bar - no adjustments needed, simple and clean */
}

/* Desktop (1025px and above) */
@media screen and (min-width: 1025px) {
    /* Main content - adjust for taller desktop header and footer */
    #mainContent {
        top: 76px; /* Adjusted for desktop header height */
        bottom: 72px; /* Adjusted for desktop bottom nav height */
    }

    /* Header desktop styling */
    .app-header {
        padding: 20px 48px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .app-header img {
        height: 36px;
    }

    /* Bottom nav desktop styling */
    .bottom-nav {
        padding: 16px 0 20px 0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    .bottom-nav-item {
        transition: all 0.2s ease;
    }

    .bottom-nav-item:hover {
        transform: translateY(-2px);
    }

    /* Tab heading and content responsive */
    .tab-heading {
        font-size: 24px;
        padding: 20px 48px;
        max-width: 1400px;
        margin: 10px auto;
    }

    .tab-content {
        max-width: 1400px;
        margin: 10px auto;
        margin-bottom: 10px;
        padding: 32px;
        /* Desktop: 100vh - header(76px) - footer(72px) - tab-heading(~104px) - margins(30px) */
        height: 70svh;
    /* max-height: calc(100vh - 99px - 99px - 90px);  */
    overflow: auto;
    }

    /* Job cards in 3 columns on desktop */
    .jobs-scroll-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 24px 24px 24px 24px; /* Consistent padding all around */
    }

    /* Job card hover effect */
    .job-card {
        transition: all 0.3s ease;
    }

    .job-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    /* Form container centered and limited width */
    #tabNew {
        max-width: 800px;
        margin: 0 auto;
        padding: 32px;
    }

    .form-row {
        margin-bottom: 5px;
    }

    .form-row input,
    .form-row textarea,
    .form-select-btn {
        font-size: 16px;
        padding: 14px;
    }

    /* Buttons larger on desktop */
    .btn-submit,
    .btn-cancel {
        padding: 14px 32px;
        font-size: 16px;
    }

    /* Search bar - no adjustments needed, simple and clean */

    /* Modals wider on desktop */
    .modal-dialog {
        max-width: 600px;
    }

    /* User dropdown */
    .user-dropdown {
        min-width: 320px;
    }
}

/* Large Desktop (1440px and above) */
@media screen and (min-width: 1441px) {
    /* Tab heading and content */
    .tab-heading {
        max-width: 1600px;
    }

    .tab-content {
        max-width: 1600px;
    }

    /* Job cards in 4 columns on large desktop */
    .jobs-scroll-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    #tabNew {
        max-width: 900px;
    }
}

.card-container {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 20000;
}
.card {
  background: #111;
  color: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  width: 280px;
  text-align: center;
}
.loader { position: relative; height: 50px; margin: auto; }
.loader span {
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 16px; background: #fff; border-radius: 3px;
  transform-origin: center bottom; opacity: 0; animation: appear 1.2s forwards;
}
.loader span:nth-child(1)  { transform: rotate(0deg) translateY(-20px);  animation-delay: 0s; }
.loader span:nth-child(2)  { transform: rotate(30deg) translateY(-20px); animation-delay: 0.1s; }
.loader span:nth-child(3)  { transform: rotate(60deg) translateY(-20px); animation-delay: 0.2s; }
.loader span:nth-child(4)  { transform: rotate(90deg) translateY(-20px); animation-delay: 0.3s; }
.loader span:nth-child(5)  { transform: rotate(120deg) translateY(-20px); animation-delay: 0.4s; }
.loader span:nth-child(6)  { transform: rotate(150deg) translateY(-20px); animation-delay: 0.5s; }
.loader span:nth-child(7)  { transform: rotate(180deg) translateY(-20px); animation-delay: 0.6s; }
.loader span:nth-child(8)  { transform: rotate(210deg) translateY(-20px); animation-delay: 0.7s; }
.loader span:nth-child(9)  { transform: rotate(240deg) translateY(-20px); animation-delay: 0.8s; }
.loader span:nth-child(10) { transform: rotate(270deg) translateY(-20px); animation-delay: 0.9s; }
.loader span:nth-child(11) { transform: rotate(300deg) translateY(-20px); animation-delay: 1.0s; }
.loader span:nth-child(12) { transform: rotate(330deg) translateY(-20px); animation-delay: 1.1s; }
@keyframes appear {
  0% { opacity: 0; transform: scale(0.5) translateY(-20px); }
  50% { opacity: 1; transform: scale(1) translateY(-20px); }
  100% { opacity: 1; }
}
#title{
  margin-top: 50px;
  font-size: 58px;
  font-weight: 600;
}
.popup-button{
  border: 1px solid rgb(251, 251, 252); 
  color: white;
  
}


/* user iocn */

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-icon {
  font-size: 20px;
  color: #333; /* change color if needed */
}
/* capaciter top buttom header */
body.capacitor-app .app-header {
  padding-top: env(safe-area-inset-top);
  border-bottom: none;
  margin-bottom: 20px;
}
body.capacitor-app #mainContent {
  padding-top: 10px;   /* adjust if needed: 70px–90px */
}
/* ✅ Bottom safe area for bottom navbar ONLY in Capacitor
body.capacitor-app .main-header {
  padding-bottom: env(safe-area-inset-bottom);
} */
body.capacitor-app .tab-content{
  height: 68vh;
}