/* CSS variables for page-specific inline styles */
:root {
    --bg-base:        #F0F0F0;
    --bg-surface:     #ffffff;
    --bg-elevated:    #f8f8f8;
    --bg-hover:       #f5f5f5;
    --bg-active:      #ebebeb;
    --bg-input:       #ffffff;

    --border:         #e5e5e5;
    --border-mid:     #cccccc;
    --border-strong:  #aaaaaa;

    --text-primary:   #333333;
    --text-secondary: #666666;
    --text-muted:     #999999;

    --gold:           #337ab7;
    --gold-bright:    #286090;
    --gold-glow:      rgba(51, 122, 183, 0.2);
    --gold-border:    rgba(51, 122, 183, 0.3);
    --gold-dim:       rgba(51, 122, 183, 0.08);

    --blue:           #337ab7;
    --blue-bright:    #5a9fd4;
    --blue-dim:       rgba(51, 122, 183, 0.1);

    --green:          #5cb85c;
    --green-dim:      rgba(92, 184, 92, 0.12);
    --red:            #d9534f;
    --red-dim:        rgba(217, 83, 79, 0.1);
    --orange:         #f0ad4e;
    --orange-dim:     rgba(240, 173, 78, 0.15);

    --radius:         4px;
    --radius-lg:      4px;
    --shadow-sm:      none;
    --shadow-md:      none;
    --shadow-lg:      none;
    --transition:     0.2s ease;
}

body {
    background-color: #F0F0F0;
    margin-left: 250px;
    padding: 20px;
}

body.login-page {
    margin-left: 0;
    padding: 0;
}

body.login-page .panel-default {
    margin-top: 50px;
}

body.login-page .sidebar-toggle {
    display: none !important;
}

body.login-page .sidebar {
    display: none;
}

body.login-page .sidebar-overlay {
    display: none;
}

/* Login page layout */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.login-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 360px;
}

.login-box .panel-heading {
    border-bottom: 1px solid #ccc;
    padding: 15px 20px;
}

.login-box .panel-name {
    color: #5e5e5e;
    font-size: 18pt;
}

.login-box .panel-body {
    padding: 20px;
}

/* Sidebar toggle button (mobile only) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.sidebar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
    border-radius: 2px;
}

.sidebar-toggle:hover {
    background-color: #f5f5f5;
}

.sidebar-toggle:active {
    background-color: #e8e8e8;
}

.sidebar-toggle.active {
    background-color: #337ab7;
}

.sidebar-toggle.active span {
    background-color: #fff;
}

.sidebar-toggle.active:hover {
    background-color: #286090;
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sidebar overlay (mobile only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid #ccc;
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header a {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.sidebar-header a:hover {
    color: #337ab7;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
}

.sidebar-close:hover {
    color: #333;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.sidebar-category {
    padding: 12px 15px 8px 15px;
    font-size: 12px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.sidebar-category:first-child {
    margin-top: 0;
}

.sidebar-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-item:hover {
    background-color: #f5f5f5;
    color: #337ab7;
    text-decoration: none;
}

.sidebar-item.active {
    background-color: #337ab7;
    color: #fff;
}

.sidebar-item.active:hover {
    background-color: #286090;
    color: #fff;
}

.sidebar-footer {
    border-top: 1px solid #ccc;
    padding: 10px 0;
}

.sidebar-footer .sidebar-item {
    color: #d9534f;
}

.sidebar-footer .sidebar-item:hover {
    background-color: #d9534f;
    color: #fff;
}

.raceclass-icons img {
	width: 50%;
	display:inline !important;
}

.panel-area {
        margin-top: 0;
    	width: 100%;
		margin-right: auto;
		margin-left: auto;
		background-color: #ffffff;
		border: 1px solid #ccc;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		-ms-border-radius: 4px;
		-o-border-radius: 4px;
		border-radius: 4px;
		margin-bottom: 18px
}

.panel-calendar {
        margin-top: 0;
		/* width: 36%; */
		width: 72%;
		margin-right: auto;
		margin-left: auto;
		background-color: #ffffff;
		border: 1px solid #ccc;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		-ms-border-radius: 4px;
		-o-border-radius: 4px;
		border-radius: 4px;
		margin-bottom: 3%;
    	}

.panel-default {
        margin-top: 0;
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
		background-color: #ffffff;
		border: 1px solid #ccc;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		-ms-border-radius: 4px;
		-o-border-radius: 4px;
		border-radius: 4px;
		margin-bottom: 10%;
    	}

@media only screen and (max-width:900px) {
	.panel-default {
		max-width: 100%;
    }
}

.panel-arena {
        margin-top: 0;
		width: 96%;
		margin-right: auto;
		margin-left: auto;
		background-color: #ffffff;
		border: 1px solid #ccc;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		-ms-border-radius: 4px;
		-o-border-radius: 4px;
		border-radius: 4px;
		margin-bottom: 1%;
    	}

.panel-small {
        margin-top: 0;
		width: 46%;
		margin-right: auto;
		margin-left: auto;
		background-color: #ffffff;
		border: 1px solid #ccc;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		-ms-border-radius: 4px;
		-o-border-radius: 4px;
		border-radius: 4px;
		margin-bottom: 1%;
    	}

.panel-heading {
  padding: 15px 15px;
  border-bottom: 1px solid #ccc;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.panel-heading > .panel-name {
  color: #5e5e5e;
  font-size: 18pt;
}
.panel-default > .panel-description {
  color: #5e5e5e;
  font-size: 14pt;
}


/* Wide screens */
@media only screen and (min-width: 1600px) {
    body {
        margin-left: 280px;
    }

    .sidebar {
        width: 280px;
    }
}

/* Responsive sidebar for tablets */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
    body {
        margin-left: 200px;
    }

    .sidebar {
        width: 200px;
    }
}

/* Responsive sidebar for mobile */
@media only screen and (max-width: 768px) {
    body {
        margin-left: 0;
        padding: 10px;
        padding-top: 70px;
    }

    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    body.login-page {
        padding-top: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }
}

.panel-body {
  padding: 15px;
}
