/* style.css */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'),
    url('../fonts/Inter-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2'),
    url('../fonts/Inter-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #052423;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
}

/* Logo */
.logo {
  text-align: center;
  margin: 30px 0 20px;
}

.logo img {
  width: 100%;
  max-width: 358px;
  height: 56px;
}

/* Login Card */
.login-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 1px;
  overflow: hidden;
  padding: 32px 16px 24px 16px;
}

.login-card {
  background: #fff;
  color: #000;
  padding: 20px;
  padding-top: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  border-radius: 15px 15px 0 0;
  box-shadow: none;
}

.login-card h2 {
  margin-bottom: 40px;
  font-size: 24px;
}

.login-card label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-card input {
  width: 100%;
  height: 54px;
  padding: 10px;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid #E1E4F2;
  font-size: 16px;
}

.login-card button {
  width: 50%;
  padding: 16px;
  background: #00BCB6;
  border: none;
  border-radius: 24px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  font-weight: medium;
}

.login-card button:hover {
  background: #009e8f;
}

.card-image-container {
  width: 100%;
  border-radius: 0 0 15px 15px;
  overflow: hidden;
  margin-top: 0;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
footer {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 500;
  padding: 32px 16px;
  width: 100%;
  box-sizing: border-box;
  background-color: #052423;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

/* Copyright text floats left */
footer p:first-child {
  text-align: left;
  display: block;
}

footer p {
  line-height: 1.4;
}

/* Powered by text floats right */
footer p:last-child {
  text-align: left;
  display: block;
}

/* --- Global Styles & Layout --- */
:root {
  --primary-green: #00c4b3;
  --dark-green-bg: #112128;
  --text-color: #ffffff;
  --card-hover-bg: #2b4550;
  --card-gradient-start: #0AA6A1;
  --card-gradient-end: #14EDE6;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* --- Header Styling: Solid Background --- */
header {
  width: 100%;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  color: white;
  position: relative;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-image: url('/media/Mask\ group.png');
  background-color: var(--primary-green);
  background-size: cover;
  background-position: center;
  border: 2px solid white;
  margin-right: 10px;
}

.user-id {
  display: flex;
  flex-direction: row;
  font-size: 16px;
  line-height: 1;
  gap: 6px;
}

.user-label {
  font-weight: 500;
  color: #ffffff;
}

.user-value {
  font-weight: medium;
  font-size: 16px;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 5px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.icon-button:hover {
  opacity: 1;
}

/* --- Main Content & Grid --- */
.main-content {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  padding: 24px 16px 24px 16px;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/media/dinner.png');
  background-size: 116% 120%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 40%;
  z-index: -2;
}

.content-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 20px;
}

.tile-card {
  border: none;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(113.84deg, rgba(10, 166, 161, 0.3) 0%, rgba(20, 237, 230, 0.3) 100%);
  border-radius: 8px;
  padding: 15px;
  height: 115px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s, transform 0.1s;
  gap: 12px;
  text-decoration: none; 
  color: inherit;
}

.tile-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.card-description {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
}

.menu-content {
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: #052423;
  color: white;
  display: flex;
  justify-content: center;
  padding: 24px 16px 0px 16px;
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.menu-item a{
  width: 100%;
  max-width: 358px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 1;
  transition: background-color 0.2s;
  list-style: none;
  color: #FFFFFF;
  text-decoration: none;
}

.menu-item a:hover {
  color: #00BCB6;
}

.menu-icon {
  width: 20px;
  height: 20px;
}

.logout-button {
  background: #FFFFFF1A;
  color: white;
  border: none;
  padding: 18px 24px 18px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.logout-button:hover {
  background: #009e8f;
}

.spacer {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #707070;
  padding-top: 12px;
  gap: 4px;
}

.logo-menu {
  text-align: center;
  gap: 12px;
}

.logo-menu img {
  width: 100%;
  max-width: 358px;
  height: auto;
}

/* --- Responsive Media Queries --- */
@media (min-width: 768px) {
  header {
    padding: 0 32px;
  }

  .content-wrapper {
    padding: 0 30px;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-content {
    max-width: 600px;
  }
}

.QR-profile-container {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  padding: 24px 16px 24px 16px;
  gap: 24px;
}

.QR-profile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/media/dinner.png');
  background-size: 116% 120%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 40%;
  z-index: -2;
}

.QR-profile-content {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  z-index: 1;
}

@media (min-width: 700px) {
  .QR-profile-content {
    margin-left: 0;
    margin-right: auto;
  }
}

.ticket-image-container {
  width: 342px;
  height: 500px;
  background-image: url('/media/qr-ticket.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: relative;
}

.ticket-top {
  position: relative;
  padding-bottom: 50px;
}

.ticket-top,
.ticket-bottom {
  padding: 34px 50px;
  text-align: center;
}

.ticket-bottom {
  padding-top: 40px;
}

.user-name {
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #000;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: calc();
  -webkit-line-clamp: 1;
  white-space: normal;
} 

.user-company {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: #000;
  text-align: center;
  margin-bottom: 20px;
}

.hide {
  display: none !important;
}

.whitebg {
  background-image: url(https://www.dynatraceinnovateroadshowthailand-eventapp.com/wp-content/uploads/2025/08/white-e1754276377570.jpg);
  background: #FFFFFF;
  padding: 15px;
  border-radius: 20px;
}

#qrCode {
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  width: 100%;
}

.fakeQr {
  position: relative;
  text-align: center;
}

.show {
  display: block;
}

.centeredText {
  color: #000000;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.QR-profile-title {
  font-size: 24px;
  font-style: bold;
  margin-bottom: 24px;
}

.QR-profile-content img {
  opacity: 1;
  border-radius: 2.31px;
  object-fit: contain;
  max-width: 100%;
  width: 358px;
  display: block;
}

.check-in-status.initial-status,
.redeem-status.initial-status {
  /* Use a light gray color */
  color: #a0a0a0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 5px;
}

/* Style applied after scanning (Checked-In) */
.check-in-status.checked,
.redeem-status.checked {
  /* Use a black color */
  color: #000000;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 5px;
}

.agenda-container {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  padding: 24px 16px 24px 16px;
  gap: 24px;
}

.agenda-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/media/dinner.png');
  background-size: 116% 120%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 60%;
  z-index: -2;
}

.agenda-title {
  font-size: 24px;
  font-style: bold;
  margin-bottom: 24px;
}

.agenda-content {
  max-width: 100%;
  width: 100%;
  padding: 0 15px;
  position: relative;
  z-index: 1;
  gap: 24px;
  background-color: #F3F4F6;
  padding: 24px;
  border-radius: 16px;
  border: #E1E4F2 solid 1px;
  color: #000000;
}

@media (min-width: 600px) {
  .agenda-content {
    max-width: 480px;
  }
}

.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.agenda-time {
  font-size: 16px;
  font-weight: 500;
  font-style: medium;
  color: #000000;
  width: 88px;
  line-height: 1.4;
  flex-shrink: 0;
}

.agenda-desc {
  font-size: 16px;
  font-weight: 500;
  font-style: medium;
  color: #000000;
  line-height: 1.4;
  flex-grow: 1;
  width: 214px;
}

.table-container {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  gap: 24px;
  padding: 24px 16px 24px 16px;
}

.table-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/media/dinner.png');
  background-size: 116% 120%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 40%;
  z-index: -2;
  padding: 24px 16px 24px 16px;
}

.table-title {
  font-size: 24px;
  font-style: bold;
  margin-bottom: 24px;
}

.table-number-container {
  max-width: 358px;
  width: 100%;
  display: flex;
  padding: 24px 16px 24px 16px;
  background: linear-gradient(113.84deg, rgba(10, 166, 161, 0.3) 0%, rgba(20, 237, 230, 0.3) 100%);
  border-radius: 8px;
  box-sizing: border-box;
  align-items: center;
  gap: 115px;
}

.table-desc {
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 100%;
  width: 159px;
}

.table-number {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  width: 29px;
  height: 29px;
}

.table-content {
  max-width: 358px;
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  position: relative;
  gap: 24px;
}

.table-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.lucky-draw-container {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  padding: 24px 16px 24px 16px;
  gap: 24px;
}

.lucky-draw-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/media/dinner.png');
  background-size: 120% 120%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 60%;
  z-index: -2;
}

.lucky-draw-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0%;
  color: #FFFFFF;
}

.lucky-draw-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #FFFFFF;
}

.lucky-draw-content {
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.lucky-draw-content-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.prize-heading {
  font-size: 18px;
  font-weight: 600;
  font-style: semi-bold;
  line-height: 100%;
  color: #FFFFFF;
  text-align: center;
}

.prize-section {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(113.84deg, rgba(10, 166, 161, 0.7) 0%, rgba(20, 237, 230, 0.7) 100%);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .lucky-draw-content-grid {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .prize-section {
    max-width: 340px;
    margin-bottom: 24px;
    flex: 0 0 auto;
  }

  .prize-heading {
    display: none;
  }
}

.prize-section img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.prize-category {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  line-height: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  gap: 16px;
}

.prize-item {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 24px;
  margin: 0;
}

.feedback-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: 40px 16px 20px 16px;
  gap: 24px;
  min-height: auto;
  margin-bottom: 0;
}

.feedback-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/media/dinner.png');
  background-size: 116% 115%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 40%;
  z-index: -2;
}

@media (max-width: 700px) {
  .feedback-container::before, .agenda-container::before, .table-container::before, .lucky-draw-container::before, .QR-profile-container::before, .main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/media/dinner.png');
    background-size: 116% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 40%;
    z-index: -2;
  }
}

.feedback-title {
  font-size: 24px;
  font-weight: 700;
  font-style: bold;
  line-height: 100%;
  color: #FFFFFF;
}

.feedback-container p {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #FFFFFF;
  margin-bottom: 24px;  
}

.feedback-content {
  max-width: 500px;
  width: 100%;
  min-height: 400px;
  margin: auto 0;
  position: relative;
  z-index: 1;
  gap: 40px;
  background: linear-gradient(113.84deg, rgba(10, 166, 161, 0.3) 0%, rgba(20, 237, 230, 0.3) 100%);
  border-radius: 24px;
  padding: 40px 24px 40px 24px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-form label {
  width: 310px;
  height: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  gap: 18px;
}

.feedback-form h2 {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  margin-top: 32px;
  line-height: 1.4;
}

.feedback-form input {
  width: auto;
  height: 40px;
  padding: 24px;
  border-radius: 6px;
  border: 1px solid #FFFFFF;
  font-size: 16px;
  gap: 8px;
  background-color: #1515153D;
  color: #FFFFFF;
}

.feedback-form textarea {
  width: auto;
  height: 176px;
  padding: 12px 16px 12px 16px;
  border-radius: 6px;
  border: 1px solid #FFFFFF;
  font-size: 16px;
  gap: 10px;
  background-color: #1515153D;
  color: #FFFFFF;
  resize: vertical;
}

.feedback-form button {
  width: auto;
  height: 54px;
  padding: 12px 18px 12px 18px;
  background: #00BCB6;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  font-weight: medium;
}

.feedback-form label[for="final question"] {
  margin-top: 24px;
}

/* --- Feedback Rating Section (Fixed Layout) --- */
.feedback-rating {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 600px;
  height: auto;
}

.rating-question {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}

.rating-card {
  background: #1515153D;
  border: 1px solid #ffffff;
  border-radius: 6px;
  padding: 16px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 125px;
  box-sizing: border-box;
}

.rating-card p {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  margin-bottom: 6px;
}

/* Align the options neatly inside the card */
.rating-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Label for each radio option */
.rating-options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

/* Custom radio buttons */
.rating-options input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 10px 10px;
  margin-top: 40px;;
}

.rating-options input[type="radio"]:checked {
  border-color: #00BCB6;
  background-color: #00BCB6;
  box-shadow: inset 0 0 0 2px rgba(21, 21, 21, 0.24);
}

.rating-options input[type="radio"]:hover {
  border-color: #00BCB6;
}

.rating-options span {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.questions h2 {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  margin-top: 32px;
  line-height: 1.4;
}

.questions ul {
  margin: 0;
  padding-left: 20px;
}

.questions li {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  padding: 2px 0;
  line-height: 1.4;
}

.two-options {
  display: flex;
  flex-direction: column;
}

.two-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.two-options input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  background-color: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 8px 8px;
}

.two-options input[type="radio"]:checked {
  border-color: #00BCB6;
  background-color: #00BCB6;
  box-shadow: inset 0 0 0 2px rgba(21, 21, 21, 0.24);
}

.two-options input[type="radio"]:hover {
  border-color: #00BCB6;
}

/* Responsive */
@media (min-width: 600px) {
  .feedback-rating {
    max-width: 100%;
  }

  .rating-card {
    max-width: 500px;
  }
}

/* --- Sticky Sidebar Styles --- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background-color: #052423;
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateX(0);
  transition: transform 0.3s ease;
  border-right: 1px solid #707070;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 16px;
  gap: 24px;
}

/* Logo in Sidebar */
.sidebar .logo-menu {
  text-align: center;
  padding-bottom: 16px;
  padding-top: 16px;
  border-bottom: 1px solid #707070;
  height: 92px;
}

.sidebar .logo-menu img {
  max-width: 500px;
  height: auto;
}

/* Sidebar Menu */
.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  padding: 0;
  margin: 0;
}

.sidebar-menu .menu-item {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FFFFFF;
  text-decoration: none;
  list-style: none;
}

.sidebar-menu .menu-item:hover {
  background: rgba(0, 188, 182, 0.2);
  color: #00BCB6;
}

.sidebar-menu .menu-item.active a {
  background: rgba(0, 188, 182, 0.3);
  color: #00BCB6;
}

.sidebar-menu .menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-menu .menu-item span {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* Logout Button in Sidebar */
.sidebar .logout-button {
  background: #FFFFFF1A;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: auto;
  transition: background-color 0.2s;
}

.sidebar .logout-button:hover {
  background: #009e8f;
}

/* Main Content Area with Sidebar */
.main-content-with-sidebar {
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #052423;
}

/* Header adjustments for sidebar layout */
.main-content-with-sidebar header {
  width: calc(100% - 280px);
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  background-color: #052423;
}

/* Content area adjustments */
#content-area {
  flex-grow: 1;
  margin-top: 116px;
  padding: 24px 16px;
}

/* Mobile Responsive */
@media (max-width: 1000px) {
  .sidebar {
    transform: translateX(-100%);
    width: 300px;
    transition: transform 0.3s ease;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  .main-content-with-sidebar {
    margin-left: 0;
    width: 100%;
  }

  .main-content-with-sidebar header {
    width: 100%;
  }

  .main-content-with-sidebar::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .sidebar-open+.main-content-with-sidebar::after {
    opacity: 1;
    visibility: visible;
  }
}

/* Show menu toggle by default (mobile & tablet) */
#menuToggle {
  display: block;
}

/* Hide the menu toggle button on desktop */
@media (min-width: 1000px) {
  #menuToggle {
    display: none;
  }

}

/* Adjust the app container for sidebar layout */
.app-container {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Desktop adjustments */
@media (min-width: 1000px) {

  /* Header border for desktop */
  header {
    border-bottom: 1px solid #707070;
    padding: 0 32px;
  }

  /* Footer adjustments for desktop */
  footer {
    border-top: 1px solid #707070;
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
  }

  footer p {
    text-align: left;
    margin: 0;
    float: none;
    padding: 0 32px;
  }

  footer p:last-child {
    text-align: right;
    margin: 0;
    float: none;
  }

  /* Ensure main content fills available space */
  .main-content {
    padding: 24px 32px;
    min-height: calc(100vh - 116px - 120px);
  }

  /* Content grid adjustments for desktop */
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .tile-card {
    height: 140px;
    padding: 20px;
  }
}

/* Mobile responsive for sidebar layout */
@media (max-width: 1000px) {
  .app-container {
    margin-left: 0;
    width: 100%;
  }
}

/* Desktop borders */
@media (min-width: 1000px) {
  header {
    border-bottom: 1px solid #707070;
  }

  footer {
    border-top: 1px solid #707070;
    padding: 32px;
  }
}