/**** Root Styles ****/

:root {
  --page-background-color: #F9F9F9;
  --text-color: #002b34;
  --primary: #0a859e;
  --primary-light: rgba(10, 133, 158, 0.3);
  --primary-dark: #002229;
}

/**** Fonts ****/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');


/**** Global Styles ****/

html,
body {
font-family: 'Inter', sans-serif;
background: var(--page-background-color);
overscroll-behavior: none;
color: rgba(0, 33, 0, 1);
}

.pool-ball {
background: #000;
border-radius: 100px;
padding: 12px 15px;
color: #fff;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.red-ball {
background: #ba0000;
border-radius: 100px;
padding: 12px 15px;
color: #ba0000;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.yellow-ball {
background: #d2cb00;
border-radius: 100px;
padding: 12px 15px;
color: #d2cb00;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

h1 {
font-size: 60px;
text-transform: uppercase;
font-weight: 200;
}

h1 b {
font-weight: 700;
}

.footer-text {
font-size: 12px;
opacity: 0.5;
}


@media (max-width: 991px) {
h1 {
font-size: 40px;
}

}



.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Adjust the opacity as needed */
  z-index: 99; /* Ensure it's above other elements */
}



/**** App Bar ****/

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-dark);
  color: #fff;
  padding: 10px;
  text-align: center;
  display: none;
  border-top: 4px solid var(--primary);
  z-index:  99;
}

.bottom-bar-items {
  display: flex;
  justify-content: space-between; /* Ensure equal spacing between items */
}

.bottom-bar .bar-item {
  text-align: center;
     width: 20%;
    padding: 5px;
    border-radius: 4px;
    background: rgba(10, 133, 158, 0.2);
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
      text-decoration: none;
  color: #fff;
}

.bottom-bar .bar-item.active {
background: var(--primary);
}

/* Ensure the last item has no right margin */
.bottom-bar .bar-item:last-child {
  margin-right: 0;
}

/* Style for the text below the icon */
.bottom-bar .bar-item span {
  display: block;
  font-size: 10px; /* Adjust the font size as needed */
  margin-top: -3px; /* Adjust the spacing between icon and text */
  opacity: 0.6;
}




/**** Top Bar ****/

.mobile-nav-bar {
width: 100%;
padding: 20px;
position: sticky;
top: 0;
z-index: 999;
display: none;
background: var(--primary-dark);
}

.mobile-nav-bar .logo {
font-size: 26px;
color: #fff;
text-align: center;
font-weight: 900;
text-transform: uppercase;
    display: flex;
    align-items: center;
        width: 100%;
}


.mobile-nav-bar .logo-image {
width: 50px;
height: auto;
margin-right: 10px;
padding: 2px;
background: rgba(255, 255, 255, 0.05);
border-radius: 100px;
}

.mobile-nav-bar .text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mobile-nav-bar .title span {
  font-weight: 900;
  color: var(--primary);
}

.mobile-nav-bar .tagline {
font-size: 10px;
opacity: 0.5;
letter-spacing: 1px;
color: #fff;
text-align: left;
font-weight: 300;
text-transform: uppercase;
}

.menu-icon {
    float: right;
    color: #ffff;
    font-size: 34px;
    text-align: right;
    background: #ffffff14;
    padding: 2px 10px;
    border-radius: 2px;
}

/* Default styles for desktop */
.sidebar {
  position: fixed;
  z-index: 105;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--primary-dark);
  display: block; /* Show by default on desktop */
  flex-shrink: 0;
  width: 330px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  flex-direction: column!important;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  padding-bottom: 20px;
}


/* Class to toggle the sidebar visibility */
.show {
  display: block !important;
}

.sidebar-header {
  width: 100%;
  height: 70px;
  display: inline-table;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  padding: 20px;
  border-bottom: 1px dashed var(--primary-light);
}

.sidebar-header .logo {
  font-size: 26px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: -5px;
  display: flex;
  align-items: center;
}

.sidebar-header .logo-image {
  width: 50px;
  height: auto;
  margin-right: 10px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
}

.sidebar-header .text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sidebar-header .logo .title span {
  font-weight: 900;
  color: var(--primary);
}

.sidebar-header .tagline {
  font-size: 10px;
  opacity: 0.5;
  letter-spacing: 1px;
  color: #fff;
  text-align: left;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 0px;
}

.sidebar-content {
  overflow-y: auto; /* Enable vertical scrolling */
  flex: 1 0 auto;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 0px!important;
  height: calc(100% - 70px); /* Full height minus header height */
  position: relative;
}

.sidebar-footer {
  flex: none;
  padding: 20px;
  background: #001b21;
}

.sidebar-footer .footer-btn {
  color: #b5b5c3;
  background-color: rgba(63,66,84,.35);
  padding: 15px;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}

.sidebar-footer .footer-btn:hover {
  background-color: rgba(63,66,84,.6);
}

.welcome-user {
font-size: 14px;
color: #fff;
font-weight: 500;
opacity: 1;
border: 0px solid var(--primary);
text-align: center;
padding: 15px;
background: rgba(10, 133, 158, 0.05);
border-radius: 8px;
}

.welcome-user span {
opacity: 0.7;
}

.main {
margin-left: 330px;
}

.footer {
margin-left: 330px;
}

.top-bar {
padding: 15px 20px;
background: #fff;
-webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
position: sticky;
top: 0px;
}

.main-content {
padding: 20px;
}

.page-header {
padding: 40px 30px 80px;
background: rgba(10, 133, 158, 0.12);
margin-bottom: -70px;
}

.page-title-high {
font-weight: 600;
color: var(--primary);
margin-bottom: 0px;
text-transform: uppercase;
opacity: 1;
}

.page-title {
font-weight: 600;
font-size: 40px;
}

.sb-link-header {
color: rgba(255, 255, 255, 0.3);
letter-spacing: 1px;
font-size: 13px;
text-transform: uppercase;
font-weight: 500;
margin-bottom: 10px;
}

.sb-links {
margin-left: 0px;
padding-left: 0px;
}

.sb-link {
font-weight: 500;
padding: 8px 16px;
color: #b5b5c3;
background-color: rgba(63,66,84,.35);
border-radius: 4px;
margin-bottom: 10px;
cursor: pointer;
display: -webkit-flex;
text-decoration: none;
}

.sb-link.active {
background: var(--primary);
color: #fff;
}

.sb-link:not(.active):hover {
background-color: rgba(10, 133, 158, 0.12);
color: #fff;
}


.sb-link:last-child {
margin-bottom: 30px;
}

.sb-title {
  font-size: 12px;
  display: flex;
  align-items: center; 
  width: 100%;
}

.sb-icon {
padding: 5px 0px;
font-size: 20px;
line-height: 20px;
display: -webkit-inline-box;
border-right: 1px solid rgba(255, 255, 255, 0.1);
padding-right: 10px;
margin-right: 10px;
}


/**** Tasks ****/

.tasks-columns-container {
  margin: 20px 0px; /* Add 20px margin below the container */
  overflow-x: auto; /* Enable horizontal scrolling */
  display: block; /* Ensure that the container only takes the necessary width */
}

.tasks-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; 
  margin: 0; /* Remove the auto margin from .tasks-columns */
}

.tasks-col {
  flex: 0 0 350px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  border: 2px dashed #ececec;
  margin-right: 10px;
}

.tasks-col:last-child {
  margin-right: 0px;
}

.tasks-col .header {
padding: 10px;
background: rgba(32, 43, 70, 0.1);
color: rgba(32, 43, 70, 1);
font-weight: 600;
border-radius: 8px;
margin-bottom: 15px;
text-align: center;
}

.tasks-col.green {
border: 2px dashed rgba(0, 125, 0, 0.3);
}

.tasks-col.green .header {
background: rgba(0, 125, 0, 0.1);
color: rgba(0, 125, 0, 1);
}

.tasks-col.light-blue {
border: 2px dashed rgba(62, 151, 255, 0.3);
}

.tasks-col.light-blue .header {
background: rgba(62, 151, 255, 0.1);
color: rgba(62, 151, 255, 1);
}

/* Styles for the custom scrollbar */
.tasks-columns-container::-webkit-scrollbar {
  width: 6px; /* Set the width of the scrollbar */
}

.tasks-columns-container::-webkit-scrollbar-thumb {
  background-color: #ececec; /* Set the color of the scrollbar thumb */
  border-radius: 100px; /* Set the radius of the scrollbar thumb */
}

.tasks {
height: 450px;
max-height: 450px;
overflow-x: scroll;
margin-bottom: 15px;
}

.tasks-item {
padding: 15px;
background: rgba(236, 236, 236, 0.3);
border-radius: 2px;
border: 1px solid #eeee;
margin-bottom: 10px;
}

.tasks-item:hover {
background: rgba(236, 236, 236, 0.5);
cursor: pointer;
}

.tasks-item .title {
font-size: 12px;
font-weight: 600;
margin-bottom: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 280px;
}

.tasks-item .info {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.5;
    margin-bottom: 0px;
    display: flex;
}

.tasks-item .info-item {
    max-width: 33%;
    margin-right: 5px; /* Adjust the value to set the desired spacing */
}

.tasks-item .info-item:not(:last-child)::after {
    content: " | ";
    margin-left: 5px;
    opacity: 0.5;
}


.tasks-item:last-child {
margin-bottom: 20px;
}

.add-task-item {
font-size: 12px;
margin-bottom: -10px;
text-align: center;
font-weight: 600;
cursor: pointer;
display: table;
margin: auto;
opacity: 0.5;
}

.add-task-item:hover {
opacity: 1;
}

/**** Stats Blocks ****/

.stats-block {
padding: 20px;
background: #fff;
border-radius: 8px;
-webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
border-bottom: 6px solid rgb(0, 33, 0, 0.1);
}

.stats-block .stats-content {
display: flex;
align-items: center;
}

.stats-block .stats-icon-image {
width: 50px;
height: auto;
margin-right: 10px;
}

.stats-block .counter {
font-size: 24px;
line-height: 26px;
font-weight: 600;
}

.stats-block .title {
text-transform: uppercase;
font-size: 14px;
opacity: 0.3;
font-weight: 600;
}


/**** Groups ****/

.group {
background: #fff;
-webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
border-radius: 8px;
}

.group-title {
background: var(--primary);
color: #fff;
font-weight: 700;
font-size: 18px;
text-align: center;
padding: 20px;
border-radius: 8px 8px 0px 0px;
}

.group-content {
padding: 0px;
border-radius: 0px 0px 8px 8px;
}

.groups-table thead {
background: rgba(0, 33, 0, 0.15);
}

.groups-table tr {
border-bottom: 0px solid rgb(238, 238, 238);
}

.groups-table tr.top {
background: rgba(10, 133, 158, 0.3);
border-bottom: 0px solid rgba(10, 133, 158, 0.12);
}

.groups-table tr.third-place {
background: rgba(10, 133, 158, 0.15);
border-bottom: 0px solid rgba(10, 133, 158, 0.12);
}

.groups-table.table>:not(:last-child)>:last-child>* {
border-bottom-color: currentColor;
border-bottom: none;
}


/**** Footer ****/

.footer {
padding: 20px;
background: #f0f0f0;
-webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.footer a {
color: var(--text-color);
font-weight: 600;
text-decoration: none;
}

.footer .copyright {
font-size: 12px;
margin-bottom: 5px;
font-weight: 600;
}

.footer .about {
font-size: 10px;
margin-bottom: 5px;
opacity: 0.8;
}

.footer .version {
font-size: 10px;
margin-bottom: 0px;
opacity: 0.8;
}


/**** Players ****/


.players label {
display: block;
}

.ranking-badge {
padding: 2px 7px;
font-size: 10px;
color: #fff;
background: var(--primary);
display: -webkit-inline-box;
border-radius: 100px;
}

.players .form-control {
padding: 10px!important;
border: 1px solid rgba(0, 33, 0, 0.15)!important;
background: #f9f9f9!important;
}

.dataTables_wrapper .dataTables_filter {
float: right;
text-align: right;
width: 100%!important;
margin-bottom: 10px;
}

.players {
background: #fff;
-webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
border-radius: 8px;
}

.players-title {
background: var(--primary);
color: #fff;
font-weight: 700;
font-size: 18px;
text-align: center;
padding: 20px;
border-radius: 8px 8px 0px 0px;
}

.players-content {
padding: 15px;
border-radius: 0px 0px 8px 8px;
}

.players-table thead {
background: rgba(0, 33, 0, 0.15);
}

.players-table tr {
border-bottom: 0px solid rgb(238, 238, 238);
}

.players-table tr.top {
background: rgba(10, 133, 158, 0.3);
border-bottom: 0px solid rgba(10, 133, 158, 0.12);
}

.players-table tr.third-place {
background: rgba(10, 133, 158, 0.15);
border-bottom: 0px solid rgba(10, 133, 158, 0.12);
}

.players-table.table>:not(:last-child)>:last-child>* {
border-bottom-color: currentColor;
border-bottom: none;
}

.table-page .game-block {
background: rgba(10, 133, 158, 0.04);
display: flex;
padding: 10px;
border-radius: 8px;
border: 1px solid var(--primary-dark);
margin-bottom: 10px;
align-items: center;
}

.table-page .game-block .title {
font-size: 18px;
font-weight: 700;
color: var(--primary);
display: block;
}

.table-page .score {
padding: 10px 30px;
background: var(--primary-dark);
text-align: center;
color: #fff;
font-size: 30px;
align-items: center;
border-radius: 8px;
}

.table-page .names {
width: 100%;
margin: 0px 10px;
text-align: center;
font-size: 20px;
}

.table-page .versus {
padding: 20px;
width: 100%;
margin: 0px 5px;
font-weight: 600;
font-size: 30px;
}

.table-page .date-block {
padding: 10px 20px;
font-size: 12px;
color: #fff;
background: var(--primary-dark);
display: -webkit-inline-flex;
border-radius: 8px 8px 0px 0px;
}

.table-page .date-title:not(:first-child) {
margin-top: 25px;
}


/**** Results Page ****/

.results-page .game-block {
background: rgba(10, 133, 158, 0.04);
display: flex;
padding: 10px;
border-radius: 8px;
border: 1px solid var(--primary-dark);
margin-bottom: 10px;
align-items: center;
}

.results-page .game-block .title {
font-size: 18px;
font-weight: 700;
color: var(--primary);
display: block;
}

.results-page .score {
padding: 10px 30px;
background: var(--primary-dark);
text-align: center;
color: #fff;
font-size: 30px;
align-items: center;
border-radius: 8px;
}

.results-page .names {
width: 100%;
margin: 0px 10px;
text-align: center;
font-size: 20px;
}

.results-page .versus {
padding: 20px;
width: 100%;
margin: 0px 5px;
font-weight: 600;
font-size: 30px;
}

.results-page .date-block {
padding: 10px 20px;
font-size: 12px;
color: #fff;
background: var(--primary-dark);
display: -webkit-inline-flex;
border-radius: 8px 8px 0px 0px;
}

.results-page h3, .table-page h3 {
margin-bottom: 12px;
font-size: 20px;
font-weight: 600;
color: var(--primary-dark);
}

.results-section .date-title:not(:first-child) {
margin-top: 25px;
}


/**** Admin Pages ****/

.admin-page .page-header {
padding: 40px 30px 30px;
margin-bottom: 0px;
}

.submit-result-box {
padding: 15px;
border-radius: 8px;
background: #fff;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.submit-result-btn {
padding: 15px 30px;
font-size: 14px;
font-weight: 500;
background: var(--primary);
color: #fff;
border-radius: .3rem;
display: block;
border: 1px solid var(--primary);
}

/**** Login Page ****/

.login-popup .modal-header {
background: var(--primary-dark);
color: #fff;
border: none;
}

.login-popup .modal-content {
border: 0px solid rgba(0,0,0,.2);
}

.login-popup .modal-footer {
background: rgba(0, 34, 41, 0.05);
}

.login-popup .login-btn {
padding: 15px 30px;
font-size: 14px;
font-weight: 500;
background: var(--primary);
color: #fff;
border-radius: .3rem;
display: block;
border: 1px solid var(--primary);
}

.login-popup .login-close {
cursor: pointer;
}

.login-popup .login-message {
display: none;
}

.login-popup .login-message .error {
background: rgb(255, 83, 83);
color: #fff;
padding: 15px;
border-radius: 8px;
margin-bottom: 15px;
font-size: 14px;
text-align: center;
font-weight: 500;
}

.login-popup .login-message .success {
background: var(--green-color);
color: #fff;
padding: 15px;
border-radius: 0px;
margin-bottom: 15px;
font-size: 14px;
text-align: center;
font-weight: 500;
}

/**** Results Sectiomn ****/

.results-card {
padding: 10px;
background: #fff;
border-radius: 8px;
  -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.results-content {
margin-top: 20px;
}

.results-card h5 {
margin-bottom: 12px;
font-size: 20px;
font-weight: 600;
}

.results-content h5 {
margin-bottom: 12px;
font-size: 20px;
font-weight: 600;
}

.table-results-split {
height: 4px!important;
color: rgb(247, 247, 247);
opacity: 1;
margin-bottom: 30px;
}

.results-page .nav-tabs {
border-bottom: 0px solid var(--primary);
}

.results-page .nav-tabs .nav-link {
margin-right: 5px;
background: rgba(10, 133, 158, 0.1);
border-radius: 8px;
margin-bottom: 5px;
color: var(--primary);
}

.results-page .nav-tabs .nav-link.active {
background: var(--primary);
color: #fff;
border-color: var(--primary);
}

.results-page .nav-tabs .nav-link:hover {
border-color: var(--primary);
isolation: isolate;
}

.no-group-results {
padding: 20px;
background: rgba(255, 0, 0, 0.06);
font-size: 14px;
border-radius: 8px;
}

.no-group-results p {
margin-bottom: 0px;
}

/* Hide sidebar on tablets and smaller screens by default */
@media (max-width: 991px) {

.mobile-nav-bar { display: -webkit-flex; }
.top-bar { top: 93px; }
.sidebar { display: none; }

.stats-block .stats-icon-image { width: 40px; }
.stats-block .counter { font-size: 18px; line-height: 22px; }
.stats-block .title { text-transform: uppercase; font-size: 10px; }

.main { padding-bottom:80px; margin-left: 0; }
.footer { margin-left: 0; }
.bottom-bar { display: block; }

.table-page .score { padding: 5px 15px; font-size: 18px; }
.table-page .names { font-size: 14px; }
.table-page .versus { padding: 5px; width: 100%; margin: 0px 2px; font-size: 14px; }
.table-page .game-block .title { font-size: 14px; }

.results-page .score { padding: 5px 15px; font-size: 18px; }
.results-page .names { font-size: 13px; }
.results-page .versus { padding: 5px; width: 100%; margin: 0px 2px; font-size: 14px; }
.results-page .main-content { padding: 10px; }

.results-page h3, .table-page h3 { font-size: 16px; }
.results-page .game-block .title { font-size: 14px; }

}

