* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
    font-size: 12px;
    color: #404040;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
	color: #31B6A3;
}

/* Navigation Bar - Single Row */
.navbar {
    border-bottom: 3px solid #31B6A3;
    position: sticky;
    top: 0;
    z-index: 1001;
    background-color: #fff;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
}

/* Right Side: Menu + Language */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 7px 0px 6px 0px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #404040;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
}


.stats-container {
    width: 100%;
    padding: 0px 5px;
}

.stats-navigation {
    text-align: center;
    padding-top: 10px;
}

.stats-navigation img {
    cursor: pointer;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.stats-content-wrapper {
    display: grid;
    min-width: 250px;
    padding: 0px 5px;
    padding-top: 10px;
}

.stats-summary-table {
    width: 100%;
    border: 1px solid #D4D4D4;
    border-collapse: collapse;
}

.stats-summary-table td {
    padding: 8px;
    border: 1px solid #D4D4D4;
    font-size: 11px;
    line-height: 10px;
}

.stats-summary-table td:first-child {
    text-align: left;
    font-weight: normal;
}

.stats-summary-table td:last-child {
    text-align: center;
    width: 150px;
}

.stats-legend {
    font-size: 11px;
    color: #404040;
    line-height: 1.6;
    padding: 8px;
    border: 1px solid #D4D4D4;
}

.stats-legend-row {
    margin-bottom: 2px;
}

.stats-legend-label {
    font-weight: bold;
    display: inline-block;
    min-width: 100px;
}

.stats-export-link {
    color: #31B6A3;
    text-decoration: none;
    font-size: 11px;
    display: inline-block;
    margin-top: 2px;
}

.stats-export-link:hover {
    text-decoration: underline;
}

/* Hourly Stats Tables */
.hourly-stats-table {
    width: 100%;
    border: 1px solid #D4D4D4;
    border-collapse: collapse;
}

.hourly-stats-table thead {
    background-color: #F9F9F9;
}

.hourly-stats-table th {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #D4D4D4;
    white-space: nowrap;
    padding: 10px 8px;
}

.hourly-stats-table td {
    padding: 6px 8px;
    text-align: center;
    font-size: 11px;
    border: 1px solid #D4D4D4;
}

.hourly-stats-table tr:hover {
    background-color: #f9f9f9;
}

.no-data-message {
    text-align: center;
    padding: 10px 10px;
    color: #404040;;
    font-size: 12px;
}


.color0 a {
	background:#FFF   !important;
}

.color1 a {
	background:#E9E9E9 !important;
}

.color2 a {
	background:#B7B7B7 !important;
}


.events-container {
    width: 100%;
    padding: 0px 5px;
}

.events-navigation {
    text-align: center;
    padding-top: 10px;
}

.events-navigation img {
    cursor: pointer;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.events-content-wrapper {
    display: flex;
    gap: 10px;
    padding: 0px 5px;
    padding-top: 10px;
}

.events-details {
    flex: 0 0 auto;
    width: 300px;
    border: 1px solid #D4D4D4;
    //border-radius: 4px;
    padding: 10px;
}

.events-details table {
    width: 100%;
}

.events-chart {
    flex: 1;
    min-width: 0;
    border: 1px solid #D4D4D4;
    //border-radius: 4px;
}

.events-chart-container {
    width: 100%;
    height: 325px;
}

.detail-row {
    margin-bottom: 3px;
}

.detail-label {
    font-weight: bold;
    color: #404040;
    font-size: 11px;
    display: inline-block;
    min-width: 100px;
}

.detail-value {
    color: #404040;
    font-size: 11px;
}

.detail-link {
    color: #31B6A3;
    text-decoration: none;
    font-size: 11px;
}

.detail-link:hover {
    text-decoration: underline;
}

.audio-player {
    width: 100%;
    margin-top: 5px;
}

.no-event-message {
    text-align: center;
    padding: 10px 10px;
    color: #404040;;
    font-size: 12px;
}


.all-events-table-wrapper {
    width: 100%;
    margin-top: 10px;
    //overflow-x: auto;
    //-webkit-overflow-scrolling: touch;
}

.all-events-table {
    width: 100%;
    border: 1px solid #D4D4D4;
    border-collapse: collapse;
}

.all-events-table thead {
    background-color: #F9F9F9;
}

.all-events-table th {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #D4D4D4;
    white-space: nowrap;
    padding: 10px 8px;
}

.all-events-table td {
    padding: 6px 8px;
    text-align: center;
    font-size: 11px;
    border: 1px solid #D4D4D4;
}

.all-events-table tr:last-child td {
    //border-bottom: none;
}

.all-events-table tr:hover {
    background-color: #f9f9f9;
}

.event-link {
    color: #31B6A3;
    text-decoration: none;
}

.event-link:hover {
    text-decoration: underline;
}

.event-active {
    font-weight: bold;
}

.event-deleted {
    text-decoration: line-through;
    color: #999;
}

.overlap-note {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    color: #404040;;
    background-color: #f9f9f9;
    border-top: 1px solid #D4D4D4;
}


.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 61vh;           /* same as iframe height */
  width: 100%;
}

/* The spinning circle */
.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #31B6A3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


#div-loading {
   position: fixed;
   display:none;
   left: 50%;
   top: 250px;
   width: 40px;
   height: 40px;
   border: 5px solid #f3f3f3;
   border-top: 5px solid #31B6A3;
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

/* Main Menu */
.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 15px 10px;
    color: #404040;
    text-decoration: none;
    font-weight: bold;
	font-size: 13px;
	font-family: inherit;
    transition: all 0.3s;
    white-space: nowrap;
    //border-right: 1px solid #fff;
}

.main-menu > li > a:hover,
.main-menu > li.active > a {
    background-color: #31B6A3;
    color: #fff;
}

/* Submenu */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    border: 1px solid #f0f0f0;
    border-top: 3px solid #31B6A3;
}

.main-menu > li:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #404040;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: normal;
    font-size: 12px;
	font-family: inherit;
    border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover,
.submenu li.active a {
    background-color: #f8f8f8;
    color: #31B6A3;
}

/* Language Dropdown */
.desktop-language-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-language-dropdown select {
    padding: 7px 25px 7px 10px;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    background-color: #fff;
    color: #404040;
    font-size: 13px;
    font-weight: normal;
	font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0; /* Prevent shrinking */
}

.desktop-language-dropdown select:hover {
    border-color: #31B6A3;
}

.desktop-language-dropdown select:focus {
    outline: none;
    border-color: #31B6A3;
    box-shadow: 0 0 0 2px rgba(49, 182, 163, 0.1);
}

/* Content Area */
.content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 15px 15px;
}

.content h1 {
    color: #28a394;
    font-size: 16px;
	font-family: inherit;
	padding: 2px 0px;
}

.content h1 a {
	color: #28a394;
	text-decoration: underline;
}

.content h1 a:hover {
	text-decoration: none;
}

.content .description {
    color: #404040;
    padding: 10px 0px;
    font-size: 14px;
	font-family: inherit;
	text-align: justify;
}

/* Login Form */
.login-container {
    max-width: 250px;
    margin: 10px 0;
    padding: 15px 15px 5px 15px;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
}

.error {
    color: red;
    font-size: 12px;
	font-family: inherit;
}

.success {
    color: green;
    font-size: 12px;
	font-family: inherit;
}
      
.login-intro {
    color: #404040;
    margin-bottom: 12px;
    font-size: 13px;
	font-family: inherit;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #404040;
    font-size: 12px;
    font-weight: bold;
	font-family: inherit;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    height: 26px;
    padding: 8px;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    font-size: 13px;
	font-family: inherit;
    transition: border-color 0.3s;
}
      
.form-group input:hover {
    border-color: #31B6A3;
}

.form-group input:focus {
    outline: none;
    border-color: #31B6A3;
    box-shadow: 0 0 0 2px rgba(49, 182, 163, 0.1);
}

.btn-login {
    background-color: #31B6A3;
    color: #fff;
    border: none;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: normal;
	font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #28a394;
}

.btn-login:active {
    background-color: #239184;
}

/* Hide mobile language and header on desktop */
.mobile-language-dropdown,
.mobile-menu-header {
    display: none;
}

/* Footer */
.footer {
    background-color: #31B6A3;
    padding: 11px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
	font-family: inherit;
    color: #fff;
    padding: 0px 15px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    text-decoration: underline;
}

.switcher {
	position: relative;
	width: 120px;
	height: 26px;
	background-color: rgba(30, 40, 60, 0.8);
	border-radius: 40px;
	display: flex;
	cursor: pointer;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(100, 120, 150, 0.2);
	transition: all 0.4s ease;
}
    
.option {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: all 0.4s ease;
    font-weight: normal;
    font-size: 11px;
    font-family: inherit;
}
    
.option.archive {
    color: #fff;
}
    
.option.live {
    color: #fff;
}
    
.slider {
    position: absolute;
    width: 50%;
    height: 18px;
    border-radius: 35px;
    top: 3px;
    left: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
    
.slider.archive {
    left: 4px;
    background: linear-gradient(to right, #31B6A3, #31B6A3);
}
    
.slider.live {
    left: calc(50% - 4px);
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.select-box {
    width: auto;
    height: 26px;
    padding: 4px 30px 4px 12px;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    background-color: #fff;
    color: #404040;
    font-size: 12px;
    font-weight: normal;
	font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
	transition: all 0.3s;
}
        
.select-box:hover {
    border-color: #31B6A3;
}

.select-box:focus {
    outline: none;
    border-color: #31B6A3;
    box-shadow: 0 0 0 2px rgba(49, 182, 163, 0.1);
}

.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 40%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 40% 10px 10px; }
.ui-datepicker {
	color:inherit;
	font-size: 11px;
	font-family: inherit;
}
.ui-widget-header {
	border: 1px solid #f8f8f8;
	background: #f8f8f8;
	color: inherit;
	font-weight: bold;
	border-radius: 0px;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
	color: inherit;
	font-family: inherit;
}
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
	border: 1px solid #31B6A3;
	color: #inherit;
}
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
	font-weight: normal;
	color: inherit;
}

.reload-button {
	border: none;
    background: url('../images/reload.png') no-repeat top left;
    width:25px;
    height:25px;
    border: none;
    cursor: hand;
	cursor: pointer;
	vertical-align: middle;
}

.events-button {
	border: none;
    background: url('../images/events.png') no-repeat top left;
    width:25px;
    height:25px;
    border: none;
    cursor: hand;
	cursor: pointer;
	vertical-align: middle;
}

.stats-button {
	border: none;
    background: url('../images/stats.png') no-repeat top left;
    width:25px;
    height:25px;
    border: none;
    cursor: hand;
	cursor: pointer;
	vertical-align: middle;
}

#datepicker {
	width:135px;
	color: inherit;
	font-size: 12px;
	font-family: inherit;
}

.table-header {
	height: 26px; 
	color: #fff;
	vertical-align : middle;
	font-size: 12px; 
	font-weight: normal;
	font-family: inherit;
	cursor: hand;
	cursor: pointer;
	background-color: rgba(30, 40, 60, 0.8);
	-webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    padding:3px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    /*border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;*/
}

.table-header img {
    vertical-align: middle;
}

.table-border {
	border: 1px solid #aaaaaa;
	border-top-right-radius: 4px;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.table-border tr td {
	padding-left: 5px;
	border: 0px solid #aaaaaa;
}

.detail-table-border { 
	border-collapse: collapse;
	border: 1px solid #D4D4D4;
}

.detail-table-border tr td {
	border: 1px solid #D4D4D4;
}

.stats-table-border { 
	border-collapse: collapse;
	border: 1px solid #D4D4D4;
}

.stats-table-border tr td {
	border: 1px solid #D4D4D4;
	line-height: 20px;
}

.stats-info-table { 
	border-collapse: collapse;
	border: 1px solid #D4D4D4;
}

.stats-info-table tr td {
	border: 1px solid #D4D4D4;
	line-height: 25px;
}

.label {
	padding: 5px;
	font-size: 12px;
	font-family: inherit;
}

.label-value {
	padding: 5px;
	font-size: 12px;
	font-family: inherit;
}

.input-label {
    padding: 5px;
    display: block;
	font-size: 12px;
	font-weight: bold;
	font-family: inherit;
}

.small-configs {
    font-size: 11px;
    height: 15px;
    font-weight: normal;
    font-family: inherit;
}

.rep-year {
	font-size: 11px;
	height: 20px;
    font-weight: normal;
    font-family: inherit;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Modal Content - Responsive for all screens */
.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 675px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal Header */
.modal-header {
  background: #2c3e50;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

@media screen and (max-width: 1200px) {
	.hamburger {
	    display: flex;
	}
	
	.nav-right {
	    gap: 0;
	}
	
	/* Hide desktop menu and language dropdown */
	.main-menu,
	.nav-right .desktop-language-dropdown {
	    display: none;
	}
	
	/* Mobile Menu Header (Language + Close Button) */
	.mobile-menu-header {
	    display: flex;
	    justify-content: space-between;
	    align-items: center;
	    padding: 7px 20px;
	    background-color: #fff;
	    border-bottom: 1px solid #f0f0f0;
	    position: sticky;
	    top: 0;
	    z-index: 1001;
	}
	
	.mobile-language-dropdown {
	    display: flex;
	    align-items: center;
	    gap: 10px;
	}
	
	.mobile-menu-header .mobile-language-dropdown select {
	    width: auto;
		padding: 7px 25px 7px 10px;
	    border: 1px solid #aaaaaa;
	    border-radius: 4px;
	    background-color: #fff;
	    color: #404040;
	    font-size: 12px;
	    font-weight: normal;
		font-family: inherit;
	    cursor: pointer;
	    appearance: none;
	    -webkit-appearance: none;
	    -moz-appearance: none;
	    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	    background-repeat: no-repeat;
	    background-position: right 8px center;
	    background-size: 16px;
		transition: all 0.3s;
	}
         
	.mobile-language-dropdown select:hover {
	    border-color: #31B6A3;
	}

	.mobile-language-dropdown select:focus {
	    outline: none;
	    border-color: #31B6A3;
	    box-shadow: 0 0 0 2px rgba(49, 182, 163, 0.1);
	}

	.mobile-menu-header .hamburger {
	    display: flex;
	    padding: 0;
	    margin-left: 15px;
	}

	/* Mobile Menu */
	.main-menu.active {
	    display: flex;
	    position: fixed;
	    top: 0;
	    right: -100%;
	    width: 300px;
	    max-width: 85%;
	    height: 100vh;
	    background-color: #fff;
	    flex-direction: column;
	    padding: 0;
	    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
	    transition: right 0.3s ease;
	    overflow-y: auto;
	    z-index: 1000;
	    right: 0;
	}
	
	.main-menu > li {
	    width: 100%;
	    border-bottom: 1px solid #f0f0f0;
	}
	
	.main-menu > li > a {
	    padding: 15px 20px;
	}
	
	.main-menu > li > a:hover {
	    background-color: #f8f8f8;
	    color: #31B6A3;
	}
	
	.submenu {
	    position: static;
	    display: none;
	    box-shadow: none;
	    border: none;
	    background-color: #f8f8f8;
	    min-width: 100%;
	}

	.main-menu > li.has-submenu > a::after {
	    content: ' ▼';
	    font-size: 10px;
	    float: right;
	}
	
	.main-menu > li.has-submenu.open > a::after {
	    content: ' ▲';
	}
	
	.main-menu > li.has-submenu .submenu {
	    display: none;
	}
	
	.main-menu > li.has-submenu.open .submenu {
	    display: block;
	}
	
	.submenu li a {
	    padding: 12px 20px 12px 35px;
	    font-size: 12px;
		font-family: inherit;
	}

	/* Mobile Overlay */
	.mobile-overlay {
	    display: none;
	    position: fixed;
	    top: 0;
	    left: 0;
	    width: 100%;
	    height: 100%;
	    background-color: rgba(0,0,0,0.5);
	    z-index: 999;
	}

	.mobile-overlay.active {
	    display: block;
	}
	
	.footer-content {
        gap: 10px;
        text-align: center;
    	padding: 0px 5px;
    }
}

@media screen and (max-width: 968px) {
    .events-content-wrapper {
        flex-direction: column;
    }
    
    .events-details {
        width: 100%;
        order: 2; /* Move details below chart on mobile */
    }
    
    .events-chart {
        width: 100%;
        order: 1; /* Show chart first on mobile */
    }
    
    .events-chart-container {
        height: 250px; /* Reduce height on mobile */
    }
    
    .detail-label {
        min-width: 100px;
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 11px;
    }
    
    
	.stats-content-wrapper {
        gap: 10px;
    	min-width: 100%;
    }
    
    .stats-table {
        order: 2;
    }
    
    .stats-summary-table td {
        padding: 6px;
        font-size: 11px;
    }
    
    .stats-summary-table td:last-child {
        width: auto;
    }
    
    .hourly-stats-table th,
    .hourly-stats-table td {
        padding: 5px 4px;
        font-size: 11px;
    }
}

@media screen and (max-width: 768px) {
    .logo img {
        height: 30px;
    }

    .content h1 {
        font-size: 16px;
    }
    
	.switcher {
   		width: 120px;
       	height: 26px;
	}
   
	.slider {
       	height: 18px;
	}
   
	.option {
       	font-size: 11px;
	}
	
	.modal-content {
    	width: 95%;
    	max-height: 90vh;
  	}
  
  	.modal-header {
    	padding: 15px;
  	}
  	
  	
	.all-events-mobile-cards {
        display: none; /* Hidden by default, can be toggled */
    }
    
    .event-card {
        background: #fff;
        border: 1px solid #D4D4D4;
        border-radius: 4px;
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .event-card-row {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        font-size: 11px;
    }
    
    .event-card-label {
        font-weight: bold;
        color: #404040;;
    }
    
    .event-card-value {
        color: #404040;
    }
    
    
	.all-events-table th,
    .all-events-table td {
        padding: 5px 4px;
        font-size: 11px;
    }
    
    /* Make table scrollable horizontally on mobile */
    .all-events-table {
        min-width: 600px;
    }
    
    .overlap-note {
        font-size: 11px;
        padding: 6px;
    }
}

@media screen and (max-width: 480px) {
    .content h1 {
        font-size: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        font-size: 12px;
    }

    .main-menu.active {
        width: 280px;
    }
    
    
	.all-events-table th,
    .all-events-table td {
        padding: 4px 3px;
        font-size: 11px;
    }
    
    .all-events-table {
        min-width: 300px;
    }
    
    
	.events-chart-container {
        height: 200px;
    }
    
    .events-details {
        padding: 8px;
    }
    
    .detail-row {
        margin-bottom: 3px;
    }
    
    .detail-label {
        //display: block;
        margin-bottom: 2px;
        font-size: 11px;
    }
    
    .detail-value {
        //display: block;
        margin-left: 0;
        font-size: 11px;
    }
    
    
	.stats-container {
        padding: 5px;
    }
    
    .stats-content-wrapper {
        gap: 10px;
    }
    
    .stats-summary-table td {
        padding: 5px;
        font-size: 11px;
        line-height: 10px;
    }
    
    .stats-legend {
        font-size: 11px;
    }
    
    .stats-legend-label {
        min-width: 100px;
    }
    
    .hourly-stats-table th,
    .hourly-stats-table td {
        padding: 4px 3px;
        font-size: 11px;
    }
}