@charset "UTF-8";
/**
* Eric Meyer's Reset CSS v2.0
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input, textarea, button {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Elms Sans", sans-serif;
  font-size: 100%;
  box-sizing: border-box;
  vertical-align: baseline;
}

html, body {
    height: 100%;
    margin: 0;
  }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, menu, nav, section, time {
  display: block;
}

body {
  line-height: 1;
  color: black;
  background: #b62c45;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url(../images/background.png) no-repeat center 0;
  background-position: center top;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  #leaderboardContainer {
    flex: 1;
  }
  .no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
    font-size: 45px;
    font-weight: 700;
    color: #FFF;
    padding: 20px;
  }

.refresh-btn {
  background-color: #FFF;
  color: #000;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  margin: 15px 10px;
  transition: background-color 0.3s ease;
}
.refresh-btn:hover {
  opacity: 0.5;
}
.fade-in {
  animation: fadeIn 0.7s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

a {
  color: inherit;
  text-decoration: none;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* meyerweb css reset end */

textarea:focus, input:focus {
  outline: 0;
}

input {
  border-width: 0;
}

em {
  font-style: italic;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0;
}

.group:before,
.group:after {
  content: " ";
  display: table;
}

.group:after {
  clear: both;
}

.group {
  zoom: 1; /* ie 6/7 */
}

embed,
img,
object,
video {
  max-width: 100%;
}
sup {
  font-size: 58.3%;
  vertical-align: text-top;
}
sub {
  font-size: 58.3%;
  vertical-align: text-bottom;
}
.no-space-between-inline-blocks {
  *letter-spacing: normal; /*reset IE < 8*/
  letter-spacing: -0.31em; /*webkit*/
  word-spacing: -0.43em; /*IE < 8 && gecko*/
}
/*restore spacing on inner elements*/
.no-space-between-inline-blocks > * {
  letter-spacing: normal;
  word-spacing: normal;
}
.displace {
  left: -5000px;
  position: absolute;
}
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*,
*:after,
*:before {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}
html {
  font-size: 16px;
}
body {
  min-width: 100%;
  color: #282828;
  font-family: Gilroy, serif;
  font-size: 38px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0;
  text-decoration: none;
}
.global_container_ {
  float: none;
  height: auto;
  margin: 0 auto;
  padding: 45px 0 126px;
  position: relative;
  width: 100%; /* 1920px / 1920px = 100% */
  background: url(../images/background.png) no-repeat center 0;
  background-position: center top;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.l-constrained {
  margin: 0 auto;
  position: relative;
  width: 100%;
}
.header {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
}
.krave-logo {
  width: 18%;
}
.vector-smart-object {
  max-width: 50%;
  margin-bottom: -125px;
}
.unilever-logo {
  width: 9%;
}
.header > * {
  display: inline-block;
  vertical-align: top;
}
.main-content-wrapper {
    display: flex;
    margin: 135px auto 0;
    position: relative;
    flex-direction: column;
    justify-content: center;
    padding: 0px 150px;
}
.row-3 {
  margin: 0 auto;
  position: relative;
  width: 100%;
  /* background: url(../images/yellow-labels-frame.png) no-repeat; */
}
.rank {
  float: left;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  color: #000;
}
.name {
  float: left;
  margin: 0 0 0 371px;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  color: #000;
}
.orders {
  float: left;
  margin: 0 0 0 397px;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  color: #000;
}
.items {
  float: left;
  margin: 0 0 0 104px;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  color: #000;
}
.wrapper-4 {
  height: 89px;
  margin: 18px auto 0;
  position: relative;
  width: 1431px;
}
.row {
  left: 50%;
  min-height: 81px;
  padding: 16px 61px 20px;
  position: absolute;
  top: 4px;
  width: 1431px;
  background: url(../images/yellow-labels-frame.png) no-repeat;
  margin-left: -715.5px;
}
.text {
  float: left;
  font-size: 45.45715px;
  font-weight: bold;
  text-align: center;
}
.text-2 {
  float: left;
  margin: 3px 0 0 232px;
  font-weight: bold;
}
.text-4 {
  float: right;
  margin: 3px 20px 0 0;
  font-weight: bold;
}
.text-3 {
  float: right;
  margin: 2px 195px 0 0;
  font-weight: bold;
}
.vector-smart-object-2 {
  left: 50%;
  position: absolute;
  top: 0;
  margin-left: -488.5px;
}
.wrapper-5 {
  height: 89px;
  margin: 18px auto 0;
  position: relative;
  width: 1431px;
}
.row-2 {
  left: 50%;
  min-height: 81px;
  padding: 19px 60px 17px;
  position: absolute;
  top: 3px;
  width: 1431px;
  background: url(../images/yellow-labels-frame.png) no-repeat;
  margin-left: -715.5px;
}
.text-5 {
  float: left;
  font-size: 45.45715px;
  font-weight: bold;
  text-align: center;
}
.text-6 {
  float: left;
  margin: 1px 0 0 228px;
  font-weight: bold;
}
.text-8 {
  float: right;
  margin: 1px 17px 0 0;
  font-weight: bold;
}
.text-7 {
  float: right;
  margin: 0 195px 0 0;
  font-weight: bold;
}
.vector-smart-object-copy-5 {
  left: 50%;
  position: absolute;
  top: 0;
  margin-left: -484.5px;
}
.wrapper-6 {
  height: 89px;
  margin: 21px auto 0;
  position: relative;
  width: 1431px;
}
.row-4 {
  left: 50%;
  min-height: 81px;
  padding: 18px 59px 19px;
  position: absolute;
  top: 4px;
  width: 1431px;
  background: url(../images/yellow-labels-frame.png) no-repeat;
  margin-left: -715.5px;
}
.text-9 {
  float: left;
  font-size: 45.45715px;
  font-weight: bold;
  text-align: center;
}
.text-10 {
  float: left;
  margin: 1px 0 0 228px;
  font-weight: bold;
}
.text-12 {
  float: right;
  margin: 1px 18px 0 0;
  font-weight: bold;
}
.text-11 {
  float: right;
  margin: 0 195px 0 0;
  font-weight: bold;
}
.vector-smart-object-copy-6 {
  left: 50%;
  position: absolute;
  top: 0;
  margin-left: -484.5px;
}
.wrapper-7 {
  height: 89px;
  margin: 20px auto 0;
  position: relative;
  width: 100%;
}
.row-5 {
  left: 50%;
  min-height: 81px;
  padding: 19px 59px 17px;
  position: absolute;
  top: 3px;
  width: 100%;
  background: url(../images/yellow-labels-frame.png) no-repeat;
  margin-left: -715.5px;
}
.winner-row {
    background: url("../images/vector_smart_object_winner.png") no-repeat;
}
.text-13 {
  float: left;
  font-size: 42px;
  font-weight: bold;
  text-align: center;
}
.text-14 {
  float: left;
  margin: 2px 0 0 226px;
  font-weight: bold;
}
.text-16 {
  float: right;
  margin: 2px 18px 0 0;
  font-weight: bold;
}
.text-15 {
  float: right;
  margin: 1px 195px 0 0;
  font-weight: bold;
}
.vector-smart-object-copy-7 {
  left: 50%;
  position: absolute;
  top: 19px;
  margin-left: -484.5px;
}
.footer {
  height: 89px;
  margin: 19px auto 0;
  position: relative;
  width: 100%;
}
.row-6 {
  left: 50%;
  min-height: 81px;
  padding: 18px 59px;
  position: absolute;
  top: 3px;
  width: 100;
  background: url(../images/yellow-labels-frame.png) no-repeat;
  margin-left: -715.5px;
}
.text-17 {
  float: left;
  margin: 1px 0 0;
  font-size: 45.45715px;
  font-weight: bold;
  text-align: center;
}
.text-18 {
  float: left;
  margin: 1px 0 0 228px;
  font-weight: bold;
}
.text-20 {
  float: right;
  margin: 1px 18px 0 0;
  font-weight: bold;
}
.text-19 {
  float: right;
  margin: 0 195px 0 0;
  font-weight: bold;
}
.vector-smart-object-copy-8 {
  left: 50%;
  position: absolute;
  top: 0;
  margin-left: -484.5px;
}


.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: #fff;
  padding: 25px 35px;
  border-radius: 12px;
  width: 1200px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: scaleUp 0.4s ease;
}
@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close {
  float: right;
  font-size: 30px;
  cursor: pointer;
  color: #000;
  font-weight: 800;
}
.modal h2 {
  color: #000;
  margin-bottom: 15px;
}
.winner-card {
  background: #f9f9f9;
  border-radius: 10px;
  margin: 20px 0;
  padding: 10px;
  font-size: 25px;
  font-weight: 600;
  color: #000;
  border-left: 5px solid #b62c45;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#winnersBtn{
  display: none;
}

.text-white{
  margin-top: 140px;
  font-size: 35px;
  font-weight: 700;
  text-align: center;
}

.link-text{
  color: #C0F11C;
  font-weight: bold;
}

.div-btn {
    display: flex;
    justify-content: center;
    width: 100%;
}

.div-btn a{
  margin: 17px 30px;
}

.l-constrained {
  transform-origin: top center;
}

/* Extra large screens (normal desktop) */
@media (min-width: 1818px) {
  .l-constrained {
    transform: scale(1);
    width: 100%;
  }
}

/* Medium screens (laptops, tablets landscape) */
@media (max-width: 1818px) and (min-width: 1400px) {
  .l-constrained {
    transform: scale(calc(100vw / 1818));
    width: 100%;
  }
}

/* Tablets portrait */
@media (max-width: 1399px) and (min-width: 900px) {
  .l-constrained {
    transform: scale(calc(100vw / 1818));
    width: 100%;
  }
}

/* Mobile screens */
@media (max-width: 899px) {
  .l-constrained {
    transform: scale(calc(100vw / 1818));
    width: 100%;
  }
}



.leaderboard-wrapper {
    width: 100%;
    overflow-x: auto;
}

.leaderboard-table {
    border-collapse: separate;
    border-spacing: 10px 22px;
    width: 100%;
}

.leaderboard-table thead th {
    background: #f9cc06;
    border-radius: 10px;
    border: 2px solid #f95455;
    color: #000;
    padding: 12px;
    font-size: 22px;
    margin-right: 10px;
} 


.leaderboard-table tbody tr {
    color: #fff;
    padding: 5px 0 !important;
    font-size: 18px;
    text-align: center;
    display: table-row;
    margin-bottom: 10px; /* bottom space between rows */
    border-radius: 12px;
    /* overflow: hidden; */
}

.leaderboard-table tbody tr td .cell-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* spacing between image and text */
}

.leaderboard-table tbody tr td {
    font-weight: 700 !important;
    font-size: 25px;
    color: #000;
    font-weight: 700;
    padding: 10px 15px;
    vertical-align: middle;
}

.leaderboard-table tbody tr td[data-label="Name"] .cell-content {
    justify-content: flex-start; /* left align */
}

.leaderboard-table tbody tr td[data-label="Name"] img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.leaderboard-table tbody tr td img {
    width: 60px;
    height: 60px;
    margin: -10px 10px;
}

.leaderboard-table tbody tr td[data-label="Rank"] { width: 20%; }
.leaderboard-table tbody tr td[data-label="Orders"] { width: 20%; }
.leaderboard-table tbody tr td[data-label="Amount"] { width: 20%; }

/* Top 3 special rows */
.leaderboard-table tbody tr.winner-1 td,
.leaderboard-table tbody tr.winner-2 td,
.leaderboard-table tbody tr.winner-3 td {
    background: url('../images/winner-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.leaderboard-table tbody tr td {
    background: url('../images/normal-yellow-bg.png'); /* we will use your uploaded file */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .vector-smart-object { margin: 0 auto -20px; }
  .btn-group { justify-content: center; }

  .leaderboard-wrapper{ overflow-x: scroll;}
  .main-content-wrapper {
    display: flex;
    margin: 60px auto 0;
    position: relative;
    flex-direction: column;
    justify-content: center;
    padding: 0px 50px;
}
.krave-logo {
    width: 35%;
    margin-bottom: 15px;
}
.vector-smart-object{
  max-width: 85%;
  margin-bottom: 15px;
}

.unilever-logo {
    width: 21%;
}
.refresh-btn{
    padding: 5px 10px;
    font-size: 16px;
}

.leaderboard-table tbody tr td{
  font-size: 20px;
}
.leaderboard-table tbody tr td[data-label="Name"] img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.leaderboard-table tbody tr td .cell-content{
  display: inline-block;
}

.leaderboard-table tbody tr td img{
  display: none;  
}
.leaderboard-table {
    border-spacing: 10px 12px;
}
}


/* === Date Filter Container === */
.date-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.06);
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

/* Label Styling */
.date-filter label {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
    font-family: "Josefin Sans", sans-serif;
}

/* Input Styling */
.date-filter input[type="datetime-local"] {
    padding: 10px 14px;
    background: #ffffff;
    border: 2px solid #7FC6A4;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: 0.25s ease-in-out;
    cursor: pointer;
    color: #0B2B43;
    font-family: "Elms Sans", sans-serif;
}

/* Input Hover */
.date-filter input[type="datetime-local"]:hover {
    border-color: #0d76bb;
}

/* Input Focus */
.date-filter input[type="datetime-local"]:focus {
    border-color: #0d76bb;
    box-shadow: 0px 0px 8px rgba(13, 118, 187, 0.4);
}

/* Responsive Layout */
@media (max-width: 768px) {
    .date-filter {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .date-filter label {
        margin: 0;
    }
    .date-filter input {
        width: 100%;
    }
}
