:root {
  --primary-dark: #002244;
  --primary-light: #00509e;
  --accent: #f4b400;
  /* Softer gold */
  --accent-hover: #ffca28;
  --secondary-accent: #00aaff;
  /* New secondary accent */
  --background: #f8fafc;
  --text: #1a202c;
  --shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: auto;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
header {
  background-color: var(--primary-dark);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: bold;
  color: #fff;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 10%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;


}

.nav-links li a {
  position: relative;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.25rem;
}

.nav-links li a:hover,
.nav-links li a:focus,
.nav-links li a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 1.5rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%), url('https://www.transparenttextures.com/patterns/45-degree-fabric-light.png');
  background-blend-mode: overlay;
  color: #fff;
  text-align: center;
  padding: 8rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 10s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  animation: fadeIn 1.2s ease-in 0.2s forwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 600px;
  margin: auto;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn:hover::before {
  left: 0;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary-dark);
}

.primary-btn:hover,
.primary-btn:focus {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;
  color: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
}

.secondary-btn:hover,
.secondary-btn:focus {
  background: var(--secondary-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.service {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.service:hover,
.service:focus-within {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.service h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.service li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

#services h2,
#about h2,
#contact h2,
#how-it-works h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
}

#services ul {
  text-align: left;
  margin-left: auto;
}

/* How It Works */
.steps {
  display: flex;
  gap: 2rem;
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.step {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  flex: 1;
  position: relative;
  transition: transform 0.3s ease;
}

.step:hover,
.step:focus-within {
  transform: translateY(-5px);
}

.step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* About */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}

.about-text {
  padding: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Contact */
.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: auto;
}

.form-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #6b7280;
  transition: all 0.2s ease;
  pointer-events: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--primary-dark);
  background: #fff;
  padding: 0 0.25rem;
}

input,
textarea,
select {
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.2);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 3rem 1.5rem;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 2rem;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #fff;
  font-size: 1.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus {
  color: var(--accent);
  transform: translateY(-2px);
}

.newsletter {
  margin-top: 2rem;
}

.newsletter .form-group {
  display: flex;
  gap: 1rem;
}

.newsletter input {
  flex: 1;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover,
.back-to-top:focus {
  transform: scale(1.1);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeInModal 0.3s ease;
}

.modal-content {
  background: #fff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  width: 90%;
  transform: scale(0.8);
  animation: scaleIn 0.3s ease forwards;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  /* Ensure relative positioning for absolute close button */
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
  background: var(--accent);
  color: #fff;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent);
}

.trade-form {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.trade-form.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  gap: 2rem;
}

.modal-content select,
.modal-content input,
.modal-content textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  font-size: 1rem;
}

.modal-content select:focus,
.modal-content input:focus,
.modal-content textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.2);
  outline: none;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  to {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 6rem 1rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    font-size: 1.1rem;
  }

  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps {
    flex-direction: column;
    gap: 1.5rem;
  }

  .step {
    flex: none;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .modal-content {
    padding: 2rem;
    width: 95%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .social-icons {
    justify-content: center;
  }

  #buy-form>div:nth-child(3)>div,
  #sell-form>div:nth-child(4)>div>div {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
    width: 99%;

  }

  .flex.justify-end.gap-3 {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
}

/* --- Start of Buy/Sell Form Specific Adjustments --- */

/* Ensure consistent margin for form groups within the modal trade forms */
.modal-content .trade-form .form-group {
  margin-bottom: 1.5rem;
  /* Adjust as needed */
}

/* Style labels within the trade forms to match the general form style */
.modal-content .trade-form .form-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #6b7280;
  transition: all 0.2s ease;
  pointer-events: none;
}

.modal-content .trade-form .form-group input:focus+label,
.modal-content .trade-form .form-group input:not(:placeholder-shown)+label,
.modal-content .trade-form .form-group textarea:focus+label,
.modal-content .trade-form .form-group textarea:not(:placeholder-shown)+label,
.modal-content .trade-form .form-group select:focus+label {
  /* Added select here */
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--primary-dark);
  background: #fff;
  padding: 0 0.25rem;
}

/* Style selects within the trade forms to match input style */
.modal-content .trade-form .form-group select {
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  transition: all 0.2s ease;
  appearance: none;
  /* Remove default arrow */
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%236b7280" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.modal-content .trade-form .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.2);
  outline: none;
}

/* Style the label for the "Size" section */
#buy-form>div:nth-child(3)>label,
/* Targeting the Size label in Buy form */
#sell-form>div:nth-child(4)>div>label {
  /* Targeting the Size label in Sell form */
  position: relative;
  /* Remove absolute positioning from the general label */
  top: auto;
  left: auto;
  transform: none;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  /* Ensure it takes full width */
}

/* Adjust the grid layout for the "Size" section in the Buy form */
#buy-form>div:nth-child(3)>div {
  /* Targeting the grid container */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Three columns */
  gap: 1rem;
  /* Adjust the gap as needed */
  margin-bottom: 1rem;
  /* Add some space below the grid */
}

#buy-form>div:nth-child(3)>div>.form-group {
  margin-bottom: 0;
  /* Remove default margin for items within the grid */
}

#buy-form>div:nth-child(3)>div>.form-group label {
  position: relative;
  /* Adjust label position within the grid item */
  top: auto;
  left: auto;
  transform: none;
  font-size: 0.8rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

#buy-form>div:nth-child(3)>div>.form-group input[type="number"],
#buy-form>div:nth-child(3)>div>.form-group select {
  width: 100%;
  /* Ensure full width within the grid item */
  padding: 0.75rem;
  /* Adjust padding for smaller inputs */
  font-size: 0.9rem;
}

/* Adjust the grid layout for the "Size" section in the Sell form */
#sell-form>div:nth-child(4)>div>div {
  /* Targeting the grid container */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Three columns */
  gap: 1rem;
  /* Adjust the gap as needed */
  margin-bottom: 1rem;
  /* Add some space below the grid */
}

#sell-form>div:nth-child(4)>div>div>.form-group {
  margin-bottom: 0;
  /* Remove default margin for items within the grid */
}

#sell-form>div:nth-child(4)>div>div>.form-group label {
  position: relative;
  /* Adjust label position within the grid item */
  top: auto;
  left: auto;
  transform: none;
  font-size: 0.8rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

#sell-form>div:nth-child(4)>div>div>.form-group input[type="number"],
#sell-form>div:nth-child(4)>div>div>.form-group select {
  width: 100%;
  /* Ensure full width within the grid item */
  padding: 0.75rem;
  /* Adjust padding for smaller inputs */
  font-size: 0.9rem;
}

/* Style for the "Other" material/shape input fields (initially hidden) - Adjust margin-top */
#other-material-buy,
#other-material-sell,
#other-shape-buy,
#other-shape-sell {
  margin-top: 1rem;
  /* Adjust spacing above the "Other" input */
}

/* Ensure the "Other" input field itself has proper padding and width */
#other-material-buy input,
#other-material-sell input,
#other-shape-buy input,
#other-shape-sell input {
  width: 100%;
  /* Full width for consistency */
  padding: 1rem;
  /* Match other form inputs */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

/* Optional: Adjust label positioning for clarity of "Other" fields if needed */
/* You might not need to adjust these further as they are likely positioned correctly now */
/*
#other-material-buy label,
#other-material-sell label,
#other-shape-buy label,
#other-shape-sell label {
    font-size: 0.9rem;
    color: #6b7280;
}
*/

/* --- End of Buy/Sell Form Specific Adjustments --- */

/* Responsive adjustments for the footer */


/* Modal styles */

/* Form styles */
.auth-form-group {
  position: relative;
  margin-bottom: 20px;
}

.auth-form-group input {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.auth-form-group input:focus {
  border-color: #007bff;
}

.auth-form-group label {
  /* position: absolute; */
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #070707;
  pointer-events: none;
  transition: all 0.3s ease;
}

.auth-form-group input:focus+label,
.auth-form-group input:not(:placeholder-shown)+label {
  top: -10px;
  font-size: 12px;
  color: #007bff;
}

.message-hidden {
  display: none;
}

.message-visible {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.message-success {
  color: green;
}

.message-error {
  color: red;
}

/* General modal styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* Semi-transparent background */
  backdrop-filter: blur(5px);
  /* Optional blur effect */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Reset Password Modal Content */
#forgot-modal .modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  transform: translateY(0);
  animation: fadeInModal 0.3s ease;
}


/* Modal Title */
#forgot-modal .modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

/* Form Group Styles */
#forgot-modal .auth-form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

#forgot-modal .auth-form-group input {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

#forgot-modal .auth-form-group input:focus {
  border-color: #007bff;
}

#forgot-modal .auth-form-group label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #666;
  pointer-events: none;
  transition: all 0.3s ease;
}

#forgot-modal .auth-form-group input:focus+label,
#forgot-modal .auth-form-group input:not(:placeholder-shown)+label {
  top: -10px;
  font-size: 12px;
  color: #007bff;
}

/* Submit Button */
#forgot-modal .modal-content button[type="submit"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

#forgot-modal .modal-content button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  transform: translateY(-2px);
}

#forgot-modal .modal-content button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Back to Login Link */
#forgot-modal .modal-content p {
  text-align: center;
  margin-top: 1rem;
  font-size: 14px;
}

#forgot-modal .modal-content p a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

#forgot-modal .modal-content p a:hover {
  text-decoration: underline;
}

/* Success and Error Messages */
.message-hidden {
  display: none;
}

.message-visible {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.message-success {
  color: green;
}

.message-error {
  color: red;
}

/* Fade-in Animation for Modal */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #forgot-modal .modal-content {
    padding: 1.5rem;
  }

  #forgot-modal .modal-content h3 {
    font-size: 1.25rem;
  }

  #forgot-modal .modal-content p {
    font-size: 0.9rem;
  }
}

.login_style {
  color: darkblue;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.login_style:hover {
  color: var(--primary-light);
  text-decoration: underline;
}


/*DASHBOARD CSS*/
/* Basic Reset and General Styles (Consider if these should be scoped) */
/* Basic Reset and General Styles */
/* Basic Reset and General Styles */
/* Basic Reset and General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #eef2f7;
  color: #333;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Header Styles */
header {
  background-color: #34495e;
  /* Darker header background */
  color: white;
  padding: 1rem 2rem;
  display: flex;
  /* Use Flexbox */
  justify-content: space-between;
  /* Space out the title and button */
  align-items: center;
  /* Vertically align items */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Add shadow to header */
}

header h1 {
  margin: 0;
  /* Remove default margin */
  color: white;
  /* White text for header title */
  font-size: 1.8rem;
}

.trade-tab {
  /* display: flex; */
  width: 120px;
  height: 40px;
  gap: 1rem;
  margin-left: auto;
  /* Push to the right */
  align-items: center;
  /* Center vertically */
  font-size: 1.2rem;
  font-weight: 600;
  color: #34495e;
  /* Darker text color */
  cursor: pointer;
  transition: color 0.3s ease;
  border: none;
  border-radius: 4px;
}

.trade-tab.active {
  background-color: #2ecc71;
  color: white;
  border: none;
}

#logout-btn {
  /* Style the logout button */
  padding: 0.6rem 1.5rem;
  background-color: #e74c3c;
  /* Reddish color */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#logout-btn:hover {
  background-color: #c0392b;
  /* Darker red on hover */
}


/* Loading Screen Styles */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-screen p {
  /* Style the loading message */
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
}

/* Main Dashboard Container */
#inventory-dashboard-container {
  display: flex;
  padding: 1.5rem;
  gap: 1.5rem;
  background-color: #eef2f7;
}

/* Filter Section */
#inventory-dashboard-container #filter-section {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 280px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 1.5rem;
  /* Adjust if header height affects this */
  max-height: calc(100vh - 3rem - 58px);
  /* Adjust calc based on header height (approx 58px) */
  overflow-y: auto;
}

#inventory-dashboard-container #filter-section h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: #34495e;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.8rem;
}

/* Inventory Grid */
#inventory-dashboard-container #inventory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 1;
  max-width: calc(100% - 280px);
  min-width: 400px;
  background-color: #f9f9f9;
  padding: 1rem;
}

/* Material Card */
#inventory-dashboard-container .material-card {
  flex: 0 1 calc(25% - 1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  background-color: #f9f9f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Material Card Image */
#inventory-dashboard-container .material-card img {
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 4px;
}

/* Card Title */
#inventory-dashboard-container .material-card h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

/* Card Paragraph */
#inventory-dashboard-container .material-card p {
  font-size: 0.9rem;
  margin-bottom: 3px;
}

/* Error Message */
.error-message {
  color: #c0392b;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  background-color: #fdeded;
  border: 1px solid #f5baba;
  border-radius: 5px;
  margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #inventory-dashboard-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  #inventory-dashboard-container #filter-section {
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  #inventory-dashboard-container #inventory-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Material Brief Section */
#inventory-dashboard-container .material-card .material-brief {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  position: relative;
}

/* Material Brief Image */
#inventory-dashboard-container .material-card .material-brief img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
  object-fit: cover;
}

/* Expand/Collapse Button */
#inventory-dashboard-container .material-card .expand-details-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #34495e;
  padding: 5px;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Rotated Icon */
#inventory-dashboard-container .material-card .expand-details-btn i.rotated {
  transform: rotate(180deg);
}

/* Full Details Section */
#inventory-dashboard-container .material-card .material-full-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* Hidden Details */
#inventory-dashboard-container .material-card .hidden-details {
  display: none;
}

/* Dimensions and Specs */
#inventory-dashboard-container .material-card .dimensions,
#inventory-dashboard-container .material-card .specifications {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

#inventory-dashboard-container .material-card .specifications h4,
#inventory-dashboard-container .material-card .dimensions h4 {
  margin-bottom: 0.4rem;
}


/* Ensure existing image style in CSS is updated or removed if it conflicts */
/* For example, remove the old rule if it targets .material-card img directly */
/* If you had:
#inventory-dashboard-container .material-card img { ... }
Replace it with:
#inventory-dashboard-container .material-card .material-brief img { ... }
*/

/* Remove extra space between elements */
.mt-1 {
  margin-top: 0.25rem;
  /* Adjust as needed */
}

.space-y-1>* {
  margin: 0;
  /* Remove default margins */
}

.text-center svg {
  margin: 0 auto;
  /* Center the SVG without extra space */
}

.flex.text-sm.text-gray-600 {
  margin-top: 0.5rem;
  /* Adjust spacing between the upload label and the SVG */
}

.text-xs.text-gray-500 {
  margin-top: 0.25rem;
  /* Adjust spacing for the file size text */
}

/* Basic styling for the inventory section - you can enhance this */
#inventory-section {
  margin: 20px auto;
  /* Center the section and add vertical margin */
  padding: 20px;
  border: 1px solid #dcdcdc;
  /* Subtle border */
  border-radius: 10px;
  /* Rounded corners */
  background-color: #ffffff;
  /* White background */
  max-width: 800px;
  /* Limit the width for better readability */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Add a subtle shadow */
  font-family: Arial, sans-serif;
  /* Use a common font */
}

#inventory-section h2 {
  text-align: center;
  /* Center the heading */
  color: #03045e;
  /* Dark grey color */
  margin-top: 0;
  /* Remove top margin */
  margin-bottom: 25px;
  /* Add space below the heading */
  font-size: 1.8em;
  /* Slightly larger font size */
  border-bottom: 2px solid #007bff;
  /* Add an underline specific to the theme color */
  padding-bottom: 10px;
  /* Space between text and underline */
}


#inventory-data-container {
  margin-top: 15px;
}

#inventory-data-container p {
  background-color: #e9f5ff;
  /* Light blue background for paragraphs */
  color: #0056b3;
  /* Darker blue text */
  padding: 12px 15px;
  /* Add padding inside paragraphs */
  border-left: 5px solid #007bff;
  /* Add a colored left border */
  margin-bottom: 15px;
  /* Space between paragraphs */
  border-radius: 5px;
  /* Slightly rounded corners for paragraphs */
  font-size: 1.1em;
  /* Slightly larger text */
  line-height: 1.5;
  /* Improve readability */
}

#inventory-data-container p strong {
  color: #333;
  /* Make the number stand out */
  font-size: 1.2em;
  /* Make the number slightly larger than surrounding text */
}

/* If you keep the loading/error messages, you might style them too */
#inventory-data-container p:first-child {
  margin-top: 0;
}

#inventory-data-container p:last-child {
  margin-bottom: 0;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.inventory-table th,
.inventory-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.inventory-table th {
  background-color: #e2e2e2;
  font-weight: bold;
}

.inventory-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Add this CSS to your <style> block in index.html or your main CSS file */

/* Container to hold the badge groups side-by-side */
.inventory-badges-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  /* Align items to the top */
  flex-wrap: wrap;
  gap: 30px;
  /* Increase gap to accommodate label below */
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ✅ Style for the group containing the badge and label */
.inventory-badge-group {
  display: flex;
  flex-direction: column;
  /* Stack badge above label */
  align-items: center;
  /* Center the badge and label horizontally */
  text-align: center;
  /* Ensure text is centered */
  width: 150px;
  /* Give the group a width, similar to the badge */
}

/* Style for each individual circular badge (now only contains the number) */
.inventory-badge {
  width: 120px;
  /* Slightly smaller circle perhaps? Adjust as needed */
  height: 120px;
  /* Make it equal to width */
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  /* Flexbox to center the number */
  /* flex-direction: column; /* REMOVE: Content is just the number now */
  justify-content: center;
  /* Center the number vertically */
  align-items: center;
  /* Center the number horizontally */
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
  margin-bottom: 10px;
  /* ✅ Add space between the circle and the label below */
}

/* Style for the number inside the badge */
.badge-number {
  font-size: 2em;
  /* Adjust font size for the potentially smaller circle */
  font-weight: bold;
  /* margin-bottom: 5px; /* REMOVE or adjust if number is the only content */
}

/* Style for the label below the badge */
.badge-label {
  font-size: 1em;
  /* Adjust font size */
  color: #03045e;
  /* Darker color for label */
  font-weight: bold;
  /* Medium weight for label */
  /* font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
  text-align: center;
  /* Center the label text */
  /* opacity: 0.9; /* Optional */
  /* margin-top: 10px; /* Space added in .inventory-badge margin-bottom */
}

/* Optional: Specific styling for different badge types */
/*
.inventory-badge-group .material-variety .inventory-badge { background-color: #28a745; }
.inventory-badge-group .total-quantity .inventory-badge { background-color: #ffc107; color: #333; }
*/

/* Utility class to hide elements */
.hidden {
  display: none !important;
  /* Use !important to ensure it overrides other display properties */
}

.enquiry-btn {
  margin-top: 1rem;
  /* Add some space above the button */
  width: 100%;
  /* Make the button full width of the card */
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  /* Using primary-btn styles, adjust if needed */
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enquiry-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-2px);
}

/* Specific styles for enquiry form fields if needed to override general ones */
#enquiry-form .form-group input[type="text"],
#enquiry-form .form-group input[type="email"],
#enquiry-form .form-group input[type="tel"],
#enquiry-form .form-group textarea {
  /* Ensure they match your general form input styles */
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  transition: all 0.2s ease;
}

#enquiry-form .form-group input:focus,
#enquiry-form .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.2);
  outline: none;
}