/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container for mobile simulation */
#app-container {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Style */
#app-header {
    background-color: #2a5298; /* Dark Blue */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.logout-btn {
    background-color: #ff4d4f; /* Red for emphasis */
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.logout-btn:hover {
    background-color: #d9363e;
}

/* Navigation Bar (Custom Nav Bar at the end of Part 4 code is used for Fixed Nav) */
#nav-bar {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 10;
}
.nav-item {
    flex-grow: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    color: #777;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.nav-item.active {
    color: #2a5298;
}
.nav-item i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 3px;
}

/* Main Content Area */
#mainApp {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 130px; /* Space for fixed navbar */
}
.screen {
    display: none;
    padding: 15px;
    min-height: 100%;
}
.screen.active {
    display: block;
}

/* Registration Screen Style */
#registrationScreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    height: 100vh;
}
#registrationScreen h2 {
    color: #2a5298;
    margin-bottom: 20px;
}
.input-group, #otpSection {
    width: 100%;
    margin-bottom: 15px;
}
input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}
.main-btn {
    background-color: #2a5298;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 10px;
}
.main-btn:hover {
    background-color: #1e3a66;
}
#loginMsg {
    margin-top: 15px;
    font-weight: 600;
}

/* Home/List Styles */
#mistri-categories {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    white-space: nowrap;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.cat-btn {
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #e5e7eb;
    color: #333;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.cat-btn.selected {
    background-color: #2a5298;
    color: white;
    font-weight: bold;
}

/* Search Bar */
#search-container {
    margin-bottom: 15px;
}
#main-search-bar {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Profile Card */
.profile-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ffc107; /* Yellow border for Providers */
}
.profile-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}
.profile-card p {
    margin: 0;
    font-size: 0.9rem;
}
.whatsapp-btn, .contact-btn, .share-btn {
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.whatsapp-btn {
    background-color: #25d366;
    color: white;
}
.contact-btn {
    background-color: #007bff;
    color: white;
}
.share-btn {
    background-color: #9c27b0;
    color: white;
}

/* Promotion Ad Card */
.ad-card {
    background-color: #e3f2fd; /* Light blue */
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px dashed #2a5298;
}
.ad-card button {
    background-color: #ff9800;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Form Styles */
.form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}
.form-container h3 {
    color: #2a5298;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-top: 0;
}
.form-field {
    margin-bottom: 15px;
}
.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95rem;
}
.submit-btn {
    background-color: #4caf50; /* Green submit button */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    }
/* ===== FULL SCREEN POP-UP ===== */
.popup-overlay {
  /* शुरू में hidden */
  display: none;
  
  /* Full Screen Cover */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  /* Dark Background */
  background-color: rgba(0, 0, 0, 0.85);
  
  /* Center Content */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* सबसे ऊपर */
  z-index: 999999;
  
  /* Smooth Animation */
  animation: fadeIn 0.3s ease-out;
}

/* Pop-up Content Box */
.popup-content {
  background: white;
  border-radius: 20px;
  padding: 25px;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Close Button */
.popup-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000000;
  transition: all 0.2s;
}

.popup-close-btn:hover {
  background: #ff2e43;
  transform: scale(1.1);
}

/* Promotion Banner Image */
.promo-banner {
  max-width: 100%;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.promo-banner:hover {
  transform: scale(1.02);
}

/* Promotion Link */
.promo-link {
  display: block;
  text-decoration: none;
}

/* Promotion Text */
.promo-text {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .popup-content {
    padding: 15px;
    max-width: 95%;
  }
  
  .popup-close-btn {
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

