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

/* ===== BASE ===== */
body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background: #fafafa;
  overflow-x: hidden;
}

.container {
  width: 90%;
  margin: auto;
}

/* ===== HEADER ===== */
.header {
  background: rgb(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}



/* waittttt */
.logo {
  display: flex;
  align-items: center; /* vertically center */
  gap: 10px; /* space between logo and text */
}

.logo img {
  max-height: 35px; /* adjust logo size */
  width: auto;  /* keep proportions */
  display: block;
  border-radius: 7px;
}

.logo h1 {
  font-size: 2rem;  
  color: white;       
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0%;
}

/* cont */

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.navbar a:hover {
  text-decoration: underline;
}

.btn-login {
  background: #fff;
  color: #000000;
  padding: 6px 12px;
  border-radius: 4px;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
    background: rgb(0, 0, 0, 0.8);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100vh;
  }

  .navbar.active {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .logo img {
  max-height: 30px; /* adjust logo size */
  width: auto; }

  .logo h1 {
  font-size: 1.09rem;}
}

/* ===== HERO ===== */

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  padding: 20px;
  z-index: 2;
}

.hero-content h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
}

.hero-content p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search-bar select,
.search-bar input,
.search-bar button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.search-bar button {
  background: #000000;
  color: #fff;
  cursor: pointer;
}

.search-bar button:hover {
  background: #312424dc;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 60px 20px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  font-size: 1.1rem;
  transition: 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: #f4f4f4;
  text-align: center;
  padding: 60px 20px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.step {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.step:hover {
  transform: scale(1.05);
}

/* ===== WHY US ===== */
.why-us {
  padding: 60px 20px;
  text-align: center;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.why-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.why-card h4 {
  color: #000000;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: #000000;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ===== TECHNICIAN===== */
/* ===== TECHNICIAN PAGE ===== */
.technician-search {
 background-image: url("../assets/images/hero.jpg");
  background-attachment: fixed;
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.technician-search h2 {
  color: #000000;
  background-color: rgb(255, 255, 255, 0.5);
  padding: 5px;
  border-radius: 5px;
  display: inline;
  font-weight: 1000;
}

.filter-bar {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar select,
.filter-bar input,
.filter-bar button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.filter-bar button {
  background: #fff;
  color: #000000;
  cursor: pointer;
  font-weight: 600;
}

.filter-bar button:hover {
  background: #f4f4f4;
}

/* ===== TECHNICIAN GRID ===== */
.technicians {
  padding: 60px 20px;
}

.technicians h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #000000;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.tech-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: 0.3s;
}

.tech-card:hover {
  transform: translateY(-5px);
}

.tech-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.tech-card h4 {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 5px;
}

.tech-card .category {
  font-weight: 500;
  color: #444;
}

.tech-card .location {
  font-size: 0.9rem;
  color: #666;
}

.tech-card .rating {
  margin: 10px 0;
  color: #ffb400;
}

.tech-card button {
  padding: 8px 15px;
  background: #5f5a5a;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.tech-card button:hover {
  background: #000000;
}

/* ===== TECHNICIAN PROFILE PAGE ===== */
.profile-header {
  background: rgb(0, 0, 0, 0.8);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.profile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
}

.profile-info h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.profile-info p {
  margin: 5px 0;
}

.contact-btn {
  background: #fff;
  color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}

.contact-btn:hover {
  background: #f4f4f4;
}

/* ===== ABOUT ===== */
.profile-about {
  padding: 60px 20px;
  background: #fff;
}

.profile-about h3 {
  color: #000000;
  margin-bottom: 15px;
}

/* ===== SERVICES ===== */
.profile-services {
  background: #f4f4f4;
  padding: 60px 20px;
}

.profile-services h3 {
  color: #000000;
  margin-bottom: 15px;
}

.profile-services ul {
  list-style: disc;
  padding-left: 20px;
  color: #333;
}

/* ===== REVIEWS ===== */
.profile-reviews {
  padding: 60px 20px;
  background: #fff;
}

.profile-reviews h3 {
  color: #000000;
  margin-bottom: 20px;
}

.review {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.review h4 {
  color: #222;
  margin-bottom: 5px;
}

.review p {
  font-size: 0.95rem;
  color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .profile-top {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== AUTH PAGE ===== */

.auth-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
   background-image: url("../assets/images/hero.jpg");
  background-attachment: fixed;
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 20px;
}

.auth-container {
  background: rgb(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.auth-container h2 {
  margin-bottom: 20px;
  color: #000000;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.auth-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #000000;
}

.auth-form button {
  background: #000000;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.auth-form button:hover {
  background: #363333;
}

.auth-container p {
  font-size: 0.9rem;
  color: #444;
}

.auth-container a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
}

.auth-container a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .auth-container {
    padding: 30px 20px;
  }
}

/* ===== DASHBOARD ===== */
.dashboard {
  padding: 60px 20px;
  background: #f4f6fb;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.dashboard-header h2 {
  color: #000000;
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  font-size: 1.8rem;
  color: #000000;
}

.dashboard-section {
  margin-bottom: 50px;
}

.dashboard-section h3 {
  color: #000000;
  margin-bottom: 20px;
}

/* ===== TABLE ===== */
.job-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-table th, .job-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.job-table th {
  background: #000000;
  color: #fff;
}

.status {
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
  color: #fff;
}

.status.pending {
  background: #ff9800;
}

.status.completed {
  background: #4caf50;
}

.status.ongoing {
  background: #2196f3;
}

/* ===== BUTTONS ===== */
.btn-accept, .btn-view, .btn-edit {
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accept {
  background: #004aad;
  color: #fff;
}

.btn-accept:hover {
  background: #003580;
}

.btn-view {
  background: #2196f3;
  color: #fff;
}

.btn-view:hover {
  background: #1976d2;
}

.btn-edit {
  background: #000000;
  color: #fff;
}

.btn-edit:hover {
  background: #3d3636;
}

/* ===== PROFILE SUMMARY ===== */
.profile-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-summary img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-summary p {
  margin: 5px 0;
  color: #333;
}

@media (max-width: 768px) {
  .profile-summary {
    flex-direction: column;
    text-align: center;
  }
}
/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard .dashboard-header h2 {
  color: #b91c1c;
}

.admin-dashboard .stat-card h3 {
  color: #b91c1c;
}

.admin-dashboard .btn-accept {
  background: #4caf50;
}

.admin-dashboard .btn-accept:hover {
  background: #43a047;
}

.admin-dashboard .btn-view {
  background: #b91c1c;
}

.admin-dashboard .btn-view:hover {
  background: #991b1b;
}
.navbar a.active {
  text-decoration: underline;
  font-weight: 600;
}

/* ===== ANIMATION & NO-RESULTS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #555;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#reset-filter {
  display: none;
}

/* ===== SERVICES PAGE ===== */
.services {
  padding: 60px 0;
  background: #f5f7fa;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #000000;
}

.section-desc {
  color: #555;
  font-size: 1rem;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.service-card h4 {
  color: #000000;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}
.service-card {
  cursor: pointer;
}

/* ===== BOOKING PAGE ===== */
.booking {
  padding: 60px 0;
  background: #f9fafc;
}

.booking h2 {
  color: #000000;
  margin-bottom: 10px;
  text-align: center;
}

.booking-form {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.booking-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.booking-form label {
  font-weight: 600;
  color: #000000;
  display: block;
  margin-bottom: 5px;
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.booking-form input:focus,
.booking-form textarea:focus {
  border-color: #000000;
  outline: none;
}

.booking-form button {
  width: 100%;
  padding: 12px;
  background: #1b1616;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.booking-form button:hover {
  background: #000000;
}
/* ===== SUCCESS POPUP ===== */
.success-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  animation: fadeIn 0.4s ease;
}

.success-popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: scaleUp 0.3s ease;
}

.popup-content h3 {
  color: #000000;
  margin-bottom: 10px;
}

.popup-content p {
  color: #555;
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#user-greeting {
  color: #000000;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#logout-btn{
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(0, 0, 0);
  cursor: pointer;
  color: #eee;
  padding: 10px;
  margin-bottom: 30px;
  border-radius: 8px;
  width: 100px;
}

/* ===== FOOTER FIX ===== */
.dashboard-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
}

/* Add spacing to avoid overlap */
.dashboard {
  padding-bottom: 80px;
}

/* ===== LOGOUT BUTTON STYLE ===== */
.btn-logout {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.btn-logout:hover {
  background: #facc15;
  color: #000;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .navbar {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }
  .navbar.active {
    display: flex;
  }
}

/* === AUTH PAGE STYLING === */


.auth-container {
  background: rgb(255, 255, 255, 0.5);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.auth-container h2 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"],
.auth-container input[type="tel"],
.auth-container textarea {
  padding: 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
}

.auth-container input:focus {
  border-color: #007bff;
}

.auth-container .btn-login {
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  background: #000000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.auth-container .btn-login:hover {
  background: #1f1b1b;
}

.auth-container p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .auth-container {
    padding: 2rem 1.2rem;
  }
}

.hero {
 background-image: url("../assets/images/hero.jpg");
  background-attachment: fixed;
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 20px;
  color: #ddd;
}

.hero .search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero .search-bar input {
  padding: 10px;
  width: 250px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
}

.hero .search-bar button {
  padding: 10px 20px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.hero .search-bar button:hover {
  background: #ddd;
}
