/* #region root colors */
:root {
    /* semantic colors */
    --primary: var(--red);
    --secondary: #191C24;
    --light: var(--gray-light3);
    --dark: var(--black);
    --success: var(--green-alt);
    --info: var(--teal);
    --warning: var(--yellow);
    --danger: var(--red-light1);
    --black: #000000;
    --white: #fff;

    /* Grays */
    --gray-light4: #b5b5b5;
    --gray-light3: #6c7293;
    --gray-light2: #777777;
    --gray-light1: #555555;
    --gray: #3a3a3a;
    --gray-dark1: #2d2d2d;
    --gray-dark2: #1e1e1e;
  
    /* Reds */
    --red-light2: #ff5c5c;
    --red-light1: #dc3545;
    --red: #eb1616;
    --red-dark1: #a70f0f;
    
    /* Oranges */
    --orange-light1: #ff9d4d;
    --orange: #ff7707;
    --orange-dark1: #cc5f00;
    --orange-dark2: #803100;
    
    /* Yellows/Golds  */
    --yellow-light1: #ffda66;
    --yellow: #ffc107;
    --yellow-dark1: #d49b00;
    --yellow-dark2: #c87d00;
    --yellow-dark3: #b8980b;
    
    /* Greens */
    --green-light1: #5cd186;
    --green: #28a745;
    --greg-alt: #198754;
    --green-dark1: #1c7c38;

    /* Teals/Cyans */
    --cyan-dark: #00796b;
    --cyan: #009688;
    --teal: #0dcaf0;
    --teal-light: #53daf5;
    --teal-dark1: #077085;
    
    /* Blues */
    --blue-light2: #82cfff;
    --blue-light1: #4da3ff;
    --blue: #007bff;
    --blue-dark1: #357ab7;
    --blue-dark2: #0056b3;
    --blue-dark3: #0d2b45;  
    
    /* Purples */
    --purple-light2: #c98ee8;
    --purple-light1: #9b59b6;
    --purple: #690192;
    --purple-dark1: #2d043f;

    /* Hover/Focus Effects */
    --hover-blue: var(--blue-light1);
    --hover-red: var(--red-light2);
    --hover-green: var(--green-light1);
    --hover-orange: var(--orange-light1);
    --hover-purple: var(--purple-light1);
}
/* #endregion */

/* #region generalizations */
.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: margin-left 0.3s ease;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 25px;
    bottom: 50px;
    z-index: 99;
}
/* #endregion */

/* #region spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/* #endregion */

/* #region BUTTONS */
.btn {
    transition: .5s;
}
.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}   
.btn-small-padding {
    padding: 2px 6px !important; 
    font-size: 0.875rem; 
}
.btn.no-border {
    border: none;
    box-shadow: none;
}
.admin-menu-btn {
    min-width: 80px;
    width: 100%;        /* ensures all buttons in the stack are same width */
    max-width: 175px;   /* prevents crazy wide buttons if needed */
    min-height: 48px;
    color: var(--white);
}
/* orange buttons */
.btn-outline-orange {
    color: var(--orange-dark1);
    border-color: var(--orange-dark1);
    background-color: transparent;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-outline-orange:hover,
.btn-outline-orange:active,
.btn-outline-orange.active,
.show > .btn-outline-orange.dropdown-toggle,
.btn-check:checked + .btn-outline-orange,
.btn-check:active + .btn-outline-orange {
  color: var(--white);
  background-color: var(--orange-dark1);
  border-color: var(--orange-dark1);
}
.btn-outline-orange:focus,
.btn-check:focus + .btn-outline-orange {
  /* if you have --orange-rgb (e.g., 245,150,19), use it; otherwise hardcode rgba */
  box-shadow: 0 0 0 .25rem rgba(var(--orange-rgb, 245,150,19), .5);
}
.btn-outline-orange:disabled,
.btn-outline-orange.disabled {
  color: var(--orange-dark1);
  background-color: transparent;
  border-color: var(--orange-dark1);
  opacity: .65;
  pointer-events: none;
}
/* blue buttons */
.btn-outline-blue {
    color: var(--blue);
    border-color: var(--blue);
    background-color: transparent;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-outline-blue:hover,
.btn-outline-blue:active,
.btn-outline-blue.active,
.show > .btn-outline-blue.dropdown-toggle,
.btn-check:checked + .btn-outline-blue,
.btn-check:active + .btn-outline-blue {
  color: var(--white);
  background-color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:focus,
.btn-check:focus + .btn-outline-blue {
  box-shadow: 0 0 0 .25rem rgba(0, 123, 255, .5); 
}
.btn-outline-blue:disabled,
.btn-outline-blue.disabled {
  color: var(--blue);
  background-color: transparent;
  border-color: var(--blue);
  opacity: .65;
  pointer-events: none;
}
/* #endregion */

/* #region @media sizes */
@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }
    .sidebar.closed {
        margin-left: -250px;
    }
    .content {
        width: calc(100% - 250px);
    }
    .content.open {
        width: 100%;
        margin-left: 0;
    }
}
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }
    .sidebar.closed {
        margin-left: 0;
    }
    .content {
        width: 100%;
        margin-left: 0;
    }
}
@media (max-height: 950px) {
    .sidebar .mascot-img {
        max-height: 250px;
    }
}
@media (max-height: 900px) {
    .sidebar .mascot-img {
        max-height: 200px;
    }
}
@media (max-height: 825px) {
    .sidebar .mascot-img {
        max-height: 125px;
    }
}
@media (max-height: 750px) {
    .sidebar .mascot-container,
    .sidebar .mascot-img {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}
/* #endregion */

/* #region navbar & nav-link */
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--white);  /*- This sets text color in the sidebar */
    font-weight: 500;
    border-left: 3px solid var(--secondary);  /*- This sets border color on the left side. */
    border-radius: 0 30px 30px 0;
    outline: none;
}
.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--info);  /*- This sets text color on mouse hover  */
    background: var(--dark);
    border-color: var(--info);  /*- This sets border color on mouse hover  */
}
.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}
.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}
.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}
.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}
.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}
.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}
.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}
.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}
.content .navbar .dropdown-item {
    color: var(--light);
}
.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}
.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}
.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}
/* #endregion */

/* #region Date Picker */
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}
.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}
.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}
.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}
.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}
/* #endregion */

/* #region Progress Bar */
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}
/* #endregion */

/* #region sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: hidden;
    background: var(--secondary);
    transition: width 0.3s ease;
    z-index: 999;
}
.sidebar .mascot-img {
    max-height: 300px;
    max-width: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto;
}
.sidebar .mascot-container {
    display: block;
}

/*. Sidebar Toggler */
.sidebar-toggler {
    position: fixed;
    top: 50%;
    left: 250px; /* aligns to sidebar edge */
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--dark);
    color: var(--info);
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    transition: left 0.3s ease, opacity 0.3s ease;
}
.wrapper > .d-flex {
    flex: 1;
    display: flex;
    flex-direction: row;
}

/*. When sidebar is hidden */
.sidebar.closed {
    width: 0;
    overflow: hidden;
}
.sidebar-closed .site-wrapper {
    margin-left: 0;
}
.sidebar-closed footer {
    margin-left: 0;
}
.sidebar.closed ~ .sidebar-toggler {
    left: 0;
    opacity: 0.4;
}
.sidebar.closed ~ .sidebar-toggler:hover {
    opacity: 1;
}

/*. sidebar hover */
.sidebar-toggler:hover {
    opacity: 1;
}
/* #endregion */

/* #region Custom Tables */
.vertical-table thead th,
.vertical-table th {
    color: #b5b5b5; /* Same color as 'text-white-50' */
}
.horiz-table thead th {
    color: #b5b5b5; /* Same color as 'text-white-50' */
}
.compact-summary-table th {
    width: 120px !important;
    max-width: 190px;
    min-width: 120px;
    white-space: nowrap;
    font-weight: 500;
    padding-right: 25px !important;
    vertical-align: top;
}
.compact-summary-table td {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    vertical-align: top;
}
/* #endregion */

/* #region Toasts & Alerts */
.toast {
    z-index: 1055; /* Set a high z-index to ensure it appears on top */
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0.9;
}
.toast-container {
    z-index: 1050;
    max-width: 350px;
}
.alert {
    display: flex;
    align-items: center;
}
#statusMessage {
    display: block !important;
    width: 100%;
    min-height: 50px;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #000;
    color: #6c757d;  /* 'text-muted' color */
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    padding: 0.2rem;
    overflow-y: auto;
    white-space: pre-wrap; /* Allow wrapping */
    resize: none; /* Prevent resizing */
}
#statusMessage:hover {
    white-space: normal; /* Show full content on hover */
}
/* #endregion */

/* #region Badges */
.badge-group{
    background-color: var(--badge-bg, var(--bs-secondary)) !important;
    color: var(--badge-fg, var(--bs-white)) !important;
}

.badge-group[data-group="Tots"]            { --badge-bg: var(--bs-success);    --badge-fg:#111; }
.badge-group[data-group="Bantams"]         { --badge-bg: var(--blue);          --badge-fg:#111; }
.badge-group[data-group="Midgets"]         { --badge-bg: var(--bs-warning);    --badge-fg:#111; }
.badge-group[data-group="Juniors"]         { --badge-bg: var(--orange-dark1);  --badge-fg:#111; }
.badge-group[data-group="Intermediates"]   { --badge-bg: var(--bs-danger);     --badge-fg:#111; }

/* #endregion */

/* #region read-only form fields */
input[readonly] {
    background-color: var(--dark) !important;  /* Match background color of other inputs */
    color: #6c757d;  /* 'text-muted' color */
    font-style: italic;
    border: var(--dark) 1px solid;  /* Optional: match the border color of other fields */
}
/* #endregion */

/* #region Icons & Symbols (Google Material) */
/*. === Base Icon Class === */
.icon {
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-size: 24px; /* Default size */
    color: inherit;
}
/*. === Icon Size Modifiers === */
.icon.xsm {font-size: 14px; }
.icon.sm { font-size: 18px; }
.icon.md { font-size: 24px; } /* default */
.icon.lg { font-size: 36px; }
.icon.xl { font-size: 48px; }
/*. === Icon Style Modifiers === */
.icon.filled     { font-family: 'Material Icons'; }
.icon.outlined   { font-family: 'Material Icons Outlined'; }
.icon.rounded    { font-family: 'Material Icons Rounded'; }
.icon.sharp      { font-family: 'Material Icons Sharp'; }
.icon.twotone    { font-family: 'Material Icons Two Tone'; }
/*. === Material Icons Two-Tone Base === */
.icon.twotone {
    font-family: 'Material Icons Two Tone';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    color: var(--light); /* fallback if no color class is applied */
}
/*. === Theme Color Utilities === */
.icon.twotone.primary   { color: var(--primary); }
.icon.twotone.secondary { color: var(--secondary); }
.icon.twotone.success   { color: var(--success); }
.icon.twotone.info      { color: var(--info); }
.icon.twotone.warning   { color: var(--warning); }
.icon.twotone.danger    { color: var(--danger); }
.icon.twotone.white     { color: var(--white); }
.icon.twotone.dark      { color: var(--dark); }

.icon.icon-blue {
    color: var(--blue);
}
/* #endregion */

/* #region PRINT CUSTOMIZATIONS */
@media print {
    /*. Hide sidebar */
    .sidebar { 
        display: none;
    }
    /*. Adjust container to take full width */
    .container-fluid, .banner, .col-12 {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    /*. Format table and header */
    h5 {
        font-size: 18px; /* Adjust heading size for print */
        padding: 0;
    }
    .table {
        font-size: 14px; /* Smaller font for table data */
    }
    /*. Hide buttons and other unnecessary elements */
    .btn, .non-printable, .sidebar, .print-hidden,
    .sidebar-icon, .toggle-arrow, .floating-nav-icon {
        display: none !important;
    }
    /*. Additional print adjustments */
    body {
        color: #000; /* Ensure text is black for print */
        background: #fff; /* White background */
    }
     /*. remove left offset that the sidebar normally occupies */
    .content-wrapper,
    .content,
    .layout-page,
    .page-wrapper,
    .page-content,
    #content {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    /*. containers must span full page width */
    .container,
    .container-fluid {
        max-width: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /*. collapse Bootstrap gutters so nothing reserves space */
    .row { margin-left: 0 !important; margin-right: 0 !important; }
    [class*="col-"] { max-width: 100% !important; flex: 0 0 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
    /*. stop reserving sidebar space */
    .d-flex.flex-grow-1 { display: block !important; }
    /*. main column should span full width */
    .site-wrapper { margin-left: 0 !important; width: 100% !important; }
    .content-wrapper { margin-left: 0 !important; width: 100% !important; }
    /*. containers/gutters to full-bleed */
    .container, .container-fluid, .row { max-width: none !important; width: 100% !important; margin: 0 !important; }
    [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; padding: 0 !important; }
}
/* #endregion */

/* #region Shepherd Tour */
/*. Step Title */
.custom-shepherd-style .shepherd-title {
    font-weight: 700 !important;
    font-size: 1.3rem; /* Making title text slightly larger */
    color: var(--blue-dark3);
}
/*. Step Text */
.custom-shepherd-style .shepherd-text {
color: #ffffff !important;
}
/*. Custom Shepherd step style */
.custom-shepherd-style .shepherd-content {
background-color: var(--blue-dark3); /* navy blue background */
}
/*. Buttons */
.custom-shepherd-style .shepherd-button {
background-color: var(--cyan-dark); /* dark cyan */
color: white;
border-radius: 4px;
}
.custom-shepherd-style .shepherd-button:hover {
background-color: var(--teal);
}
.custom-shepherd-style .shepherd-button:not(:last-child) {
margin-right: 10px;
}
.shepherd-element.no-arrow .shepherd-arrow {
    display: none !important;
}
/* #endregion */

/* #region Pin Footer */
html, body {
    height: 100%;
    margin: 0;
}
  
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
  
.site-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    margin-left: 250px;
}
  
.content-wrapper {
    flex: 1;
}
  
footer {
    position: relative;
    z-index: 1;  
    transition: margin-left 0.3s ease;
}
/* #endregion */

/* #region horizontal lines */
.hr-no-dim {
    opacity: 1 !important;
}
/* #endregion */

/* #region centered headings with buttons */
.centered-heading-container {
    position: relative; 
    display: flex;      
    justify-content: flex-end; /* Pushes the button to the right */
    align-items: center; /* Vertically aligns items in the container */
}
.centered-heading {
    position: absolute;   
    left: 50%;
    transform: translateX(-50%); /* Move back by half its own width to truly center */
}
/* #endregion */

/* #region mascot image in Team Info */
.mascot-img-container {
    width: 100%;
    height: 220px; /* or whatever max you want */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: background-color: #eee; */
}
.mascot-image {  /* Do not confuse this with `mascot-img` in sidebar! */
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid #444;
    border-radius: .5rem;
}
/* #endregion mascot image */

/* #region text customizations */
.text-blue {
    color: var(--blue);
}
.text-red {
    color: var(--red);
}
.text-orange {
    color: var(--orange);
}
.text-yellow {
    color: var(--yellow);
}
.text-green {
    color: var(--green);
}
.text-purple {
    color: var(--purple);
}
.label-custom {
    /* color: var(--gray-light4); */
    color: var(--teal-light);
}
.text-small {
    font-size: 0.875rem;
}
/* #endregion */

/* #region backgrounds */
.bg-orange {
    background: var(--orange-dark1);
}
.bg-dark-orange {
    background: var(--orange-dark2);
}
.bg-dark-yellow {
    background: var(--yellow-dark3);
}
.bg-dark-teal {
    background: var(--teal-dark1);
}
.bg-blue {
    background: var(--blue-dark2);
}
/* #endregion */

/* #region modal dim & blur */
.modal-blur {
    filter: blur(2.5px) brightness(0.8) grayscale(0.15);
    pointer-events: none;  /* prevents clicks on the blurred modal */
    user-select: none;
    transition: filter 0.2s;
}
.modal-dim {
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.2s;
}
/* #endregion */

/* #region Sandbox */
/*. Sandbox banner */
.sandbox-alert{
    position: sticky;
    top: 0;
    display: flex;                  /* center text regardless of inner padding */
    justify-content: center;
    align-items: center;
    white-space: nowrap;            /* optional: prevent wrap */
  }
  /*. Ensure content scrolls under the banner */
  body.sandbox-active{ padding-top: 0 !important; }  /* or remove this rule entirely if present */
/* #endregion */  
