/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #d1e7e78b;
}


/* Main content styles */
main {
  padding-top: 80px;
}

.hero {
  background: linear-gradient(rgba(88, 138, 176, 0.8), rgba(37, 38, 39, 0.508)),
    url("assets/bg1.jpg") no-repeat center center / cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: #e74c3c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #c0392b;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 50px 5%;
  background-color: #fff;
}

.feature-card {
  flex-basis: calc(33.333% - 2rem);
  text-align: center;
  padding: 2rem;
  margin: 1rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.feature-card i {
  color: #3498db;
  margin-bottom: 1rem;
}

.feature-card h2 {
  margin-bottom: 1rem;
}

.how-it-works {
  background-color: #f8f9fa;
  padding: 50px 5%;
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.step {
  flex-basis: calc(33.333% - 2rem);
  margin: 1rem;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #3498db;
  color: #fff;
  border-radius: 50%;
  line-height: 40px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.testimonials {
  padding: 50px 5%;
  background-color: #fff;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 2rem;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial {
  flex-basis: calc(50% - 2rem);
  margin: 1rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Footer styles */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex-basis: calc(33.333% - 2rem);
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #3498db;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #3498db;
}

.social-icons a {
  color: #ecf0f1;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #34495e;
}

/* Form styles */
.form-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #3498db;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #2980b9;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    right: 0;
    top: 80px;
    background-color: #fff;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .nav-active li {
    margin: 1rem 0;
  }

  .feature-card,
  .step,
  .testimonial,
  .footer-section {
    flex-basis: 100%;
  }
}

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

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

/* Login page styles */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  background: linear-gradient(rgba(52, 152, 219, 0.8), rgba(52, 152, 219, 0.8)),
    url("https://source.unsplash.com/1600x900/?technology") no-repeat center center / cover;
}

.login-section .form-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.login-section .form-container h2 {
  color: #3498db;
  margin-bottom: 1.5rem;
}

.login-section .form-footer {
  margin-top: 1rem;
  text-align: center;
}

.login-section .form-footer a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.login-section .form-footer a:hover {
  text-decoration: underline;
}




/* Items Section */
.items {
  margin-top: 3rem;
  padding: 0 2rem; /* Added horizontal padding for better spacing */
}

.items h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
}

.items h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #3498db;
}

/* Items Grid Container */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 280px)); /* Fixed width */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center; /* Center items in container */
  padding: 1rem;
}

/* Item Box */
.item {
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Item Image */
.item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Item Content */
.item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #2c3e50;
  font-weight: 600;
  width: 100%;
  text-align: left;
}

.item p {
  margin: 0 0 0.5rem 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  width: 100%;
  text-align: left;
}

/* Icons */
.item i {
  margin-right: 0.5rem;
  color: #3498db;
  font-size: 0.9rem;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #3498db;
  margin-top: auto; /* Pushes button to bottom */
  font-weight: 500;
  width: 100%;
}

.btn:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}



/* View All Link */
.view-all {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #3498db;
  text-decoration: none;
}

.view-all:hover {
  color: #2980b9;
}

/* Search Bar */
.search-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 50px;
}

.search-container input {
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px 0 0 50px;
  width: 300px;
  outline: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-container button {
  padding: 1rem 2rem;
  font-size: 1rem;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-container button:hover {
  background-color: #c0392b;
}


/* resolved seal */

.resolved-seal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  transform: rotate(-15deg);
  z-index: 10;
  border-radius: 5px;
}
.item {
  position: relative;
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
}











/* image slide */

.gallery-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 20px;
}
.gallery-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: none;
  background: #f5f5f5;
  border-radius: 8px;
}
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.nav-btn {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-btn:hover {
  background: #e0e0e0;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.dot.active {
  background: #4a90e2;
}
#item-details-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
#item-details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
#item-details-table th,
#item-details-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
#item-details-table th {
  width: 30%;
  color: #555;
}
.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-btn {
  background: #4a90e2;
  color: white;
}
.secondary-btn {
  background: #f0f0f0;
  color: #333;
}

/* Item Details Container */
#item-details-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Item Image */
#item-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
#item-details-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

#item-details-table th, #item-details-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

#item-details-table th {
  background-color: #3498db;
  color: white;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #333;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  #item-details-container {
      max-width: 90%;
      padding: 15px;
  }

  #item-details-table th, #item-details-table td {
      padding: 8px;
  }
}




/* User Profile Container */
#user-profile-container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Profile Picture */
#user-profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #333;
}

/* User Info Table */
#user-info-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

#user-info-table th, #user-info-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

#user-info-table th {
  background-color: #3498db;
  color: white;
  font-weight: bold;
}

/* Item Tables */
.item-list {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.item-list th, .item-list td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.item-list th {
  background-color: #3498db;
  color: white;
}


/* Popup container - background */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

/* Popup content */
.popup-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="text"],
input[type="date"] {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #45a049;
}
