body {
    font-family: -apple-system, BlinkMacSystemFont, "Graphik Web", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Remove blue background on active dropdown items */
.dropdown-item:active {
    background-color: transparent !important;
}

/* Circle hover effect for buttons */
/* Make buttons perfectly circular */
.circle-hover {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    padding: 0;
    transition: background 0.2s;
}
/* Add hover effect */
.circle-hover:hover,
.circle-hover:focus {
    background: #e0e0e0 !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
/* Remove black outline/border when clicked/focused */
.circle-hover:focus,
.circle-hover:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
/* Ensure icon is centered */
.circle-hover i {
    z-index: 2;
    position: relative;
    margin: 0;
}

/* Right slide-in modal (Bootstrap 5) */
.modal.modal-right .modal-dialog {
    position: fixed;
    margin: 0;
    right: 0;
    top: 0;
    height: 100%;
    transform: translateX(100%);
    transition: transform .3s ease-out;
    max-width: 600px;
    width: 100%;
  }
.modal.modal-right .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}
.modal.modal-right.show .modal-dialog {
    transform: translateX(0);
}
@media (max-width: 576px) {
    .modal.modal-right .modal-dialog {
        max-width: 100vw;
    }
}

/* ********************************************************************
   LOGIN
   ******************************************************************** */
.login-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 40px 15px 15px 15px;
}

.login-form .logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.login-form .logo {
    width: 80%;
    height: auto;
}

.login-form .logo-only {
    filter: grayscale(1);
}

.login-form .form-group {
    margin-bottom: 25px;
}   

.login-form .form-control {
    padding: 12px;
    border-radius: 4px;
    background-color: #f5f5f5;
    border: none;
}

.login-form .form-control::placeholder {
    color: #a0a0a0;
}

.login-form .form-label {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 8px;
}

.login-form .input-group button {
    border-radius: 4px;
    background-color: #f5f5f5;
}

.login-form .btn-primary {
    background-color: #4285f4;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
}

.login-form .forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.login-form .forgot-password a {
    color: #7f7f7f;
    text-decoration: none;
}

.login-form .forgot-password a:hover {
    color: #4285f4;
    text-decoration: none;
}

.login-form .terms-text {
    margin-top: 20px;
    margin-bottom: 20px;
}

.login-form .terms-text a {
    color: #4285f4;
    text-decoration: none;
}


/* ********************************************************************
   SIDEBAR
   ******************************************************************** */
/* Sidebar toggle behavior */
#wrapper {
    overflow-x: hidden;
    position: relative;
}

.sidebar {
    width: 230px;
    position: fixed;
    top: 0;
    left: -230px;
    height: 100vh;
    z-index: 999;
    transition: all 0.3s;
}

#wrapper.toggled .sidebar {
    left: 0;
}

.content-area {
    width: 100%;
    transition: all 0.3s;
    margin-left: 0;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

#wrapper.toggled .content-area {
    margin-left: 230px;
}

/* For medium devices and up - sidebar always visible */
@media (min-width: 768px) {
    .sidebar {
        left: 0;
    }
    
    .content-area {
        width: calc(100% - 230px); /* Adjust width to account for sidebar */
        margin-left: 230px;
    }
    
    #menuToggle {
        display: none;
    }
}

/* For mobile devices - push content instead of overlay */
@media (max-width: 767.98px) {
    /* No overriding styles for toggled content-area - let it push */
    #wrapper.toggled .content-area {
        margin-left: 240px; /* Keep this to push content */
    }
}

/* Sidebar styles */
.sidebar {
    background: #f8f9fa;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-nav .nav-link {
    color: #666;
    font-weight: 500;
    padding: 8px;
    border-radius:  4px;
}

.sidebar-nav .nav-link span {
    font-size: smaller;
}

.sidebar-nav .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar-nav .nav-link.active {
    color: #4885ff;
    background-color: #edf2fb;
}

/* Mobile-specific sidebar adjustments and mobile calendar improvements */
@media (max-width: 767.98px) {
}


/* ********************************************************************
   HEADER & FILTERS
   ******************************************************************** */
header {
    padding: 16px 0px;
}

header .container-actions {
    min-height: 40px;
}
header .container-filter {
    background-color: #f5f5f5; /* Light gray for inactive state */
    color: #212529;
}

header button.container-filter b {
    font-weight: 500;
}

/* For the filter button - blue when active */
header .container-filter.active,
header .container-filter[aria-expanded="true"] {
    background-color: #f0f4ff;
    color: #4885ff;
    border: none;
}

header .filter-container .dropdown-menu {
    max-height: 510px;
    overflow-y: auto;
}

header .booking-type-options,
header .plan-options,
header .team-options,
header .role-options,
header .resource-options,
header .item-type-options,
header .status-options {
    margin: 4px 0;
}

/* Accommodate for long names in dropdowns */
header .resource-options {
    min-width: 295px;
}
header .team-options {
    min-width: 295px;
}

header .booking-type-options .form-check,
header .plan-options .form-check,
header .team-options .form-check,
header .role-options .form-check,
header .resource-options .form-check,
header .item-type-options .form-check,
header .status-options .form-check {
    display: flex;
    align-items: center;
    min-height: 48px;
    transition: background-color 0.2s ease;
    padding-right: 16px;
    padding-left: 38px;
}

header .booking-type-options .form-check:hover,
header .plan-options .form-check:hover,
header .team-options .form-check:hover,
header .role-options .form-check:hover,
header .resource-options .form-check:hover,
header .item-type-options .form-check:hover,
header .status-options .form-check:hover {
    background-color: #f5f5f5;
}

header .booking-type-options .form-check-input,
header .plan-options .form-check-input,
header .team-options .form-check-input,
header .role-options .form-check-input,
header .resource-options .form-check-input,
header .item-type-options .form-check-input,
header .status-options .form-check-input {
    margin-right: 18px;
    outline: 1px solid #333333;
    border-radius: 0;
}

header .booking-type-options .form-check-input:checked,
header .plan-options .form-check-input:checked,
header .team-options .form-check-input:checked,
header .role-options .form-check-input:checked,
header .resource-options .form-check-input:checked,
header .item-type-options .form-check-input:checked,
header .status-options .form-check-input:checked {
    background-color: #4885ff;
    border-color: #4885ff;
    outline: none; /* Remove outline when checked */
}

/* Add blue color to label when checkbox is checked */
header .booking-type-options .form-check-input:checked + .form-check-label,
header .plan-options .form-check-input:checked + .form-check-label,
header .team-options .form-check-input:checked + .form-check-label,
header .role-options .form-check-input:checked + .form-check-label,
header .resource-options .form-check-input:checked + .form-check-label,
header .item-type-options .form-check-input:checked + .form-check-label,
header .status-options .form-check-input:checked + .form-check-label {
    color: #4885ff;
}

/* not use by now */
header button:hover {
    background-color: #3367d6;
}


/* ********************************************************************
   LIST & TEAMS & USERS
   ******************************************************************** */

.table-responsive {
    /* overflow: visible; /* Show dropdowns menus */
    min-height: 400px; /* Ensure filters dropdowns are visible */
}

.table-responsive td,
.table-responsive th {
    height: 48px;
}

.table-responsive th {
    font-weight: 600;
}

.table-hover tbody tr.no-hover td:hover {
    box-shadow: none !important; /* Remove hover when no results */
}

/* Clickable row that opens view modal */
.booking-row, .team-row, .user-row {
    cursor: pointer;
}

/* User row badges for admin, member and user */
.badge.text-bg-admin,
#viewUserDetailsList .badge.text-bg-admin {
    background-color: #fadec9 !important;
    color: #49290e;
}

.badge.text-bg-member,
#viewUserDetailsList .badge.text-bg-member {
    background-color: #fdecc8 !important;
    color: #49290e;
}

.badge.text-bg-user,
#viewUserDetailsList .badge.text-bg-user {
    background-color: #d3e5ef !important;
    color: #49290e;
}

/* Booking table for mobile view */
@media (max-width: 576px) {
    .table-responsive-stack td,
    .table-responsive-stack th {
        display: block;
        width: 100%;
        text-align: right;
        border: none;
        font-weight: 500;
    }
    .table-responsive-stack thead {
        display: none;
    }
    .table-responsive-stack tr {
        display: table-row;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 10px;
    }
    .table-responsive-stack tr td:before {
        content: attr(data-title);
        float: left;
        text-transform: uppercase;
        font-weight: normal;
        font-size: smaller;
    }
}

/* View Team Modal */
#viewTeamModal .card-link {
    margin-top: 16px;
    color: #959595;
    font-size: smaller;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
#viewTeamModal .card-link:hover {
    color: #000000;
}

/* Add Membership to Team Modal */
#addMembershipToTeamForm {
    max-width: 300px;
}

/* View Team/User Offcanvas Modal */
.offcanvas-fullscreen {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
  }

  #viewUserDetailsList .bi,
  #viewTeamDetailsList .bi {
    font-size: 0.8rem !important;
  }

/* ********************************************************************
   CALENDAR
   ******************************************************************** */
/* gridMonth */

/* gridMonth week days */
.fc-col-header-cell.fc-day {
    padding: 0.4rem 0;
}
.fc-col-header-cell.fc-day a {
    opacity: .57;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: black;
    text-decoration: none;
}
/* gridMonth days numbers */
td.fc-day .fc-daygrid-day-top a {
    opacity: .57;
    font-size: 18px;
    font-weight: 200;
    text-transform: uppercase;
    color: black;
    text-decoration: none;
}

/* Tooltips in events */
#calendar .tooltip-inner {
    opacity: 0.7;
    font-size: 12px;
}

/* Disable tooltips on mobile devices */
@media (max-width: 767.98px) {
    #calendar .tooltip {
        display: none !important;
    }
    
    /* Also disable Bootstrap tooltips on mobile */
    .tooltip {
        display: none !important;
    }
}

/* Remove dot in front of events */
#calendar .fc-daygrid-event-dot {
    display: none;
  }

/* Events styles */
.fc-event {
    font-size: 0.8em;
}
.fc-event .fc-event-time {
    font-weight: 500;
    overflow: visible;
}
.fc-event .fc-event-title {
    font-weight: 100;
}

/* Style for Sunday and blocked days cells */
.sunday-cell, .blocked-day-cell {
    background-color: #f5f5f5 !important; /* Light gray background */
    color: #aaaaaa !important; /* Light gray text */
    cursor: not-allowed !important; /* Change cursor to indicate not clickable */
}

/* Make sure events are also grayed out on Sundays and blocked days */
.sunday-cell .fc-event, .blocked-day-cell .fc-event {
    opacity: 0.5;
}

/* Style for blocked days titles in FullCalendar month view */
.blocked-day-cell a.fc-daygrid-block-event {
    border-color: rgb(158, 158, 158);
    background-color: rgb(158, 158, 158);
}

/* gridWeek */
.fc-timegrid-slot-label {
    font-size: small;
}

/* Recurring booking icon */
.fc-event.recurring .fc-event-time::before {
    content: "↻"; /* Unicode repeat symbol */
    font-size: 0.9em;
    margin-right: 4px;
    opacity: 1;
    font-weight: bold;
    color: #fff;
    display: inline-block;
    transform: rotate(15deg); /* Rotate 15 degrees to the right */
}
/*
.fc-daygrid-day-number {
    font-weight: bold;
}

.fc-event.booking-event {
    background-color: #9575cd;
    border-color: #7e57c2;
}
.fc-event.roasting-event {
    background-color: #4db6ac;
    border-color: #26a69a;
}
.fc-event.probatone-event {
    background-color: #f06292;
    border-color: #ec407a;
}*/

/* Month/week/day view selector */
/*.fc-button-group {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}*/

/* Mobile-specific mobile calendar improvements */
@media (max-width: 767.98px) {
    /* Mobile calendar improvements */
    .calendar-container {
        padding: 0 !important;
    }
    
    /* Improve touch targets on mobile */
    .fc-timegrid-slot-label, .fc-event {
        min-height: 25px;
        display: flex;
        align-items: center;
    }
}

/* ********************************************************************
   MODALS
   ******************************************************************** */

/* New Booking Modal*/
#addBookingForm {
    padding-left: 40px;
    max-width: 450px;
}
#addBookingForm .label-icon {
    margin-left: -40px;
    float: left;
    margin-top: 4px;
    color: gray;
}
#addBookingForm .form-check {
    margin-left: -40px;
}
#addBookingForm .form-check .form-check-input {
    margin-right: 24px;
}
#addBookingForm .invalid-feedback {
   display: block; /* Ensures it appears on a new line */
}

/* Medium viewport displayed fixed to the left */
@media (min-width: 768px) {
    #addBookingModal .membership-allowance {
        position: sticky;
        top: 0;
        height: calc(100vh - 60px); /* Adjust height as needed */
        overflow-y: auto;
        padding: 1rem;
    }
    
    /* Make the main form scrollable if needed */
    #addBookingModal .modal-body {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* On smaller screens, add some margin for better spacing */
@media (max-width: 767.98px) {
    #addBookingModal .membership-allowance {
        margin-left: 40px;
    }
}

/* Add Block Modal */
#addBlockForm {
    padding-left: 40px;
    max-width: 650px;
}
#showBlockBookings:hover {
    background-color: #e9dbb7;
}

/* Team Modals */
#addTeamForm {
    padding: 40px;
    min-width: 450px;
}
#addTeamForm input,
#addUserToTeamModal input,
#addUserModal input {
    background-color: #f5f5f5;
}
#addTeamForm input::placeholder,
#addUserToTeamModal input::placeholder,
#addUserModal input::placeholder {
    color: #aaaaaa;
}
#addUserModal .team-select {
    background-color: #f5f5f5;
}
#addTeamForm a#addAnotherMember {
    align-self: flex-start;
    margin-top: 30px;
    color: #4885ff;
}
#addTeamForm a#addAnotherMember:hover {
    background-color: #4885ff1a;
}
#addTeamForm button#addTeamButton {
    align-self: flex-end;
}
#addTeamForm .invalid-feedback {
   display: block; /* Ensures it appears on a new line */
}

/* Medium viewport displayed fixed to the left */
@media (min-width: 768px) {
    
    /* Make the main form scrollable if needed */
    #addTeamModal .modal-body {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* On smaller screens, add some margin for better spacing */
@media (max-width: 767.98px) {
    #addTeamModal .membership-allowance {
        margin-left: 40px;
    }
}

#addUserToTeamModal .list-group-item,
#addUserModal .list-group-item {
    border-top: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1.5rem 0;
    border-radius: 0;
}

/* User search results in type usr/email inputs */
#addUserToTeamModal .user-search-results {
    width: 95%;
    margin-top: -15px;
}
#addTeamModal .user-search-results {
    width: 95%;
    margin-top: 0px;
}
#addBookingModal .user-search-results {
    width: 55%;
    margin-top: 0px;
}


/* ********************************************************************
   ACCOUNT
   ******************************************************************** */
#editAccountForm label {
    font-size: smaller;
    font-weight: 600;
}

#editAccountForm .form-control:disabled {
    background-color: #eee;
    opacity: 0.5;
}

#editAccountForm .password-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#editAccountForm .password-fields {
    display: none;
}

/* ********************************************************************
   TOASTS
   ******************************************************************** */
.toast-success {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    border-color: var(--bs-success-border-subtle);
}
.toast-success .toast-header {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
    border-color: var(--bs-success-border-subtle);
}

.toast-danger {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    border-color: var(--bs-danger-border-subtle);
}

.toast-danger .toast-header {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    border-color: var(--bs-danger-border-subtle);
}



