/* Form container */
.form-container {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 400px;
  margin: auto;
}

.form-container h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #0C2341;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button,
.login-container button {
  width: 100%;
  padding: 10px;
  background: #0C2341;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover,
.login-container button:hover {
  background: #0C2341;
}

#productForm {
  display: none;
}

/* User login/profile */
.user-profile {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  gap: 8px;
}

.user-initial,
.user-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
  margin-left: 8px;
  color: #000;
  cursor: pointer;
}

.user-profile.open .dropdown-icon {
  transform: rotate(180deg);
}

/* .dropdown-menu, .userLogin-dropdown-menu {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 999;
  padding: 10px 0;
} */

/* .dropdown-menu a, .userLogin-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: background 0.2s;
}

.dropdown-menu a:hover, .userLogin-dropdown-menu a:hover {
  background-color: #f0f0f0;
} */

/* Login icon */
#loginIcon {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: fit-content;
  padding: 10px;
  color: #333;
}

#loginIcon i {
  font-size: 24px;
  color: #aaa;
}

/* Modal popup */
.userLoginModelContent, .userSignupModelContent {
  margin: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 400px;
  z-index: 999;
}

.userLoginModelContent h4, .userSignupModelContent h4 {
  color: #333;
  font-size: 20px;
  text-align: center;
  padding: 15px 10px;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

.login-container {
  display: flex;
  flex-direction: column;
}

.login-container input {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
}

/* Messages */
#message {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

#message.success, .success {
  color: green;
  margin-top: 10px;
}

#message.error, .error {
  color: red;
  margin-top: 10px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .dropdown-menu, .userLogin-dropdown-menu {
    right: 10px;
    top: 55px;
    min-width: 160px;
  }

  .dropdown-menu a, .userLogin-dropdown-menu a {
    font-size: 16px;
    padding: 14px 20px;
  }

  .user-initial,
  .user-pic {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
  }
}


