﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ------------------------------ */
/*----Customization Begins here----*/
/* ------------------------------ */

/* ------------------------------ */
/* Override Bootstrap container padding */
.container {
    padding-left: 145px;  /*Adjust as needed */
    padding-right: 145px;  /*Adjust as needed */
    max-width: 100%;  /*Ensure the container takes the full width */
}
/* Medium screens (tablets, 1520px and up) */
@media (max-width: 1520px) {
    .container {
        padding-left: 80px; /* Adjust as needed */
        padding-right: 80px; /* Adjust as needed */
    }
}
/* Medium screens (tablets, 768px and up) */
@media (max-width: 1024px) {
    .container {
        padding-left: 40px; /* Adjust as needed */
        padding-right: 40px; /* Adjust as needed */
    }
}
/* Small screens (phones, 576px and up) */
@media (max-width: 768px) {
    .container {
        padding-left: 5px; /* Adjust as needed */
        padding-right: 5px; /* Adjust as needed */
    }
}

/* ------------------------------ */
/* Toolbar */
.custom-toolbar-dropdown .nav-link {
    margin-top: 6px;
    padding-bottom: 0px !important;
}
.custom-toolbar-dropdown .dropdown-menu {
    margin-top: 6px;
}
.navbar {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.dropdown-item {
    padding-left: 16px !important;
}
.toolbar-button {
    color: black !important;
}
.toolbar-button:hover {
    color: #333 !important; /* Slightly darker color on hover */
}
/* Active button state */
.nav-link.active, .nav-item.show .nav-link, .nav-link:focus, .nav-link:active {
    color: #c97f7f !important;
}
/* Ensure the active state is applied correctly */
.nav-link.active .toolbar-button, .nav-item.show .toolbar-button, .toolbar-button:focus, .toolbar-button:active {
    color: #c97f7f !important;
}
/* Ensure the active state is applied correctly */
.nav-link:hover {
    color: blue !important;
}
.nav-link{
    padding-top: 0px !important;
}
.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #c97f7f; /* this is our brown */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: bold;
    line-height: 28px; /* Adjust this value to move the text down */
}
#culture-options {
    cursor: pointer;
}

/* ------------------------------ */
/*Footer*/
html, body {
    height: 100%;
    margin: 0;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content {
    flex: 1;
}
.footer {
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* ------------------------------ */
/*Loading Spinner*/
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
}

.mainDiv {
    overflow: auto;
}


/* -------------------------- */
/*CSI Button*/
.csi-button {
    padding: 5px 10px;
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #563f2b; /* brown Border color */
    background-color: #D89F6C; /* tan back color */
    color: black;
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition */
}
.csi-button:hover {
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #ac7f56; /* Medium brown Border color */
    background-color: #ebcfb5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
    color: black;
}
.csi-button:active {
    background-color: #004085; /* Even darker background on active */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Reset shadow on active */
}
.csi-button:disabled {
    background-color: #d3d3d3; 
    color: darkgrey; 
    border: 1px solid #a9a9a9; 
    cursor: not-allowed; 
    opacity: 0.6; 
    box-shadow: none; 
}

/* ----------------------------- */
/* VGRID STUFF */
.csi-GridContainer {
    background-color: ghostwhite;
    margin-bottom: 4px;
    overflow: auto; /* Ensure the container can scroll */
}
thead {
    background-color: ghostwhite;
}
.csi-editablecell {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.7); /* White with 80% opacity */
}
.csi-editablecell:hover {
    cursor: pointer;
    border: 4px solid #007bff;
    background-color: #D7FFFF; /* medium azure */
}
.csi-tablerow:hover {
    background-color: #dfe9fb !important;
}
.csi-tablerow {
    background-color: #fefeff;
}
.csi-alt-tablerow {
    background-color: #f3f3f4;
}
.csi-alt-tablerow:hover {
    background-color: #dfe9fb !important;
}
.csi-gridradiolabel {
    padding-left: 3px;
    padding-right: 3px;
}
.csi-editingcell {
    background-color: white !important; /* Ensure the background color is white */
    outline: 1px solid blue; /* Thinner red outline */
    outline-offset: -2px; /* Move the outline closer to the element */
    border-radius: 5px; /* Rounded corners */
    padding: 2px; /* Add some padding to ensure the outline is not cut off */
    overflow: visible; /* Ensure the outline is fully visible */
    z-index: 1; /* Ensure the outline is on top of other elements */
}
.csi-disabledCell {
    background-color: #e9e9e9 !important;
    opacity: 0.6;
}
.deleted {
    text-decoration: line-through;
    color: red;
}
.csi-rowdirty {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.7); /* White with 80% opacity */
    line-height: 29px;
    position: relative;
    border: 1px solid lightgrey; /* Combine border-color and border-width */
    border-right: 4px solid #97d8ff !important; /* Add a right border with a candy blue color */
}

/* -------------------------- */
/* VGRID custom dropdown */
.vgrid-dropdown {
    display: inline-block;
    width: 100%; /* Ensure the dropdown takes the full width of the cell */
    padding: 2px;
}
.vgrid-dropdown-toggle {
    padding: 2px;
    border-radius: 5px; /* Rounded corners */
    border: 0px solid #563f2b;
    background-color: rgba(255, 255, 255, 0.01); /* White with 80% opacity */
    /*color: black;*/
    cursor: pointer;
    width: 100%; /* Ensure the button takes the full width of the dropdown */
    text-align: left;
    /*box-sizing: border-box;*/ /* Include padding and border in the element's total width and height */
    height: 38px;
}
.vgrid-dropdown-toggle:hover,
.vgrid-dropdown-toggle:focus {
    border-radius: 5px; /* Rounded corners */
    /*border: 1px solid #ac7f56;*/ /* Medium brown Border color */
    /*background-color: #ebcfb5;*/
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
    /*color: black;*/
}
.vgrid-dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;*/
}
.vgrid-dropdown-toggle:disabled {
    /*copied from csi-button:disabled*/
    background-color: #e9e9e9 !important;
    opacity: 0.8;
    color: black;
    border: 1px solid #a9a9a9;
    cursor: not-allowed;
    box-shadow: none;
}

.vgrid-readonly-dropdown-toggle {
    padding: 2px;
    border-radius: 5px; /* Rounded corners */
    /*border: 1px solid #563f2b;*/ /* brown Border color */
    /*background-color: #D89F6C;*/ /* tan back color */
    color: black;
    cursor: default;
    width: 100%; /* Ensure the button takes the full width of the dropdown */
    text-align: left;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    height: 38px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    /*border: 1px solid #ccc;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    width: 100%; /* Ensure the menu takes the full width of the dropdown */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
.dropdown-menu .dropdown-item {
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #f1f1f1;
}
.vgrid-dropdown .dropdown-menu {
    width: auto !important; /* Allow JavaScript to control the width */
    max-width: none !important; /* Prevent CSS from capping the width */
    white-space: nowrap; /* Prevent text wrapping */
    position: absolute;
    z-index: 1050;
    /*overflow: visible !important;*/
    max-height: 280px;
    overflow-y: auto;
}

/* for dropdown select highlighted option */
.highlighted {
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
}

/* ----------------------------- */
/* Right Align Text -- used for row Counts */
.flex-right {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap; 
    gap: 2px; /* Add space between buttons */
    white-space: nowrap;
}

/* ----------------------------- */
/* Autocomplete */
.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}
/* Prevent horizontal scrollbar */
.ui-autocomplete.ui-widget {
    overflow-y: auto;
    overflow-x: hidden;
}
/*#btnStationDropdown:disabled {
    background-color: #d3d3d3;
}
*/
/*Modal Dialog*/
.modal-fade {
    background-color: #d3d3d3; /* Light background color */
}

.modal-body {
    overflow: hidden; /* Prevent the modal content from overflowing */
    overflow-y: hidden; /* Prevent the modal content from overflowing */
}

#missedSpotsModal .modal-body {
    overflow: hidden !important;
}
#weekSelectorModal .modal-body {
    overflow: hidden !important;
}
#pledgeByEventSelectorModal .modal-body {
    overflow: hidden !important;
}

/* ---------------------------------- */
/* Date picker */
.calendar-widget {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
}
.calendar-table th, .calendar-table td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 5px;
    cursor: pointer;
}
.calendar-table .other-month {
    background-color: #f0f0f0;
}
.calendar-table .highlight-last-sunday {
    background-color: #ffeb3b !important;
    color: #000 !important;
}
.calendar-table .highlight-today {
    color: #000 !important;
    font-weight: 600;
}
.calendar-table .highlight-current {
    background-color: #add8e6 !important;
    color: #000 !important;
    font-weight: 800;
}
.calendar-table .highlight-other-month {
    color: blueviolet;
}
.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.prev-month, .next-month {
    cursor: pointer;
    font-size: 1.5em;
}
.month-label {
    font-size: 1.2em;
    font-weight: bold;
}
#broadcastCalendar {
    display: none; /* Ensure this is overridden by .show() */
    position: absolute;
    z-index: 1000; /* Ensure it appears above other elements */
}


/* ---------------------------------- */
/* Time picker */
.time-picker-widget {
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.time-picker select {
    padding: 5px;
    font-size: 14px;
}

.time-picker button {
    margin-left: 5px;
    padding: 5px 5px;
    font-size: 14px;
    cursor: pointer;
}


/* -------------------------- */
/*Posting Key bar Container*/
.csi-iconkey {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 10px;
    align-items: center; /* Align items vertically */
    padding: 10px; /* Add some padding */
    background-color: gainsboro;
    border: 1px solid #ddd; /* Optional: Add a border */
    border-radius: 5px; /* Optional: Add rounded corners */
    font-size: 0.8rem; /* Smaller font size */
}
.csi-iconkey {
    padding: 2px !important;
    justify-content: center;
}
.csi-iconkey i {
    display: flex;
}
.csi-keydesc {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 7px;
    font-weight: 500;
    padding-left: 5px;
}
.icon-label-pair {
    display: inline-flex;
    align-items: center;
    margin-right: 10px; /* Adjust spacing between pairs as needed */
}

.icon-label-pair p {
    margin: 0 0 0 5px; /* Adjust spacing between icon and label as needed */
}

.hidden-input-style {
    border: none !important;
    background: transparent !important;
    color: inherit;
    box-shadow: none !important;
    outline: none !important;
    padding: 0;
    margin: 0;
    width: auto;
    font: inherit;
    /*pointer-events: none;*/ 
}
#siteMessagesEditor textarea {
    width: 100%;
    min-height: 48px;
    resize: vertical;
    white-space: pre-wrap;
    word-break: break-word;
}
/* Make the site message modal wider */
.modal-dialog.modal-message {
    max-width: 600px; /* Adjust as needed, e.g., 700px or 800px */
    width: 90%;
}


/* Cleaning up Inline Styles - for CSP security */
.powered-by-logo {
    width: 170px;
    max-height: 40px;
}
.privacy-policy-text {
    font-size: small; 
    margin-left: 10px;
}
.navbar-brand-logo {
    height: 60px; 
    max-width: 200px;
}
.nav-button-font {
    font-size: 1.5rem;
}
.navbar-input-group {
    width: 200px;
}

/*Station Select Dropdown*/
.vscomp-ele {
    border-radius: 0.375rem !important; /* Bootstrap 5 default */
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    min-height: 38px !important; /* Match .form-control height */
    font-size: 1rem !important;
    box-shadow: none !important;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.vscomp-toggle-button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.vscomp-value {
    color: #212529 !important;
    font-size: 1rem !important;
}
.vscomp-arrow {
    color: #495057 !important;
    /*right: 0.75rem !important;*/
}
.vscomp-option {
    font-size: 1rem !important;
    padding: 0.375rem 0.75rem !important;
}

/*TTP 121 - Station Search Box - 2 X's*/
/* Hide browser's native clear (X) button in search inputs */
.vscomp-search-input::-webkit-search-clear-button {
    display: none;
}
.vscomp-search-input::-ms-clear {
    display: none;
}
.vscomp-search-input::-o-clear {
    display: none;
}
.vscomp-search-input::-moz-clear {
    display: none;
}
.vscomp-search-input::-webkit-search-cancel-button {
    display: none;
}
/*End Station Select Dropdown*/


.account-dropdown-menu {
    min-width: 250px;
}

.search-table-div {
    max-height: 300px; 
    overflow-y: auto;
}
.display-none {
    display: none;
}
.weekselector-container {
    min-height: 200px;
}
.pledgeByEventselector-container {
    min-height: 200px;
}
.citation-textarea {
    height: 250px;
}
.toastr-logout-link {
    color: #fff;
    text-decoration: underline;
}

/*VGrid inline styles moved out for CSP security policy*/
.time-picker {
    display: flex;
    align-items: center;
    gap: 5px;
}
.time-picker select {
    width: 52px;
    height: 30px;
}
.time-picker #period {
    width: 58px;
}
.time-picker #setTime {
    height: 30px;
    padding: 0 10px;
}
.vgrid-header-rotated {
    display: flex;
    align-items: center; /* Vertically center content */
    /*justify-content: center;*/ /* Optionally, horizontally center as well */
    justify-content: flex-start;
    width: 130px; /* how wide before wrap */
    word-break: break-word;
    white-space: normal;
    font-weight: normal;
    line-height: 1.1;
    background: transparent;
    padding-left: 0px; /* moves it up */
    padding-top: 30px; /* moves it right/left */
    text-align: left;
    transform-origin: top left;
    height: 100%; /* Ensure it takes full height of the header cell */
    position: relative;
    top: 133px; /* move down */
    left: -50px;
}

/* Cute Little Spinner styles */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
.spinner:after {
    content: " ";
    display: block;
    width: 24px;
    height: 24px;
    margin: 1px;
    border-radius: 50%;
    border: 3px solid #3498db;
    border-color: #3498db transparent #3498db transparent;
    animation: spinner-dual-ring 1.2s linear infinite;
}
@keyframes spinner-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cute Little ellipsis-loader styles */
.ellipsis-loader {
    display: inline-block;
    width: 2em;
    text-align: left;
    font-size: 1.5em;
    vertical-align: middle;
}
.ellipsis-loader span {
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-right: 0.15em;
    background: #3498db;
    border-radius: 50%;
    opacity: 0.7;
    animation: ellipsis-bounce 1s infinite;
}
.ellipsis-loader span:nth-child(2) {
    animation-delay: 0.2s;
}
.ellipsis-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ellipsis-bounce {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }

    40% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Grey out expired Dashboard button and prevent interaction */
.dashboard-expired {
    color: #888 !important;
    cursor: not-allowed;
    opacity: 0.6;
}