@vite (['resources/css/app.css']);

.alpine-init-hidden {
    display: none !important;
}

body {
    margin: 0;
    color: rgb(var(--foreground));
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.wrapper {
    display: flex;
}

.sidebar {
    &.full-nav {
        min-width: 300px;
    }

    &.collapse-nav {
        min-width: 107px;
    }

    height: 100vh;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li {
    padding: 12px 16px;
    border-radius: 10px;

    a,
    button {
        color: rgb(var(--primary-foreground) / 0.82);
        text-decoration: none;
    }

    &.active {
        background: rgb(var(--primary-foreground) / 0.12);
        box-shadow: inset 3px 0 0 rgb(var(--accent));

        a,
        button {
            color: rgb(var(--primary-foreground));
        }

        li {
            img {
                filter: invert(0%) sepia(164%) saturate(0%) hue-rotate(0deg) brightness(140%) contrast(100%);
            }

            &.submenu-active {
                background-color: rgb(var(--card));

                a {
                    color: var(--primary-color);

                    img {
                        filter: inherit;
                    }
                }
            }
        }
    }
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.header,
.footer {
    background: rgb(var(--card));
    /* padding: 15px; */
    text-align: center;
}

/* dashboard */
.active-table {
    border-radius: var(--radius-lg);
    border: 1px solid rgb(var(--border));
    overflow: hidden;

    thead {
        th {
            background: rgb(var(--surface-alt));
            color: rgb(var(--muted-foreground));
            font-size: 0.8125rem;
            font-weight: 500;
            border-bottom: 1px solid rgb(var(--border)) !important;
            padding: 12px 15px;
        }
    }
}

.active-admin .active-table {
    thead {
        th {
            background: rgb(var(--surface-alt));
        }
    }
}

.dt-input {
    min-width: 75px;
}

.dataTable {

    th,
    td {
        text-align: left !important;
    }
}

.dt-layout-row {
    .dt-layout-cell {
        .dt-paging {
            button.dt-paging-button.current {
                background: rgb(var(--primary));
                color: rgb(var(--primary-foreground)) !important;
                border-radius: var(--radius-md);
            }
        }
    }
}

.active-admin .dt-layout-row {
    .dt-layout-cell {
        .dt-paging {
            button.dt-paging-button.current {
                background: rgb(var(--primary));
            }

            button.dt-paging-button.current:hover {
                background: rgb(var(--primary-hover));
            }
        }
    }
}

#toast-container>div {
    opacity: 1 !important;
}

#imagePreview,
#videoPreview {
    height: 200px !important;
    width: 200px !important;
}

.image-circle {
    border-radius: 50%;
    height: 50px;
    width: 50px;
    object-fit: cover;
}

.swiper-pagination-bullet {
    background-color: var(--light-main) !important;
}

@media screen and (max-width: 1440px) {

    .header,
    .footer {
        background: rgb(var(--card));
        padding: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 991px) {
    .wrapper {
        display: block;

        .sidebar {
            height: 80px;

            nav {
                position: fixed;
                z-index: 1;
                background-color: rgb(var(--primary));
                left: 0;
                width: 80vw;
                height: 100vh;
                transform: translateX(-100%);
                transition: all 0.5s ease-in-out;

                &.mobile-menu-show {
                    transform: translateX(0);
                }
            }
        }
    }

    .active-admin .wrapper {
        .sidebar {
            nav {
                background-color: var(--admin-secondary-color);
            }
        }
    }

    .dt-layout-row {

        /* display: flex !important; */
        .dt-length,
        .dt-search {
            text-align: left;
        }
    }

    .responsive-table {
        width: 100%;
        overflow-x: auto;
    }
}

.rich-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.rich-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

.note-editable ul {
    list-style: disc !important;
}

.note-editable ol {
    list-style: decimal !important;
}

.note-editable li {
    margin-bottom: 0.25rem;
}

/* .bg-muted {
    object-fit: 0.1 !important;
} */

/* Tables: quiet rows, hover tint (theme tokens only). */
.active-table tbody td {
    border-top: 1px solid rgb(var(--border));
}

.active-table tbody tr {
    transition: background-color 120ms ease;
}

.active-table tbody tr:hover {
    background: rgb(var(--surface-alt));
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

.lp-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
}

.lp-whatsapp .lp-ico {
    width: 1.6rem;
    height: 1.6rem;
}

/* Footer social media icons */
.social-icon a {
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon a svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    stroke: currentColor;
    fill: none;
}

.social-icon a:hover {
    color: #FF9478 !important;
    transform: translateY(-3px);
}

/* WhatsApp floating icon */
.lp-whatsapp {
    color: #ffffff;
}

.lp-whatsapp svg {
    fill: currentColor;
}
