/*style.css*/

@font-face {
    font-family: 'Intro';
    src: url('/fonts/Intro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Intro', sans-serif;
    background-color: black;
    color: white;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5vw;
    margin-top: 25px;
    margin-bottom: 35px;
    position: relative;  /* For absolute positioning of title */
}

.back-icon, .account-icon {
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.2s ease;
    z-index: 1;
}

.back-icon:hover, .account-icon:hover {
    opacity: 0.8;  /* Change this from color to opacity */
    transform: scale(1.05);  /* Optional: add a subtle sscale effect */
}

.account-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: block;
    padding: 0;  /* Add this */
    background: none;  /* Add this */
    object-fit: contain;  /* Add this */
    margin-top: -4px; 
}

.account-icon:hover {
    color: #007bff;
}

#accountView {
    width: 100%;
    min-height: 100vh;
    background: black;
}

#accountView .header-container {
    background: black;
}

#accountView #account-header {
    color: white;
    opacity: 1;
}

#accountView .account-back-icon {
    color: white;
    opacity: 1;
}

#accountView .account-back-icon:hover {
    color: #007bff;
}

.custom-tabs {
    background-color: black;
    width: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
  }
  
  .custom-tabs .nav-item {
    flex: 1;
    width: 33.333%; /* Force each tab to be exactly one third */
  }
  
  .custom-tabs .nav-link {
    width: 100%;
    text-align: center;
    color: white !important; /* Make unselected text white */
    opacity: 0.8; /* Slightly dimmed when not selected */
    padding: 0.75rem 0.5rem; /* Increase padding for larger touch targets */
    font-size: 1rem;
    border: none; /* Remove default border */
    background: transparent !important; /* Remove default background */
  }
  
  .custom-tabs .nav-link:hover {
    opacity: 1;
    border: none;
  }
  
  .custom-tabs .nav-link.active {
    color: white !important;
    opacity: 1;
    font-weight: bold;
    border-bottom: 2px solid white !important; /* White line under active tab */
    background: transparent !important;
  }
  
  /* Mobile specific styles */
  @media (max-width: 768px) {
    .custom-tabs .nav-link {
      font-size: 0.9rem; /* Slightly larger than before */
      padding: 0.75rem 0.25rem;
    }
    
    .tab-text {
      display: block;
      white-space: nowrap;
    }
  }
  
  /* Active tab styling */
  .custom-tabs .nav-link.active {
    font-weight: bold;
  }

.account-back-icon {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
    z-index: 1;
}

.account-back-icon:hover {
    color: #007bff;
}

/* Smooth transitions between views */
#bookingView, #accountView {
    transition: opacity 0.3s ease;
}

#accountPage {
    padding: 0;
}

.fc-event-booked {
    color: green;
    font-weight: bold;
    margin-top: 5px;
    transition: opacity 0.3s ease; 
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#page-wrapper {
    margin-left: 30px;
    margin-right: 30px;
}

#sections > section > div.content-wrapper {
    background-color: black;
}

.page-section .content {
    background-color: black;
}

#page-header {
    color: white;
    margin-bottom: 30px;
    margin-top: 30px;
}

.fc-daygrid-event-harness .fc-event {
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease-out;
    margin-bottom: 10px;
}

.fc-event-expanded {
    padding: 15px;
}

.fc-event:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgb(236, 236, 236);
    border: 1px solid rgb(0, 0, 0);
    cursor: pointer;
}

.fc-day-today, .fc .fc-list-sticky .fc-list-day>* {
    color: black;
}

.fc, .fc *, .fc :after, .fc :before {
    border-radius: 8px !important;
}

.fc-list-event-time, .fc-list-event-graphic, .fc .fc-list-table tbody>tr:first-child th {
    display: none;
}



/* FullCalendar title, day numbers, and event text */
.fc-event-title,
.fc-event-time,
.fc-event-trainer {
    color: black !important;
}

.fc-toolbar-title {
    margin-top: 10px !important;
    color: white;
}

/* FullCalendar day grid and time grid */
#calendar {
    background-color: black;
    color: white;
}

.fc-col-header-cell {
    background-color: black;
    color: white;
}

.fc-daygrid-day, .fc-timegrid-slot {
    background-color: black;
    border: 1px solid white;
    color: white;
}

.fc-daygrid-day:hover {
    background-color: rgb(20, 20, 20);
}

.fc-day-today {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Time labels and event time slots */
.fc-timegrid-axis-cushion,
.fc-timegrid-slot-lane {
    background-color: black;
    color: white;
}

/* Style for FullCalendar header buttons */
.fc-button {
    background-color: white;
    color: black;
    transition: background-color 0.2s ease;
}

.fc-button:hover {
    background-color: #f0f0f0;
    color: black;
}

/* Modal styling with animations */
.modal-content {
    background-color: white;
    color: black;
    border-radius: 5px;
}

.modal-header,
.modal-footer {
    background-color: white;
    color: black;
    border-radius: 5px;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
    position: fixed;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-dialog {
    z-index: 1050;
}


/* Day of week navigation styling - for all screen sizes */
#dayOfWeekNav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    color: white;
    padding-left: 5vw;
    padding-right: 5vw;
}

/* Show and style in list view */
.fc-view-listDay ~ #dayOfWeekNav,
.fc-list-view ~ #dayOfWeekNav,
.fc .fc-list-table ~ #dayOfWeekNav,
[data-view='listDay'] ~ #dayOfWeekNav {
    display: flex !important;
    justify-content: space-between; /* This will space items evenly */
    align-items: center;
    padding: 0 10px;
}

#dayOfWeekNav span {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: transparent;
    color: white;
    flex: 0 0 40px; /* Prevent span from growing/shrinking */
}

#dayOfWeekNav span.selected-day {
    border-color: white;
    color: #ffffff;
    animation: pulse 0.3s ease;
}

#dayOfWeekNav span:hover {
    border-color: #ffffff;
    color: #ffffff;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Spinner animation */
.spinner-border {
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Message animations */
.success-message, .error-message {
    opacity: 0;
    transform: translateY(-5px);
    animation: messageSlide 0.3s ease forwards;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media only screen and (max-width: 768px) {
    #calendar > div.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr > div:nth-child(3) > button {
        display: none;
    }
    #addClassButton, #refreshButton {
        display: none !important;
    }

    #calendar > div.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr > div:nth-child(1) > button {
        display: none;
    }

    .fc .fc-toolbar-title {
        font-size: 1.4rem;
    }

    .btn-group {
        display: none;
    }

    #page-header {
        text-align: center;
    }

    .header .header-announcement-bar-wrapper {
        display: none;
    }

    #footer-sections {
        display: none;
    }
}

.sqs-announcement-bar-dropzone, .gdpr-cookie-banner.full-styling.BOTTOM_LEFT {
    display: none;
}

.cookie-banner-manager {
    display: none;
}

.fe-64b7bdde3764ea0af3e2c4de {
    inset-padding: 0;
}

.fc-event-trainer {
    font-family: 'Intro', sans-serif;
    color: white;
}

#editClassForm > div.mb-3 > label:nth-child(5) {
    margin-top: 20px;
}

#addClassHeader {
    margin-bottom: 20px;
}

#addClassButton:hover,
#refreshButton:hover {
    background-color: #404040;
}

.fe-64aebef44df12e0d20da212f {
    --inset-padding: 0;
}

#successMsg {
    color: green;
}

#errorMsg {
    color: red;
}

#recurringPeriodDiv {
    display: none;
}

#addClassButton,
#refreshButton {
    margin-bottom: 0.75em;
    margin-right: 0.75em;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
    background-color: #1a1a1a;
    border: none;
    color: white;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition-duration: 0.1s;
    cursor: pointer;
}

#calendar-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    padding-left: 4vw;
    padding-right: 4vw;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
  }
  
  @keyframes spinner-border {
    100% {
      transform: rotate(360deg);
    }
  }
  
  .calendar-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    pointer-events: none; 
    width: auto;
  }

  .text-primary {
    color: #007bff !important;
  }

  .fc-list-empty {
    position: relative;
    min-height: 150px; /* Adjust as needed */
  }

#calendar {
    width: 100%;
}

.fc-view-harness {
    min-height: 240px;  /* Adjust value based on your needs */
    position: relative;
  }

 .fc-list-event {
    background: none !important;
    overflow: hidden !important;

}

#calendar > div.fc-view-harness.fc-view-harness-passive > div > div > table > tbody > tr:nth-child(3) > td.fc-list-event-graphic {
    display: none;
}

.fc-list-table {
    background: black !important;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0;
}

/* Handle the padding at the cell level */
.fc-list-table .fc-list-event td {
    padding: 8px !important;
}

/* Ensure rounded corners for list view events */
.fc-list-table tr.fc-list-event td:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.fc-list-table tr.fc-list-event td:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Maintain white background on all cells */
.fc-list-table tr.fc-list-event td {
    background: white !important;
}

#calendar > div.fc-view-harness.fc-view-harness-passive > div > div > table > tbody > tr:nth-child(2) {
    background-color: black;
}

/* Remove any table-specific styling that might interfere */
.fc .fc-list-table tbody > tr:hover {
    background-color: white !important;
}

.fc-list-event:last-child {
    margin-bottom: 0 !important;
}

.fc-list-event-main {
    width: 100% !important;
    box-sizing: border-box;
}

.fc-list-event-graphic,
.fc-list-event-time {
    display: none !important;
}

  #loadingSpinner {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    pointer-events: none;
}

#loadingSpinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid #fff; /* White border */
    border-right-color: transparent;
    opacity: 1; /* Ensure it's fully visible */
}

  .fc .fc-list-table {
    min-height: 100px;
  }

  .fc-list-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
    border: none !important;
}

/* Remove default table borders */
.fc-list-table tbody tr td {
    border: none !important;
}

  .fc .fc-list-day > * {
    margin-top: 0 !important;
  }

.calendar-loading .fc-list-empty {
    display: none !important;
  }

.fc .fc-daygrid-day-frame {
    border: 1px solid #ddd;
    padding: 5px;
}

.fc-event-main {
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-left: 0px;
    padding: 15px;
    min-height: 100px;

  }

.fc-event-title {
    font-family: 'Intro', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    white-space: normal;
    color: white;
}

.fc-event-time {
    font-size: 1.1rem;
    font-weight: bold;
    white-space: normal;
    color: white;
}

.fc-event-start-time {
    font-family: 'Intro', sans-serif;
    color: black;
}

.fc-event-details {
    transition: opacity 0.3s ease;
  }

  /*GYM SELECTION*/

  .gym-logo-container {
    margin-bottom: 20px;
  }
  
  .gym-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
  }
  
  .gym-logo-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
  }
  
  .gym-logo-item.selected {
    border-color: #ffffff;
    transform: scale(1.05);
  }
  
  .gym-logo-item:hover {
    transform: scale(1.05);
  }
  
  .gym-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: rgb(0, 0, 0);
    padding: 10px;
    }

    .gym-logo-item svg {
        width: 100%;
        height: 100%;
        background-color: rgb(0, 0, 0);
    }

    .favorite-icon {
        transition: all 0.3s ease;
    }
    
    .favorite-icon:hover {
        transform: scale(1.2);
    }
  
  @media only screen and (max-width: 768px) {
    .gym-logo-grid {
      grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
      gap: 10px;
    }
  
    .gym-logo-item {
      width: 80px;
      height: 80px;
    }
  }

  /* Override Bootstrap button classes */
.fc-dayGridWeek-button.btn.btn-primary,
.fc-dayGridMonth-button.btn.btn-primary,
.fc-listDay-button.btn.btn-primary {
    background-color: transparent !important;
    border-color: transparent !important;
    color: white !important;
    font-weight: normal !important;
    text-transform: uppercase !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Hover state */
.fc-dayGridWeek-button.btn.btn-primary:hover,
.fc-dayGridMonth-button.btn.btn-primary:hover,
.fc-listDay-button.btn.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Active/selected state */
.fc-dayGridWeek-button.btn.btn-primary.active,
.fc-dayGridMonth-button.btn.btn-primary.active,
.fc-listDay-button.btn.btn-primary.active {
    background-color: white !important;
    border-color: white !important;
    color: black !important;
    font-weight: bold !important;
}

/* Active hover state */
.fc-dayGridWeek-button.btn.btn-primary.active:hover,
.fc-dayGridMonth-button.btn.btn-primary.active:hover,
.fc-listDay-button.btn.btn-primary.active:hover {
    background-color: #f0f0f0 !important;
    color: black !important;
}

/* Make the day header more prominent */
.fc .fc-daygrid-day-header {
    padding: 10px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 5px !important;
}

/* Give some spacing between days */
.fc .fc-daygrid-day {
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure events are fully visible */
.fc-daygrid-event {
    white-space: normal !important;
    margin: 5px 0 !important;
}

/* Add some padding around events */
.fc-daygrid-day-events {
    padding: 5px 10px !important;
}

/* Event text colors for week/month views */
.fc-daygrid-event,
.fc-daygrid-event-harness {
    color: black !important;
}

.fc-daygrid-event .fc-event-title,
.fc-daygrid-event .fc-event-time,
.fc-daygrid-event .fc-event-main,
.fc-daygrid-event .fc-event-trainer,
.fc-daygrid-event .fc-event-description {
    color: black !important;
}

/* Ensure list view maintains its black text */
.fc-list-event-title,
.fc-list-event-description {
    color: black !important;
}

/* Stack content vertically ONLY in week/month grid views */
.fc-dayGridWeek-view .fc-event-main,
.fc-dayGridMonth-view .fc-event-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.fc-dayGridWeek-view .fc-event-main > div,
.fc-dayGridMonth-view .fc-event-main > div {
    width: 100% !important;
    text-align: left !important;
}

/* Add padding in grid views */
.fc-dayGridWeek-view .fc-event,
.fc-dayGridMonth-view .fc-event {
    padding: 8px !important;
    margin-bottom: 8px !important;
}

.week-nav-btn {
    color: white; 
    border: none;
    background: transparent;
    padding: 5px 10px;
    cursor: pointer;
}

.week-nav-btn i {
    color: white;         
}

/* Style list event cells to maintain layout */
.fc-list-event > td {
    width: 100% !important;
    display: flex !important;
    padding-left: 8px !important;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 2px;
}

/* Add specific styling for our content */
.fc-event-main > div:first-child {
    flex: 0 0 auto !important;
    min-width: 100px !important;
}

.fc-list-event .fc-event-main > div:first-child {
    padding-left: 10px !important;
}

.fc-event-main > div:last-child {
    flex: 1 !important;
    min-width: 0 !important; /* This prevents flex item from overflowing */
}

/* Ensure times stack vertically */
.fc-event-start-time {
    margin-bottom: 5px;
}

/* Hide the colored dot and time elements in list view */
.fc-list-table .fc-list-event-dot,
.fc-list-table .fc-list-event-time {
    display: none !important;
}

.fc .fc-list-day-cushion, .fc .fc-list-table td {
    padding: 0px !important;
}



.message-container {
    min-height: 24px;
    transition: all 0.3s ease-in-out;
}

.message-container .success-message {
    color: green;
    animation: simpleFade 0.3s ease-in-out;
}

.message-container .error-message {
    color: red;
    animation: simpleFade 0.3s ease-in-out;
}

/* When two modals are active */
body.modal-open .modal.show + .modal.show {
    z-index: 1060 !important;
}

body.modal-open .modal.show + .modal.show + .modal-backdrop.show {
    z-index: 1055 !important;
}

/* Ensure the backdrop doesn't block second modal */
.modal-open .modal-backdrop.show {
    opacity: 0.5 !important;
}

/* Style for active modal */
.modal.active-cancel-modal {
    z-index: 1060 !important;
}

/* Make sure modal content is clickable */
.modal-dialog {
    z-index: 10; /* Relative to parent modal */
    position: relative;
}


.class-skeleton {
    opacity: 0.7;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 80px;
    margin-bottom: 10px;
  }
  
  @keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .direct-access-button {
    border: 3px solid gold !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
    animation: pulse-gold 2s infinite !important;
  }
  
  @keyframes pulse-gold {
    0% {
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
      box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
    100% {
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
  }