*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  background:#10182c;
  color:#f3f5fa;
  font-family:Arial,Helvetica,sans-serif;
}

/* =========================
   TOP
========================= */

.top{
  width:100%;
  max-width:980px;
  margin:auto;
  padding:22px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #263552;
}

.top h1{
  margin:0;
  color:#f7b51d;
  letter-spacing:3px;
  font-size:28px;
}

.top p{
  margin:5px 0 0;
  color:#b8c1d4;
}

.admin-link{
  color:#fff;
  text-decoration:none;
  border:1px solid #f7b51d;
  padding:9px 14px;
  border-radius:9px;
}

/* =========================
   MAIN
========================= */

.hero,
main{
  width:100%;
  max-width:980px;
  margin:auto;
}

.hero{
  padding:28px 18px 8px;
}

.hero h2{
  margin:0;
  font-size:26px;
}

.hero p{
  color:#aab5ca;
}

.section{
  width:100%;
  padding:10px 18px 18px;
}

.section-title{
  margin:0 0 12px;
  border-left:5px solid #f7b51d;
  padding:9px 12px;
  background:#18233a;
}

.section-title span{
  font-weight:800;
  letter-spacing:1px;
}

/* =========================
   CARDS
========================= */

.cards{
  display:grid;
  gap:10px;
}

.card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#18253d;
  border:1px solid #2d3b55;
  border-radius:12px;
  padding:15px 17px;
}

.card h3{
  margin:4px 0;
  font-size:18px;
}

.card p{
  margin:0;
  color:#65b9ff;
}

.card strong{
  color:#69db77;
  font-size:19px;
}

.card small{
  color:#f7b51d;
  font-weight:700;
}

/* =========================
   ACTIONS
========================= */

.actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.actions button{
  padding:8px 10px;
  border-radius:7px;
  border:1px solid #344563;
  background:#22304a;
  color:#fff;
}

.actions .danger{
  background:#8f2435;
}

.secondary{
  background:#334563!important;
  color:#fff!important;
}

.empty{
  color:#9aa7bd;
  padding:10px;
}

.admin-card{
  align-items:flex-start;
}

/* =========================
   SECTION HEAD
========================= */

.section-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 18px 0;
}

.section-head .section-title{
  flex:1;
  margin:0;
}

.refresh-btn{
  padding:9px 14px;
  border-radius:9px;
  border:1px solid #f7b51d;
  background:#f7b51d;
  color:#111;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}

.refresh-btn:disabled{
  opacity:.7;
  cursor:wait;
}

/* =========================
   RECORD TOOLS
========================= */

.record-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.record-tools select,
.record-tools button,
.form input,
.form select,
.form button{
  padding:12px;
  border-radius:8px;
  border:1px solid #344563;
  background:#18253d;
  color:#fff;
}

.record-tools button,
.form button{
  background:#f7b51d;
  color:#111;
  font-weight:800;
}

/* =========================
   RECORD TABLE
========================= */

.records{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.records table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  background:#18253d;
}

.records th,
.records td{
  padding:11px;
  border:1px solid #33415b;
  text-align:center;
}

.records th{
  background:#f7b51d;
  color:#111;
}

/* =========================
   NOTES
========================= */

.notes{
  margin:10px 18px 25px;
  padding:18px;
  border:1px solid #357eea;
  border-radius:12px;
  background:#18253d;
}

.notes h2{
  margin-top:0;
  color:#67aaff;
}

.notes li{
  margin:10px 0;
  color:#d9deea;
}

/* =========================
   FORM
========================= */

.form{
  display:grid;
  gap:10px;
}

.form input,
.form select,
.form button{
  width:100%;
  font-size:16px;
}

/* =========================
   FOOTER
========================= */

footer{
  text-align:center;
  color:#8f9ab0;
  padding:25px;
  border-top:1px solid #263552;
}

/* =====================================================
   RESULT SUMMARY — COMPACT MOBILE FIT DESIGN
===================================================== */

#todayYesterdayResults{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;

  margin:16px 0 22px !important;
  padding:10px 6px 12px !important;

  background:#0d172b !important;
  border:2px solid #394d78 !important;
  border-radius:14px !important;

  overflow:hidden !important;
}

/* =========================
   MONTH TITLE
========================= */

#todayYesterdayResults .summary-month{
  margin:2px 0 12px !important;
  padding:3px 0 7px !important;

  text-align:center !important;

  font-size:24px !important;
  font-weight:800 !important;
  line-height:1.2 !important;

  background:linear-gradient(
    90deg,
    #f7a51c,
    #e85d91,
    #9b62e8
  ) !important;

  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
}

/* CROWN */

#todayYesterdayResults .summary-month::before{
  content:"👑" !important;
  display:inline-block !important;
  margin-right:6px !important;
  font-size:22px !important;
  -webkit-text-fill-color:initial !important;
}

/* GOLD LINE */

#todayYesterdayResults .summary-month::after{
  content:"" !important;
  display:block !important;

  width:58% !important;
  max-width:300px !important;

  height:2px !important;
  margin:7px auto 0 !important;

  background:#f5a900 !important;
  border-radius:10px !important;
}

/* =========================
   TABLE OUTER BOX
========================= */

#todayYesterdayResults .summary-table-wrap{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;

  margin:0 !important;
  padding:0 !important;

  background:#111d33 !important;

  border:1px solid #52698f !important;
  border-radius:10px !important;

  overflow:hidden !important;
}

/* =========================
   TABLE
========================= */

#todayYesterdayResults .summary-table{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;

  table-layout:fixed !important;

  border-collapse:collapse !important;
  border-spacing:0 !important;

  margin:0 !important;
  padding:0 !important;
}

/* =========================
   HEADER
========================= */

#todayYesterdayResults .summary-table th{
  height:42px !important;

  padding:3px 1px !important;

  background:#1b3153 !important;
  color:#f4f6fb !important;

  border-right:1px solid #52698f !important;
  border-bottom:1px solid #52698f !important;

  text-align:center !important;

  font-size:11px !important;
  font-weight:800 !important;

  white-space:nowrap !important;
  overflow:hidden !important;

  box-sizing:border-box !important;
}

/* =========================
   DATA CELLS
========================= */

#todayYesterdayResults .summary-table td{
  height:38px !important;

  padding:3px 1px !important;

  background:#0f1b2f !important;
  color:#f3f5fa !important;

  border-right:1px solid #334b70 !important;
  border-bottom:1px solid #334b70 !important;

  text-align:center !important;

  font-size:13px !important;
  font-weight:700 !important;

  white-space:nowrap !important;
  overflow:hidden !important;

  box-sizing:border-box !important;
}

/* =========================
   DATE COLUMN
========================= */

#todayYesterdayResults .summary-table th:first-child,
#todayYesterdayResults .summary-table td:first-child{
  width:20% !important;
}

/* OTHER 7 COLUMNS */

#todayYesterdayResults .summary-table th:not(:first-child),
#todayYesterdayResults .summary-table td:not(:first-child){
  width:11.4285% !important;
}

/* =========================
   DATE NUMBER GREEN
========================= */

#todayYesterdayResults .summary-table td:first-child{
  color:#69e878 !important;
  font-size:14px !important;
  font-weight:800 !important;
}

/* =========================
   PURPLE CALENDAR ICON
========================= */

#todayYesterdayResults .summary-table td:first-child::before{
  content:"📅" !important;

  display:inline-block !important;

  margin-right:4px !important;

  font-size:14px !important;

  vertical-align:-1px !important;

  filter:hue-rotate(245deg) saturate(2) !important;
}

/* =========================
   SM WHITE
========================= */

#todayYesterdayResults .summary-table td:nth-child(2){
  color:#f3f5fa !important;
  font-weight:800 !important;
}

/* =========================
   OTHER RESULTS
========================= */

#todayYesterdayResults .summary-table td:nth-child(n+3){
  color:#f3f5fa !important;
}

/* =========================
   LAST COLUMN
========================= */

#todayYesterdayResults .summary-table th:last-child,
#todayYesterdayResults .summary-table td:last-child{
  border-right:0 !important;
}

/* =========================
   LAST ROW
========================= */

#todayYesterdayResults .summary-table tbody tr:last-child td{
  border-bottom:0 !important;
}

/* =========================
   MOBILE
========================= */

@media(max-width:520px){

  #todayYesterdayResults{
    width:100% !important;
    max-width:100% !important;
    margin:14px 0 20px !important;
    padding:9px 5px 10px !important;
    border-radius:13px !important;
  }

  #todayYesterdayResults .summary-month{
    font-size:22px !important;
    margin-bottom:10px !important;
  }

  #todayYesterdayResults .summary-month::before{
    font-size:21px !important;
    margin-right:5px !important;
  }

  #todayYesterdayResults .summary-table{
    width:100% !important;
    max-width:100% !important;
  }

  #todayYesterdayResults .summary-table th{
    height:40px !important;
    padding:2px 1px !important;
    font-size:10px !important;
  }

  #todayYesterdayResults .summary-table td{
    height:36px !important;
    padding:2px 1px !important;
    font-size:12px !important;
  }

  #todayYesterdayResults .summary-table td:first-child{
    font-size:13px !important;
  }

  #todayYesterdayResults .summary-table td:first-child::before{
    font-size:13px !important;
    margin-right:3px !important;
  }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media(max-width:380px){

  #todayYesterdayResults{
    padding-left:3px !important;
    padding-right:3px !important;
  }

  #todayYesterdayResults .summary-table th{
    font-size:9px !important;
  }

  #todayYesterdayResults .summary-table td{
    font-size:11px !important;
  }

  #todayYesterdayResults .summary-table td:first-child{
    font-size:12px !important;
  }

  #todayYesterdayResults .summary-table td:first-child::before{
    font-size:12px !important;
    margin-right:2px !important;
  }
}

/* =========================
   DESKTOP FORM
========================= */

@media(min-width:700px){

  .form{
    grid-template-columns:1fr 160px 1fr 150px;
  }

  .form button{
    grid-column:1/-1;
  }

}

/* =========================
   SMALL SCREEN SECTION
========================= */

@media(max-width:520px){

  .section-head{
    align-items:stretch;
  }

  .refresh-btn{
    padding:8px 10px;
    font-size:14px;
  }

  .top{
    padding:18px 12px;
  }

  .top h1{
    font-size:23px;
  }

  .admin-link{
    padding:7px 9px;
    font-size:13px;
  }

  .hero{
    padding:20px 12px 6px;
  }

  .section{
    padding-left:12px;
    padding-right:12px;
  }

  }
/* =========================
   ACTIVE USERS BOX
========================= */

.active-users-box{
  display:inline-flex;
  align-items:center;
  gap:7px;

  margin:0 18px 8px;
  padding:6px 10px;

  background:#18253d;
  border:1px solid #2d3b55;
  border-radius:8px;

  color:#69e878;
  font-size:13px;
  font-weight:800;

  box-shadow:none;
}

.active-users-box .active-eye{
  font-size:14px;
  line-height:1;
}

.active-users-box .active-text{
  color:#69e878;
}

.active-users-box .active-number{
  color:#69e878;
  font-weight:900;
}

@media(max-width:520px){
  .active-users-box{
    margin:0 12px 7px;
    padding:5px 9px;
    gap:6px;
    font-size:12px;
    border-radius:7px;
  }

  .active-users-box .active-eye{
    font-size:13px;
  }
}
.quick-tools {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.quick-tools .active-users-box{
  margin-left:auto !important;
  width:auto !important;
  min-width:0 !important;
  height:40px !important;
  padding:0 12px !important;
  gap:5px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  white-space:nowrap !important;
  font-size:11px !important;
  border-radius:7px !important;
}

.quick-tools .active-users-box .active-eye{
  font-size:12px !important;
}

.quick-tools .active-users-box .active-number{
  font-size:12px !important;
}

@media(max-width:520px){
  .quick-tools .active-users-box{
    height:36px !important;
    padding:0 9px !important;
    gap:4px !important;
    font-size:10px !important;
  }

  .quick-tools .active-users-box .active-eye{
    font-size:11px !important;
  }

  .quick-tools .active-users-box .active-number{
    font-size:11px !important;
  }
      }
/* ADMIN + STAFF BUTTONS */

.login-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.login-buttons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:102px;
  height:50px;
  padding:0 18px;
  background:#10182c;
  color:#f3f5fa !important;
  border:2px solid #f7b51d;
  border-radius:18px;
  text-decoration:none;
  font-size:18px;
  font-weight:600;
  box-sizing:border-box;
}

.login-buttons a:hover{
  background:#18253d;
}

@media(max-width:600px){

  .login-buttons{
    gap:8px;
  }

  .login-buttons a{
    min-width:88px;
    height:46px;
    padding:0 14px;
    font-size:17px;
    border-radius:16px;
  }

}
