:root {
    --bs-primary-rgb: 43, 0, 206;
    --bs-link-color: #2B00CE;
    --gradient: linear-gradient(89.18deg, #2B00CE 5.47%, #BA46A8 50.53%, #FF9F22 94.7%);
}

/* Ensure all table cells have centered content */
#componentTable td {
    vertical-align: middle;
}

/* Ensure order_number cell has correct structure */
.order-number-cell {
    white-space: nowrap;
}

/* Stack up/down arrows vertically */
.order-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* Adjust spacing between icons */
}

/* Ensure icons are clickable and properly spaced */
.order-controls a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.queue-item {
    transition: opacity 0.5s, transform 0.5s;
}

.alert-wrapper {
    position: fixed;
    right: 15px;
    bottom: 15px;
}

.gradient {
    background: var(--gradient);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gray {
    color: #c5c5c5;
}

.pt-3-px {
    padding-top: 3px;
}

.pt-6-px {
    padding-top: 6px;
}

/* Buttons */

.btn-80 {
    width: 80%;
    display: block;
    margin: 0 auto;
}

.btn-100 {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.btn-bold {
    font-weight: bold;   /* Bolder text */
}

.btn-primary {
    --bs-btn-color: #FFF;
    --bs-btn-bg: #2B00CE;
    --bs-btn-border-color: #2B00CE;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #B5A6ED;
    --bs-btn-hover-border-color: #B5A6ED;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #FFF;
    --bs-btn-active-bg: #B5A6ED;
    --bs-btn-active-border-color: #B5A6ED;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #FFF;
    --bs-btn-disabled-bg: #E5EAF0;
    --bs-btn-disabled-border-color: #E5EAF0;
}

.btn-secondary {
    --bs-btn-color: #2B00CE;
    --bs-btn-bg: #F7F5FF;
    --bs-btn-border-color: #F7F5FF;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #2B00CE;
    --bs-btn-hover-border-color: #2B00CE;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #2B00CE;
    --bs-btn-active-bg: #B5A6ED;
    --bs-btn-active-border-color: #B5A6ED;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #FFF;
    --bs-btn-disabled-bg: #E5EAF0;
    --bs-btn-disabled-border-color: #E5EAF0;
}

.btn-white {
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
}

.btn-circle {
    color: #28093B;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 5px 0px #00000026;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #2B00CE;
    --bs-btn-hover-border-color: #2B00CE;
    border-radius: 50%;
}

.btn-outline-primary {
    position: relative;
    will-change: transform;
    padding: 12px 32px; /* Increase horizontal and vertical padding */
    border-radius: 2rem;
    z-index: 0;
    --bs-btn-border-color: #FFF;
    --bs-btn-hover-bg: var(--gradient);
    --bs-btn-hover-border-color: none;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-bg: #2B00CE;
    --bs-btn-active-border-color: #2B00CE;
    --bs-btn-disabled-color: #2B00CE;
    --bs-btn-disabled-border-color: #2B00CE;
    /* border: 4px solid transparent;
    border-radius: 1em;
    background: linear-gradient(90deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%); 
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box; */
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%);
    border-radius: 2rem;
    z-index: 0;
    transition: .5s ease-in-out;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: var(--bs-border-width);
    left: var(--bs-border-width);
    right: var(--bs-border-width);
    bottom: var(--bs-border-width);
    background: #FFF;
    border-radius: 2rem;
    z-index: 1;
}

.btn-outline-primary .text-gradient {
    position: relative;
    z-index: 2; /* Ensure text stays visible */
    background: linear-gradient(90deg, #2B00CE, #BA46A8, #FF9F22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline-primary:hover::after {
    background: var(--gradient);
}

.btn-outline-primary:hover .text-gradient {
    -webkit-text-fill-color: white;
}


/* Input */

.form-check-input:checked {
    background-color: #2B00CE;
    border-color: #2B00CE;
}

/* Table */

th {
    font-weight: 400;
}

/* pagination */
.pagination {
    --bs-pagination-active-bg: #2B00CE;
}

/* Layout */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
    z-index: 1000;
    background: white;
}

.content {
    height: 100vh;
    padding-top: 62px;
}

/* Sidebar */

.content-sidebar {
    padding: 0;
    border-right: 1px solid #DCD7E2;
}

.sidebar {
    height: 100%;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
}

.sidebar .nav-pills {
    flex-direction: column;
}

.nav-pills .nav-link {
    position: relative;
    padding: 1rem 2rem;
    color: #000000;
    border-radius: 0;
}

.nav-pills .nav-link.active {
    color: #000000;
    background: #F0F2F5;
}

.nav-pills .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(0deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%);
    border-radius: 0 1em 1em 0;
}

@media screen and (max-width: 768px) {
    .content-sidebar {
        flex: 0 0 100%;
        overflow-x: auto;
    }

    .sidebar {
        flex-direction: row;
        width: max-content;
        height: auto;
    }

    .sidebar .nav-pills {
        flex-direction: row;
    }

    .nav-pills .nav-link.active::before {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 8px;
    }

    .modal-dialog {
        display: flex;
        align-items: center;
        min-height: 100vh; /* Ensure full height */
    }

    .modal-content {
        margin: auto; /* Center the modal */
    }

    .hide-mobile {
        display: none;
    }
}

/* /Sidebar */

/* Moblie menu */

.mobile-navbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #FFFFFF;
    z-index: 2;
}

.mobile-navbar.nav-pills .nav-link.active {
    color: #000000;
    background: #B5A6ED;
}

@media screen and (max-width: 768px) {
    .mobile-navbar {
        display: block;
    }

    .mobile-navbar .nav-pills > * {
        flex: 0 0 25%;
        max-width: 25%;
        text-align: center;
    }
    
    .mobile-navbar .nav-pills .nav-link {
        padding: 1rem .75rem;
    }
}

.content-section {
    padding: 1rem 2rem;
    background-color: #FFFFFF;
    border-radius: 1rem;
}

#clientPage .content-section {
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping */
    gap: 0.5rem; /* Adds spacing between buttons */
    overflow-x: auto; /* Enables horizontal scrolling if needed */
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    text-align: left;
    width: 100%;
}

.stat-item {
    padding: 1rem;
}

.stat-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
}

.stat-item p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-item .done-item {
    color: rgb(122, 199, 8);
}

.stat-item .awaiting-item {
    color: rgb(185, 8, 185);
}

.stat-item .cancelled-item {
    color: orange;
}

.stat-item .all-item {
    color: blue;
}

.stat-item h3,
.stat-item p {
    white-space: nowrap;
}


.border-purple {
    border-color: #6f42c1 !important; /* Bootstrap's purple */
}

.text-purple {
    color: #6f42c1 !important;
}

.badge-fixed-width {
    width: 120px;  /* Adjust as needed */
    display: inline-block;
    text-align: center;
    padding: 0.7em 0.5em;
    font-size: 0.75rem; /* Smaller text */
    border-radius: 0.5rem; /* Rounded corners */
    white-space: nowrap; /* Prevent text wrapping */
}

@media screen and (max-width: 768px) {
    .content-section {
        overflow-x: auto;
    }
}

.navbar {
    margin-top: 20px;
}

.profile-divider {
    border: none;
    height: 1px;
    background-color: rgba(0, 128, 0, 0.6); /* Faint green */
    margin: 10px 0;
}

/* Main Content */

.content-main {
    height: 100%;
    padding: 1rem 2rem 100px;
    background-color: #F0F2F5;
    overflow: auto;
}

.card {
    border: none;
    border-radius: 1rem;
}

/* /Main Content */

.circle-done {
    width: 100px;
    height: 100px;
    background-image: url('../images/icon-done.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    background-color: #F7F5FF;
    border-radius: 50%;
}


.circle-cancel {
    width: 100px;
    height: 100px;
    background-image: url('../images/icon-cancel.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
    background-color: #F7F5FF;
    border-radius: 50%;
}

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

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

#tablo .fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

#tablo .fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

#tablo body, html#tablo {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #F3F3F7;
}

#tablo .full-screen {
    height: 100vh;
    display: flex;
}

#tablo .left-panel {
    width: 35%;
    background-color: #E7E7EF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

#tablo .qr-wrapper {
    flex-grow: 1; /* Centers the QR container */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#tablo .qr-container {
    background: white;
    border-radius: 40px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

#tablo .qr-code {
    width: 180px;
    height: 180px;
}

#tablo .right-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: white;
}

#tablo .logo {
    font-size: 32px;
    font-weight: bold;
    text-align: right;
}

#tablo .date-time {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

#tablo .table th, #tablo .table td {
    text-align: center;
    font-size: 24px;
}

#tablo .striped-table tbody tr:nth-child(odd) td {
    --bs-table-accent-bg: #f3f4f6; /* light gray */
    padding: 0.4rem 0.5rem;
}  

#tablo .striped-table tbody tr:nth-child(even) td {
    padding: 0.5rem 0.5rem;
}  

#tablo .striped-table tbody td {
    font-size: clamp(18px, 2.1vw, 40px) !important;
}

#tablo .striped-table td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

#tablo thead tr th {
    padding-bottom: 2rem;
    color: gray;
}

#tablo .queue-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

#tablo tr {
    border-style: hidden;
}

@media (min-height: 700px) {
    #tablo .striped-table tbody tr:nth-child(even) td {
        padding: 1.5rem 0.5rem !important;
    }  
}

@media (max-width: 768px) {
    #tablo .full-screen {
        flex-direction: column;
        height: auto; /* prevent forcing height on stacked layout */
    }

    #tablo .left-panel,
    #tablo .right-panel {
        width: 100%;
        padding: 20px;
    }

    #tablo .qr-container {
        padding: 10px;
        border-radius: 20px;
    }

    #tablo .qr-code {
        width: 140px;
        height: 140px;
    }

    #tablo .table th,
    #tablo .table td {
        font-size: 16px;
    }

    #tablo .striped-table tbody td {
        font-size: 32px;
    }

    #tablo .logo {
        text-align: center;
        font-size: 24px;
    }

    #tablo .date-time {
        font-size: 18px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}


.rounded-row td:nth-child(odd) {
    border-radius: 40px 0px 0px 40px;
}

.rounded-row td:nth-child(even) {
    border-radius: 0px 40px 40px 0px;
}

#togglePassword {
    cursor: pointer;
}

#togglePassword i {
    color: black;
    font-size: 1.2rem;
}

#togglePassword:focus {
    outline: none;
    box-shadow: none;
}

.brand-block img {
    display: block;
    height: auto;
}

.queue-logo img {
    width: 180px;
}

.superqr-logo img {
    width: 60px;
    padding-top: 3px;
}

.powered-text {
    font-size: 12px;
    color: #c5c5c5; /* Bootstrap's text-muted gray */
    line-height: 1;
}

/* /Sidebar */

.powered-by-block {
    margin: 1rem;
    color: #c5c5c5;
}

/* Responsive for larger screens */
@media (min-width: 768px) {
    .queue-logo img {
        width: 300px;
    }

    .superqr-logo img {
        width: 100px;
        padding-top: 0px;
    }

    .powered-text {
        font-size: 14px;
    }

    .powered-by {
        margin-top: 5px;
    }
}
  