html, body {
    height: 100%;
    margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
    width: 100%;
    backdrop-filter: blur(15px) brightness(40%);
    background: rgb(from var(--navbar-color) r g b / 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.card {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Style Question Mark Icon Pop-Up */
.fa-circle-question {
    color: rgb(246, 205, 83);
}

.fa-circle-question:hover {
    color: rgb(226, 179, 38);
    cursor: pointer;
}

.add-spacing {
    margin-left: 5px;
}

/* Hover over delete and edit icon color change */
.fa-pen-to-square:hover {
    color: rgb(226, 179, 38);
}

.fa-trash:hover {
    color: rgb(212, 20, 20);
}


/* Pagination Style */
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0);
    outline: none;
}
@media (max-width: 767px) {
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
}

.pagination-links a {
    color: #939393;
    text-decoration: none;
    border-color: #ffc107;
}

.page-item.active .page-link {
    z-index: 5;
    color: #939393;
    background-color: #ffc107;
    border-color: #ffc107;
}

.pagination-links a:hover,
.pagination-links a:focus {
    color: #939393;
    border-color: #ffc107;
}

.page-item:last-child .page-link {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.page-item:first-child .page-link {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.page-item.disabled .page-link {
    z-index: 3;
    border-color: #ffc107;
    font-weight: bold;
}

/* progress bar */
.progress {
    border-radius: 20px;
}

/* Radius */
input.form-control,
.input-group-text {
    border-radius: 20px;
}

select.form-select {
    border-radius: 20px;
}

.choices__inner {
    border-radius: 20px;
}

/* reset bottom border-radius if open */
.choices.is-open .choices__inner {
    border-bottom-right-radius: unset;
    border-bottom-left-radius: unset;
}

/* Sets store targets input layout */

.input-container {
    display: grid;
}

.input-wrapper {
    display: flex;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .input-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .input-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Remove up and down arrow from type="number" */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Table */
table {
    display: block;
    max-width: fit-content;
    margin: 0 auto;
    overflow-x: auto;
    white-space: nowrap;
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    border-radius: 20px;
    position: relative;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 2px solid var(--table1);
}

.table-wrapper table {
    border-collapse: collapse;
    width: 100%;
    min-width: max-content; /* ensures table can grow horizontally */
}


table::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    /* This draws ONLY the curved outer border */
    border: 2px solid var(--table1);   /* total thickness you want */
    border-radius: inherit;

    /* Clip inside so only the arc is visible and the straight edges don't double */
    mask:
        radial-gradient(circle at top left, transparent 19px, black 20px),
        radial-gradient(circle at top right, transparent 19px, black 20px),
        radial-gradient(circle at bottom left, transparent 19px, black 20px),
        radial-gradient(circle at bottom right, transparent 19px, black 20px);
    -webkit-mask:
        radial-gradient(circle at top left, transparent 19px, black 20px),
        radial-gradient(circle at top right, transparent 19px, black 20px),
        radial-gradient(circle at bottom left, transparent 19px, black 20px),
        radial-gradient(circle at bottom right, transparent 19px, black 20px);
}

.jsgrid-table table {
    font-size: small;
    display: table;
}

tr,
td,
th {
    border: 2px solid var(--table1);
    text-align: center;
    padding: 6px;
}

.nowrap td, .nowrap th {
    white-space: nowrap;
}

.wrap td, .wrap th {
    white-space: normal;
}

.wrap td.nowrap,
.wrap th.nowrap {
    white-space: nowrap;
}

.s-table {
    font-size: 13px;
}

.m-table {
    font-size: 15px;
}

/* Vertical table */
.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    width: auto;
    max-height: 300px;
}

p {
    margin: 0;
}

.nowrap {
    white-space: nowrap;
}

/* VMS Action Plan */
.clickable-cell {
    cursor: pointer;
    transition: background-color 0.3s;
}

.clickable-cell:hover {
    background-color: #f8f9fa;
    /* Adjust the color as needed */
}

.clickable-cell:active {
    background-color: #e9ecef;
    /* Adjust the color as needed */
}

.container .item {
    margin: 5px;
  }

/* Styling of adviser reviews buttons */
.tablink {
    background-color: var(--background);
    color: var(--font);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 17px;
    width: auto;
    }

.button-container {
    display: flex;
    justify-content: center;  /* Center horizontally */
    margin-top: 20px;  /* Adjust this value as needed to control spacing from the top */
}

.first-button {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    }

.last-button {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    }

.tablink:hover {
    background-color: color-mix(in srgb,var(--background),#fff 20%); 
    }

.tablink.active {
    background-color: color-mix(in srgb, var(--background) 90%, black);
}

/* Style the tab content for reviews (and add height:100% for full page content) */
.tabcontent {
    display: none;
    padding: 20px;
    height: 100%;
    }

/* Footer */

.bottom-bar {
    width: 100%;
    margin-top: auto;
    background: rgb(from var(--navbar-color) r g b / 0.5) !important;
    backdrop-filter: blur(15px) brightness(40%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 10px;
}
/* Content wrapper to wrapp html pages before footer */
.content-wrapper {
    flex: 1 0 auto;
    margin-bottom: 5px; /* Value for margin between last element and footer */
}

/* Reduce size of table in mobile view Bonus Structure VC All Stores adviser */
@media (max-width: 768px) {

    table.reduce-size {
      font-size: 11px;
      width: max-content;
    }

    table.reduce-size th,
    table.reduce-size td {
      padding: 4px;
    }
  }

/* Notification */

.offcanvas {
    backdrop-filter: blur(15px) brightness(40%);
    background: rgb(from var(--offcanvas-color) r g b / 0.3) !important;
    border-bottom: 1px solid rgb(from var(--offcanvas-color) r g b / 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    max-width: 250px;
}

.notification-card {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, margin 0.4s ease-out;
}

#notificationBadgeNormal, #notificationBadgeMobile {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#notificationBadgeNormal[style*="none"], #notificationBadgeMobile[style*="none"] {
    opacity: 0;
    visibility: hidden;
}

.margin-item {
    margin-left: 20px;
}

/* Custom styles for the day picker */
.day-pill {
    border-radius: 20px !important;
    min-width: 50px;
    padding: 5px 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.day-range-picker {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 576px) {
    .day-pill {
        min-width: 40px;
        padding: 3px 8px;
        font-size: 0.8rem;
    }
}

/* Scheduler */
.scheduler {
    width: 100%;
    table-layout: fixed;
}

.scheduler th {
    background-color: var(--scheduler-header-colour);
}

.scheduler td {
    height: 80px; /* Reduced from 150px for better appearance */
    min-height: 80px;
    vertical-align: top;
}

/* Task block styling */
.task-block {
    height: 100%;
    position: relative;
    padding: 8px 10px 10px 10px; /* Adjusted: less top padding, normal bottom padding */
    border-radius: 30px;
    color: #000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.task-cell {
    position: relative;
    padding: 10px !important;
}

.task-name {
    font-weight: bold;
    text-align: center;
    margin: 0;
    font-size: 1rem;
    flex-grow: 1;
    padding: 2px 15px 0px 0px;

}

.task-main-content {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px 20px 10px 15px; /* Adjusted: top, right, bottom, left */
    width: 100%;
}

.status-task-icon {
    margin-right: 12px; /* Slightly reduced space between icon and text */
    flex-shrink: 0;
}

.btn {
    border-radius: 20px;
}

.btn-expand-task {
    position: absolute;
    top: 8px; /* Adjusted to match new padding */
    right: 8px; /* Adjusted to match new padding */
    width: 22px; /* Slightly smaller */
    height: 22px; /* Slightly smaller */
    padding: 0;
    background: rgba(174, 174, 174, 0.271);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.btn:hover {
  box-shadow: var(--neon-glow), 0 0 30px rgba(255, 107, 53, 0.4);
  transform: translateY(-2px);
}

.btn-expand-task:hover {
    background: rgba(255,255,255,0.5);
}

.arrow-icon {
    font-size: 11px; /* Slightly smaller */
    transition: transform 0.3s ease;
}

.task-details {
    font-size: 0.85rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 
        max-height 0.5s ease-in-out,
        opacity 0.3s ease 0.1s,
        margin 0.3s ease;
    margin: 0 -10px -10px -10px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.05);
}

.task-block.expanded .task-details {
    max-height: 500px; /* Adjust based on your content */
    opacity: 1;
    padding: 10px;
    margin-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.3);
}

.task-block.expanded .arrow-icon {
    transform: rotate(180deg);
}

.details-content {
    font-size: 0.85rem;
    text-align: left;
}

.details-content p {
    margin: 5px 0;
}

/* Details content store clickable */
.clickable-store {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-store:hover {
    text-decoration: underline;
}

.store-completion {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.store-icon {
    width: 20px;
    text-align: center;
}

/* Carousel transition */
.carousel-wrapper {
    overflow: hidden;
    transition: height 0.5s ease-in-out;
}

.carousel-wrapper.p4p-wrapper {
    overflow: hidden;
    transition: height 0.5s ease-in-out;
}

/* Footer */