/*seller buyer dahboard*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f1f5f9;
  color: #0c1f45;
}

/* ================= Buyer Dashboard Additions ================= */

/* Buyer Dashboard Welcome */
.buyer-welcome {
  font-size: 18px;
  margin-bottom: 25px;
  color: #0c1f45;
  font-weight: 500;
}

/* Transaction Stats Section */
.buyer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.buyer-stats .card {
  text-align: center;
  padding: 25px;
}

.buyer-stats .card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #00bcd4;
}

.buyer-stats .card p {
  font-size: 14px;
  color: #555;
}

/* Transaction History Table */
.transaction-history {
  margin-top: 30px;
}

.transaction-history h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #0c1f45;
}

.transaction-history table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.transaction-history th,
.transaction-history td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

.transaction-history th {
  background: #0c1f45;
  color: #fff;
  font-weight: 600;
}

.transaction-history tr:hover {
  background-color: #f9f9f9;
}
/* Sidebar */
.sidebar {
  width: 260px;
  background-color: #0c1f45;
  color: white;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 15px; /* match dashboard padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar .logo {
  text-align: center;
  margin-bottom: 40px;
}

.sidebar .logo img {
  width: 110px;
  margin-bottom: 10px;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar ul li {
  margin-bottom: 20px;
}

.sidebar ul li a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.sidebar ul li a:hover {
  background-color: #00bcd4;
  color: white;
}

.sidebar ul li.active a {
  background-color: #00bcd4;
  color: white;
  font-weight: 600;
}

/* Main Dashboard */
.main {
  margin-left: 260px;
  padding: 50px;
}

.main h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.main p {
  font-size: 16px;
  color: #444;
  margin-bottom: 30px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
}
/* Fade-in Animation */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Choose Role Page */
.choose-role-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #0c1f45;
  color: white;
  text-align: center;
  padding: 20px;
}

.choose-role-container h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.choose-role-container p {
  color: #ccc;
  margin-bottom: 40px;
  font-size: 16px;
}

.choose-role-container .role-buttons {
  display: flex;
  gap: 40px;
}

.choose-role-container .role-buttons button {
  padding: 15px 40px;
  font-size: 18px;
  background-color: white;
  color: #0c1f45;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.choose-role-container .role-buttons button:hover {
  background-color: #00bcd4;
  color: white;
}

.choose-role-container .logo {
  margin-bottom: 30px;
}

.choose-role-container .logo img {
  width: 110px;
}

.choose-role-container .credit {
  margin-top: 40px;
  font-size: 12px;
  color: #888;
}
/* Fade In */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Out */
.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}
/* Make cards clickable */
.clickable-card {
  cursor: pointer;
  transition: 0.3s;
}

.clickable-card:hover {
  background-color: #f0f4f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.product-choice-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.product-box {
  background-color: white;
  width: 300px;
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  padding: 20px;
}

.product-box:hover {
  background-color: #00bcd4;
  color: white;
  transform: scale(1.03);
}
.back-button {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #0c1f45;
  background-color: #e0e7ff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}

.back-button:hover {
  background-color: #00bcd4;
  color: white;
}
/* Form Styling */
.product-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-form .form-group {
  margin-bottom: 20px;
}

.product-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #0c1f45;
}

.product-form input[type="text"],
.product-form input[type="number"],
.product-form input[type="url"],
.product-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s ease;
}

.product-form input[type="text"]:focus,
.product-form input[type="number"]:focus,
.product-form input[type="url"]:focus {
  border-color: #00bcd4;
  outline: none;
}

.product-form .image-upload img {
  margin-top: 10px;
  max-width: 150px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 4px;
}

/* Submit Button */
.submit-btn {
  background-color: #0c1f45;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #00bcd4;
}
