:root {
  --menu-white: #f1f4f5;
  --background-blue: #cde1f2;
  --accent-blue: #adc5d8;
  --accent-green: rgb(13, 173, 106);
  --ink: #1a1f25;
  --glass: rgba(255, 255, 255, 0.35);
  --glass-hover: rgba(90, 124, 226, 0.12);
  --font-family:
    Roboto, Roboto, Calibri, "Trebuchet MS", sans-serif;
  --font-weight: 400;
  --font-style: normal;
  --bg-info: rgba(14, 51, 69, 0.95);
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(6, 121, 187, 0.483);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 144, 223, 0.5);
}

/* BASE */
body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  font-style: var(--font-style);
  background: var(--background-blue);
  color: var(--ink);
  transition: margin-left 0.3s ease;
}

.hidden {
  display: none !important;
}

/* HEADER (TOP, ABOVE EVERYTHING) */
.header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 500;
  max-width: 1200px;
  height: 40px;
  padding: 16px 20px;
  margin: auto;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LEFT CONTROLS (AUTO‑CLOSE + MENU BUTTON) */
.header-left {
  position: absolute;
  left: 20px;
  display: flex;
  gap: 10px;
}

/* RIGHT USER INFO */
.header-right {
  position: absolute;
  right: 20px;
  font-size: 14px;
}

.info {
  position: relative;
  max-width: 1200px;
  height: 25px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(var(--bg-info), rgba(7, 59, 92, 0.8));
  border: none;
  border-bottom: 1px solid rgba(12, 143, 183, 0.994);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  z-index: 300;
}

.info .info-text {
  font-family: Roboto, Calibri, "Trebuchet MS", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 26px;
  color: whitesmoke;
}

.header-btn {
  /*background: var(--accent-blue);*/
  background: #dce4ec;
  color: #0b4867;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid #2290d5;
  transition: all 0.2s ease;
}

.header-btn:hover {
  color: #dce4ec;
  background: #0b4867;
}

/* CENTERED DATE/TIME */
.datetime {
  font-size: 16px;
  font-weight: 400;
  margin: 5px 10px 0 10px;
  /*color: var(--accent-blue);*/
  color: rgb(3, 34, 43);
  text-align: center;
}

.role-badge {
  padding: 4px 10px;
  background: var(--accent-blue);
  color: #ffffff;
  border-radius: 6px;
  margin-left: 8px;
  font-weight: 600;
}

/* SIDEBAR (LEFT, ORIGINAL LAYOUT) */
.menu-separator-label {
  font-family: var(--font-family);
  margin: 18px 0 10px;
  padding-right: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: right;
  color: rgba(8, 91, 135, 0.787);
  letter-spacing: 0.1px;
  border-bottom: 1px solid rgba(11, 94, 132, 0.364);
  padding-bottom: 4px;
}

/* Ticket Section */
.ticket-station .icon::before {
  content: "\f145";
} /* ticket */
.ticket-management .icon::before {
  content: "\f466";
} /* receipt */

/* Florida Section */
.draw-result-entry .icon::before {
  content: "\f201";
} /* chart */
.payout-history .icon::before {
  content: "\f1da";
} /* history */

/* Admin Tools */
.owner-dashboard .icon::before {
  content: "\f508";
} /* user crown */
.admin-dashboard .icon::before {
  content: "\f509";
} /* user gear */
.edit-profile .icon::before {
  content: "\f044";
} /* edit pencil */
.manage-sales-limit .icon::before {
  content: "\f62e";
} /* gauge */
.payout-settings .icon::before {
  content: "\f51e";
} /* sliders */
.salary-report .icon::before {
  content: "\f247";
} /* sliders */
.balance-report .icon::before {
  content: "\f24e";
} /* sliders */
.payout-settings-list .icon::before {
  content: "\f03a";
} /* list */
.financial-report .icon::before {
  content: "\f1fe";
} /* chart-line */

/* System Tools */
.tirage-management .icon::before {
  content: "\f0c3";
} /* flask */
.tkt-header-footer .icon::before {
  content: "\f031";
} /* text */
.messages .icon::before {
  content: "\f003";
} /* text */
.ticket-cleanup .icon::before {
  content: "\f12d";
} /* broom */

/* Logout */
.log_out .icon::before {
  content: "\f2f5";
} /* arrow-right-from-bracket */

/* Base icon styling */
.menu-item .icon::before,
.log_out .icon::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  display: inline-block;
  width: 18px;
  text-align: center;
}

.menu-item {
  font-size: 14px !important;
  font-weight: 600 !important;
  /*text-transform: uppercase;*/
  color: rgba(8, 91, 135, 0.787);
  /*letter-spacing: 1px;*/
}

.log_out .icon::before {
  color: whitesmoke;
}

.log_out:hover .icon::before {
  color: #3199fe;
}

/* Logout icon */
.log_out .icon::before {
  content: "\f2f5"; /* arrow-right-from-bracket */
}

.sidebar {
  float: left;
  position: absolute;
  top: 0;
  max-height: 100%; /* ignored, but not needed */
  /* header height */
  left: 3px;
  width: 240px;
  background: var(--menu-white);
  backdrop-filter: blur(14px) saturate(180%);
  border-right: 1px solid rgba(13, 143, 203, 0.95);
  border-top: 1px solid rgba(13, 143, 203, 0.95);
  border-radius: 7px;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.441);
  padding: 0 0 5px 0;
  margin: 10px 3px;
  opacity: 0.85;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 200;
}

/* SLIDE OUT WHEN CLOSED */
body.sidebar-closed .sidebar {
  transform: translateX(-260px);
}

/* MENU TITLE */
.sidebar h2 {
  text-align: center;
  margin: 0 0 30px;
  font-size: 22px;
  color: var(--accent-blue);
  font-weight: 700;
}

/* MENU LINKS */
.sidebar a {
  font-family: Roboto, Roboto, Calibri, "Trebuchet MS", sans-serif !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1px 7px !important;
  text-decoration: none;
  font-size: 13px !important;
  border-left: 4px solid var(--accent-blue) !important;
  font-weight: 600 !important;
  color: #054f74;
  margin: 7px 10px 0px 10px;
  background: #c9dee8;
  border-radius: 5px;
  border: none;
  border-bottom: 2px solid rgb(28, 124, 153);
  transition: all 0.25s ease-in-out;
}

.sidebar a:hover {
  background: var(--glass-hover);
  border-left: 4px solid #04b052 !important;
}

.sidebar .log_out {
  display: flex;
  max-width: 100px;
  color: rgb(255, 255, 255);
  background: rgb(11, 123, 198);
  justify-content: center;
  align-items: center;
  margin: 15px auto;
  border-left: 2px solid rgb(147, 9, 32) !important;
  border-bottom: 2px solid rgb(5, 44, 56);
  transition: all 0.25s ease-in-out;
}

.sidebar .log_out:hover {
  color: rgb(5, 29, 50);
  background: #cbe0e9;
  border-left: 2px solid var(--accent-blue) !important;
}

.log_out i {
  color: whitesmoke;
}

.sidebar .log_out:hover i {
  color: rgb(5, 29, 50);
}
.icon {
  font-size: 18px;
  color: var(--accent-blue);
}

/* CONTENT AREA (EXPANDS WHEN MENU CLOSED) */
.main-container {
  background: linear-gradient(
    to bottom,
    rgba(13, 142, 202, 0.079),
    rgba(71, 181, 221, 0.029)
  );
  position: relative;
  max-width: 1200px;
  overflow-y: hidden;
  min-height: 700px;
  margin: 3px auto 10px auto;
  padding: 0 5px 0 5px;
  border-radius: 5px;
  box-sizing: border-box;
  box-shadow: 0 3px 5px rgba(3, 40, 62, 0.8);
}

.sub-container {
   background: linear-gradient(
    to bottom,
    rgba(13, 142, 202, 0.079),
    rgba(71, 181, 221, 0.029)
  );
  position: relative;
  max-width: 1200px;
  overflow-y: hidden;
  min-height: 700px;
  margin: 3px auto 10px auto;
  padding: 10px 15px;
  border-radius: 5px;
  box-sizing: border-box;
  box-shadow: 0 3px 5px rgba(7, 83, 128, 0.419);
}

.content {
  position: relative;
  top: 0;
  padding: 0;
  /* header space */
  margin-left: 260px;
  background: transparent;
  transition: margin-left 0.3s ease;
  z-index: 100;
}

.content .table_admin {
  font-family: Roboto, Calibri, "Trebuchet MS", sans-serif;
  margin: 0 auto;
  text-align: center;
}

.content .table_admin th,
td,
a {
  font-size: 13px;
  margin: 5px auto;
}

.content .table_admin tr:nth-child(odd) td {
  padding: 0;
  background: #f5f7ff;
}

.content .table_admin tr:nth-child(even) td {
  padding: 0;
  background: rgba(14, 120, 169, 0.1);
}

body.sidebar-closed .content {
  margin-left: 0;
}

/* GLASS CARDS */

.card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid rgb(34, 139, 195);
  outline: none;
  border-top: 7px solid rgb(34, 139, 195);
  box-shadow: 1px 5px 5px rgba(2, 30, 41, 0.5);
}

.card .l_card {
  margin: 0;
  padding: 2px 10px 2px 5px;
  background: #d3dee6;
  border-bottom: 1px solid rgb(4, 176, 82);
  border-left: 5px solid rgb(4, 176, 82);
  border-radius: 5px;
  text-align: left;
}

.card .p_ticket {
  font-size: 14px;
  color: rgb(15, 64, 104);
  text-transform: uppercase;
  padding: 0;
}

.l_card i {
  margin: 0 7px;
}

.card h3 {
  font-size: 18xp;
  margin-bottom: 0 5px;
}
.card p {
  font-size: 16px;
  margin: 0 5px;
}

/* FOOTER */
.footer {
  position: static;
  z-index: 200;
  bottom: 0;
  left: 0;
  font-family: var(--font-family);
  font-size: 12px;
  line-height: 16px;
  color: rgb(37, 111, 150);
  /*background: var(--bg-info);*/
  text-align: center;
  margin: 15px auto 10px auto;
  width: 100%;
  box-sizing: border-box;
  /*border-top: 2px solid rgb(12, 143, 183);*/
  clear: both !important;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both !important;
}

.info i {
  color: rgb(247, 247, 247);
  font-size: 16px;
}

.info .page_title {
  color: rgb(10, 171, 235);
  font-size: 14px;
  font-weight: 500;
  margin-right: 40px;
}

.info .support {
  color: rgb(137, 200, 75);
  font-size: 14px;
  font-weight: 400;
  margin-left: 50px;
}

.logout a {
  font-weight: 400;
  background: transparent;
  color: rgb(10, 171, 235);
  text-decoration: none;
  border: none;
  margin-left: 15px;
  transition: all 0.2s ease-in-out;
}

.logout a:hover {
  color: rgb(214, 180, 11);
}

.m_table tr {
  margin: 1px 2px;
}

.m_table td {
  text-align: center;
  border-right: 0.5px solid rgb(159, 214, 236);
}

.content .left {
  width: calc(65% - 60px);
  float: left;
  clear: left;
}

.content .right {
  width: 35%;
  min-height: 600px;
  float: right;
  clear: right;
}

.content .right table {
  width: auto;
  margin: 0px auto;
}

.content .right table td {
  font-size: 16px;
}

.edit {
  color: rgb(4, 39, 16);
  background: #10a854;
  border: none;
  border-bottom: 2px solid #03371a;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
}

.edit i {
  color: whitesmoke;
}

.edit:hover {
  color: #f3fff9;
  background: #077137;
}

.delete {
  color: rgb(34, 2, 2);
  background: #c4201b;
  border: none;
  border-bottom: 2px solid #3c0703;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
}

.delete i {
  color: whitesmoke;
}

.delete:hover {
  color: #fff4f4;
  background: #8a1414;
}

/* SIMPLE RESPONSIVE TWEAKS */
@media (max-width: 950px) {
  .content .left {
    width: calc(65% - 15px);
    margin: 15px auto;
    box-sizing: border-box;
    /*float: none;*/
  }

  .content .right {
    width: 35%;
    margin: 15px auto;
    /*float: none;*/
    box-sizing: border-box;
  }
  .logout {
    display: none;
  }
}

@media (max-width: 830px) {
  .logout {
    display: none;
  }

  .content .left {
    width: 100%;
    margin: 15px auto;
    float: none;
    box-sizing: border-box;
  }

  .content .right {
    width: 100%;
    margin: 15px auto;
    float: none;
    box-sizing: border-box;
  }

  .content .m_table {
    display: none;
  }
  .content .h_table {
    display: none;
  }

  .content .table_admin th,
  td,
  a {
    font-size: 11px;
    margin: 5px auto;
  }

  .info .support,
  .logout {
    display: none;
  }
}

/* SIMPLE RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .sidebar a {
    padding: 5px auto;
  }

  .sidebar {
    width: 230px;
    /*height: calc(100vh - 60px);*/
    height: auto;
    border-top-right-radius: 10px;
    backdrop-filter: blur(14px) saturate(180%);
    opacity: 0.98;
  }

  .content {
    padding: 15px 5px;
    margin-left: 0;
  }

  .card {
    padding: 10px;
  }

  .auto-close-btn {
    display: none;
  }

  #autoCloseBtn {
    display: none;
  }

  .datetime {
    display: none;
  }

  .menu-btn {
    left: 20px;
  }
}

@media (max-width: 530px) {
  .role1-badge {
    display: none;
  }
}


.sidebar a .icon {
    width: 24px;
    margin-right: 5px;
    text-align: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 300;
    padding: 1px 3px;
}