body {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* stack card + footer */
  justify-content: center; /* center card vertically */
  align-items: center;     /* center card horizontally */
  background: #f4efe6;
  background-image: radial-gradient(#e8dfd2 1px, transparent 1px);
  background-size: 40px 40px;
}

html, body {
  height: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1; /* pushes footer downward */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.card {
  width: 450px;
  background: #f7f3ea;
  border: 4px solid #2c2c2c;
  border-radius: 25px;
  padding: 30px 40px 45px; /* 👈 more horizontal breathing space control */
  text-align: center;
  box-shadow: 0 5px 0 #2c2c2c;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* 👈 important change */
}

/* Logo becomes part of layout */
.logo {
  margin-top: -250px;
  margin-bottom: -80px;
  display: flex;
  justify-content: center;
}

.logo img {
  width: min(1000px, 200%);  /* 👈 grows bigger but stays controlled */
  max-width: none;
  height: auto;
  display: block;
}

/* Title & Subtitle */
.title {
  font-weight: bold;
  font-size: 20px;
  margin-top: 5px;
}
.subtitle {
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 1px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Form */
.form-group {
  text-align: left;
  margin-bottom: 15px;
}
.form-group label {
  font-weight: bold;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  border: 2px solid #ddd;
  outline: none;
  font-size: 14px;
  background: #eee;
}
.form-group input:focus {
  border-color: #f05a28;
  background: #fff;
}

/* Button */
.btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  border: 3px solid #2c2c2c;
  background: #f05a28;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 0 #2c2c2c;
}
.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2c2c2c;
}
/* Sticky footer */
.footer {
  margin-top: auto;
  padding: 25px 20px;
}

.footer-content p {
  margin: 3px 0;
}

.footer a {
  color: #ff6a00;
  text-decoration: none;
  transition: 0.2s;
}

.footer a:hover {
  text-decoration: underline;
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */

/* Tablet (768px - 1000px) */
@media (max-width: 1000px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 2px solid #ddd;
    gap: 10px;
  }

  .logo img {
    max-width: 120px;
  }

  .profile {
    margin-bottom: 0;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: unset;
  }

  .nav a {
    margin-bottom: 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  .logout {
    margin-left: auto;
  }

  .cards {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
  }

  .table-section {
    overflow-x: auto;
  }

  .workshop-table {
    min-width: 700px; /* force horizontal scroll on narrow screens */
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .sidebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .nav {
    flex-direction: column;
    width: 100%;
  }

  .nav a {
    width: 100%;
  }

  .logout {
    width: 100%;
    margin-left: 0;
  }

  .main {
    padding: 15px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar .right {
    width: 100%;
    justify-content: flex-end;
  }

  .card {
    padding: 15px;
  }

  .card .value {
    font-size: 20px;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .form-actions button,
  .form-actions .btn-primary,
  .form-actions .btn-outline {
    width: 100%;
  }

  #overlayContent {
    padding: 20px;
    max-width: 95%;
  }

  .steps {
    gap: 8px;
  }

  .step {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .main {
    padding: 12px;
  }

  .profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .avatar {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .card h4 {
    font-size: 11px;
  }

  .card .value {
    font-size: 18px;
  }

  .table-header {
    flex-direction: column;
    gap: 10px;
  }

  .workshop-table th,
  .workshop-table td {
    font-size: 11px;
    padding: 8px 6px;
  }

  .btn-primary,
  .btn-outline,
  .view-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  #overlayContent th,
  #overlayContent td {
    display: block;
    width: 100%;
  }

  #overlayContent th {
    background: #ff6a00;
    color: #fff;
    border-radius: 6px 6px 0 0;
    margin-top: 10px;
  }

  #overlayContent td {
    border-radius: 0 0 6px 6px;
    background: #f9f9f9;
  }
}


