/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body styling */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #fff;
}

/* Login Container */
.login-container {
  background-color: #ffffff;
  color: #0d47a1;
  width: 90%;
  max-width: 400px;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

/* Heading */
.login-container h2 {
  margin-bottom: 25px;
  font-size: 26px;
  color: #0d47a1;
}

/* Input fields */
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 1.5px solid #1976d2;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 8px rgba(13, 71, 161, 0.4);
}

/* Button */
button {
  width: 100%;
  background-color: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

button:hover {
  background-color: #0d47a1;
  transform: scale(1.03);
}

/* Link section */
p {
  margin-top: 18px;
  color: #0d47a1;
  font-size: 14px;
}

p a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

p a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🌐 Global Theme for Uni.Trade */
:root {
  --primary-color: #004aad;
  --secondary-color: #007bff;
  --accent-color: #e3f2fd;
  --text-color: #333;
  --background-color: #fff;
  --radius: 12px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Apply to all pages */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: var(--background-color);
  margin: 0;
  padding: 0;
  animation: fadeIn 0.6s ease-in-out;
}

/* Smooth fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Links & buttons */
a, button {
  transition: all 0.3s ease;
}

a:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Consistent card style */
.store-card, .product-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover, .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ================================
   GLOBAL MOBILE RESPONSIVENESS
   ================================ */

/* Prevent overflow issues */
* {
  box-sizing: border-box;
}

/* Images should never overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {

  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  /* Main containers */
  .container,
  .panel,
  .confirm-container,
  .confirmation-container,
  .order-summary,
  .confirmation-box {
    width: 100%;
    padding: 1rem;
    margin: 0;
  }

  /* Navigation bars */
  .navbar,
  header nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Buttons */
  button,
  .btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  /* Inputs */
  input,
  select,
  textarea {
    width: 100%;
    font-size: 14px;
  }

  /* Tables (Admin dashboard) */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    font-size: 13px;
    padding: 8px;
  }

  /* Cards / rows */
  .order-card,
  .product-card,
  .store-card {
    width: 100%;
    margin-bottom: 12px;
  }

}