body {
    font-family: "Urbanist", sans-serif;
}

.primary-button {
    background-color: #0a091d;
    color: white;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 10px #00000050;
    transition: all 0.4s;
}

.primary-button:disabled {
    cursor: not-allowed;

}

.primary-button:not(:disabled):hover {
    box-shadow: 0px 0px 15px #00000080;
    background-color: black;
    transform: scale(1.03);
}

.primary-button::before {
    content: "";
    background-color: white;
    width: 77px;
    height: 63px;
    position: absolute;
    border-radius: 50%;
    left: -36px;
    filter: blur(38px);
    top: -31px;
}

.primary-button::after {
    content: "";
    background-color: white;
    width: 61px;
    height: 37px;
    position: absolute;
    border-radius: 50%;
    right: -10px;
    bottom: -13px;
    filter: blur(33px);
}

.secondary-button {
    background-color: #ebedee;
    color: #0a091d;
    border-radius: 100px;
}

.establishment::before {
    content: "";
    background-color: #22d3ff;
    width: 100px;
    height: 63px;
    position: absolute;
    border-radius: 50%;
    left: -36px;
    filter: blur(38px);
    top: -10px;
}

.day-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #DFE2E4;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
}

@media (min-width: 768px) {
  .day-button {
    width: 40px;
    height: 40px;
  }
}


.swal2-popup {
    border-radius: 30px !important;
}

/* Required CSS to make the rows rounded */



#sidebar {
    --tw-translate-x: -100%;
}

#menu-close-icon {
    display: none;
}

#menu-open:checked~#sidebar {
    --tw-translate-x: 0;
}

/* Mobile drawer scrim. Sits under the sidebar (z-20) and over everything else, so the drawer
   stays lit while the page behind dims. Hidden at md+, where the sidebar is permanent. */
#sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(10, 9, 29, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
    cursor: pointer;
}

#menu-open:checked~#sidebar-scrim {
    opacity: 1;
    visibility: visible;
}

/* Stop the page behind the open drawer from scrolling. Without this a swipe over the dimmed
   area scrolls the content underneath, which makes the drawer feel detached from the page. */
#menu-open:checked~* {
    overscroll-behavior: contain;
}

@media (min-width: 768px) {
    #sidebar-scrim {
        display: none;
    }
}

#menu-open:checked~* #mobile-menu-button {
    background-color: rgba(31, 41, 55, var(--tw-bg-opacity));
}

#menu-open:checked~* #menu-open-icon {
    display: none;
}

#menu-open:checked~* #menu-close-icon {
    display: block;
}



#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: #9CA3AF;
    border-radius: 3px;
    border: none;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #6B7280;
}

.boxshadow {
    box-shadow: 0px 0px 5px #00000050;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

table {
    border-spacing: 0 8px;
    border-collapse: separate !important;
}

table thead tr th {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    line-height: 24px;
    letter-spacing: 0.17px;
}

table thead {
    background: #DDF0F4;
}

table tbody tr td {
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    color: #0A091D;
}

tr th:first-child,
tr td:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

tr th:last-child,
tr td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.boxshadow {
    box-shadow: 0px 0px 5px #00000050;
}

.scrollBar::-webkit-scrollbar {
    width: 3px;

}

.scrollBar::-webkit-scrollbar-track {
    width: 3px;
    background-color: transparent;
}

.scrollBar::-webkit-scrollbar-thumb {
    background-color: #DDDCFF;
    /* outline: 1px solid slategrey; */
    border-radius: 15px;
}


/**
DROPZONE STYLING
 */
/* Green progress bar even while uploading */
.dz-preview .dz-progress .dz-upload {
    background: #28a745 !important;
}

/* Green success tick */
.dz-preview.dz-success .dz-success-mark svg,
.dz-preview.dz-success .dz-success-mark svg path {
    stroke: #28a745 !important;
    fill: #28a745 !important;
    opacity: 1 !important;
}

/* Hide red X on success (optional) */
.dz-preview.dz-success .dz-error-mark { display: none !important; }

.dz-preview .dz-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    cursor: pointer;
    border-radius: 50%;
    background: #f44336; /* material red */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.dz-preview .dz-remove svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
}

.dz-preview .dz-remove:hover {
    background: #d32f2f; /* darker red on hover */
}

@media (max-width: 480px) {
    .filter-section {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    #sidebar {
        --tw-translate-x: 0;
    }
}




/* Sidebar Collapse Styles - Hide completely like Google Ads */
#sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    transform: translateX(-100%);
}

#sidebar.collapsed .sidebar-logo {
    display: none;
}

#sidebar.collapsed .sidebar-text {
    display: none;
}

#sidebar.collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* Hamburger icon rotation when sidebar is collapsed */
#hamburger-icon.rotate-90 {
    transform: rotate(90deg);
}

#sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 8px;
    width: 100%;
    display: flex;
    align-items: center;
}

#sidebar.collapsed .nav-item span {
    display: none;
}

#sidebar.collapsed .nav-item .w-5 {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sidebar.collapsed .nav-item > div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ensure icons are perfectly centered in collapsed sidebar */
#sidebar.collapsed .nav-item svg,
#sidebar.collapsed .nav-item .w-5 {
    margin: 0 auto;
    display: block;
}

/* Center the entire navigation content */
#sidebar.collapsed nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

/* Hide submenus when sidebar is collapsed */
#sidebar.collapsed ul[id$="-dropdown"] {
    display: none !important;
}

/* Hide dropdown arrows when collapsed */
#sidebar.collapsed .nav-item svg[viewBox="0 0 10 6"] {
    display: none;
}

/* Add tooltip functionality for collapsed sidebar */
#sidebar.collapsed .nav-item {
    position: relative;
}

#sidebar.collapsed .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #0A091D;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#sidebar.collapsed .nav-item:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #0A091D;
    margin-left: 2px;
    z-index: 1000;
}

/* Main content adjustment when sidebar is collapsed - Full width like Google Ads */
main.sidebar-collapsed {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Default main content margin - matches lg:w-[300px] (1024px+) */
main {
    /* margin-left: 300px; */
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Mobile: matches w-3/4 (below 768px) */
@media (max-width: 767px) {
    main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Medium screens: matches md:w-[230px] (768px to 1023px)

   These used to be calc(100vw - 230px). 100vw INCLUDES the vertical scrollbar gutter, but the
   containing block does not, so <main> came out ~15px wider than the space it had and pushed a
   horizontal scrollbar across the whole page at every tablet-ish width.

   The width declarations are also unnecessary: <main> is a block element and Tailwind's
   md:ms-[230px] already offsets it, so width:auto resolves to exactly (parent - margin). Dropping
   them fixes the overflow rather than trading one magic number for another. */
@media (min-width: 768px) and (max-width: 1023px) {
    main {
        /*margin-left: 230px;*/
        max-width: 100%;
    }
}
