@tailwind base;
@tailwind components;
@tailwind utilities;


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: #7b88948b;
}

::-webkit-scrollbar-track {
    background: #5a5a5a00;
}


#dynamicTextarea::-webkit-scrollbar {
    width: 0px !important;
}

#conversation::-webkit-scrollbar {
    width: 3px !important;
    }

#conversation::-webkit-scrollbar-thumb  {
    background: #c0c2c58b !important;
}



@media screen and (max-width: 798px) {
    #closeChatContainer {
        display: none !important;
    }
}

.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}


/* SCROLL BAR OF REACTION DETAILS POPUP */
.reactionDetails::-webkit-scrollbar {
    width: 3px;
}

.reactionDetails::-webkit-scrollbar-thumb {
    background: #b9bfc58b;
}


/* SCROLL BAR OF NOTIFICATIONS CONTAINER IN NOTIFICATIONS SIDE BAR */
.notificationsContainer::-webkit-scrollbar {
    width: 0px;
}


/* SCROLL BAR FOR TABLES */
.tableContainer::-webkit-scrollbar {
    height: 5px;
}


.tableContainer::-webkit-scrollbar-thumb {
    background: #d2d9e08b;
}



/* Website's font */
@font-face {
    font-family: 'Poppins';
    src: url('../dist/fonts/Poppins-Regular.ttf');
}

@font-face {
    font-family: 'Poppins ExtraBold';
    src: url('../dist/fonts/Poppins-ExtraBold.ttf');
}

@font-face {
    font-family: 'Poppins Bold';
    src: url('../dist/fonts/Poppins-Bold.ttf');
}


/* ANIMATE THE NOTIFICATION SIDE BAR WHEN OPENING */
.slide-in {
    right: 0;
    transition: right 0.5s ease;
}

.slide-out {
    right: -100%;
    transition: right 0.8s ease;
}


/* TO SHOW AND HIDE MESSAGES SMOOTHLY */
/* Show the message with a fade-in animation */
.show-message {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

/* Hide the message with a fade-out animation */
.hide-message {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s, transform 0.5s;
}

/* ANIMATION TO TYPING CONTAINER IN TICKETS ROOM */
@keyframes fadeInAndUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0px); }
}

.fade-in-up {
    animation: fadeInAndUp 0.6s ease;
}

@keyframes fadeOutAndDown {
    from { opacity: 1; transform: translateY(0px); }
    to { opacity: 0; transform: translateY(12px); }
}

.fade-out {
    animation: fadeOutAndDown 0.6s ease;
}



/* FOR THE IFRAME TO TAKE 95% OF WIDTH ON SMALL SCREEN SIZES */
@media screen and (max-width: 798px) {
    #popupModalFrame {
        width: 100% !important;
    }
}


/* GIVE THIS CLASS TO THE SELECTED EPIC IN PROJECT DETAILS PAGE */
.selectedEpic {
    color: #374a7a !important;
    font-weight: bold !important;
}


/* UPLOAD FILE PROGRESS BAR */
.progress-bar {
    width: 0;
    height: 100%;
    background-color: rgba(1, 150, 1, 0.579);
    text-align: center;
    color: white;
    padding: 5px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

@media screen and (max-width: 650px) {
    .progress {
        width: 100%
    }
}



/* TO ANIMATE THE BURGER MENU IN THE FIXED HEADER */
/* Default state */
.burgerMenuLine {
    width: 25px;
    height: 2px;
}

/* Expanded state */
.burgerMenuLine.expanded {
    width: 2px;
    height: 25px;
}


/* SIDE BAR */
/* TO HIDE THE DESKTOP SIDE BAR AND HEADER ON SMALL SCREEN SIZES */
@media (max-width: 1200px) {
    #scrollPart {
        margin-left: 0;
        width: 100%;
    }

    .fixedSideHeader,
    .topHeader {
        display: none !important;
    }

    .mobileFooter {
        display: block !important;
    }
}

@media (min-width: 1200px) {

    .mobileTopHeader,
    .mobileFixedSideHeader {
        display: none !important;
    }

    .mobileFooter {
        display: none !important;
    }
}



/* TO ANIMATE THE USER ACTIVITY FIXED BUTTON */
@keyframes zoomInOut {

    0%,
    100% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1);
    }
}

.zoom {
    animation: zoomInOut 2s infinite;
}


/* DRAGGABLE SLIDER */
.swiper-container {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: relative;
}

.swiper-slide {
    width: 33% !important;
    margin-right: 20px;
}

.swiper-slide:last-child {
    margin-right: 0 !important;
}

.swiper-wrapper::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Hide the scrollbar thumb when not scrolling */
.swiper-wrapper::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Hide the scrollbar track when not scrolling */
.swiper-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

@media screen and (max-width: 500px) {
    .swiper-slide {
        width: 90% !important;
    }
}


@media screen and (max-width: 798px) {
    #notesContainer {
        display: block;
    }
}



/* TO ANIMATE THE SIDE BAR DROPDOWNS */
.menuDropdownItems {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: relative;
    transition: opacity 0.6s ease, height 0.6s ease;
}

.menuDropdownItems.active {
    display: block;
    visibility: visible;
    opacity: 1;
    animation: slideIn 0.6s forwards;
}


#mobileUserProfileDropdown {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: relative;
    transition: opacity 0.6s ease, height 0.6s ease;
}

#mobileUserProfileDropdown.active {
    display: block;
    visibility: visible;
    opacity: 1;
    animation: slideIn 0.6s forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
    }

    to {
        transform: translateY(0);
    }
}

/* TO HIGHLIGHT THE SELECTED EMOJI CATEGORY */
.selectedEmojiCategory {
    background-color: rgba(128, 128, 128, 0.265);
}


/* CUSTOMER DASHBOARD PAYMENT */
#paymentContent iframe {
    min-height: fit-content !important;
}


/* CUSTOMER DASHBOARD PRODUCTS PAGE */
.selectedProductCategory {
    color: white;
    font-weight: bolder;
}



/* IN BILLING ITEMS */
.selectedItemType {
    color: white;
    font-weight: bolder;
}



/* TICKETS REPLY DEFAULT STYLES */
.default-css {
    color: rgb(147, 147, 147) !important;
}

.default-css h1 {
    font-size: 2em;
}

.default-css h2 {
    font-size: 1.5em;
}

.default-css h3 {
    font-size: 1.17em;
}

.default-css h4 {
    font-size: 1em;
}

.default-css h5 {
    font-size: 0.83em;
}

.default-css h6 {
    font-size: 0.67em;
}

.default-css p {
    font-size: 1em;

}

.default-css ul {
    list-style-type: disc;
    padding: 0px 30px;
}

.default-css ol {
    list-style-type: decimal;
    padding: 0px 30px;
}



/* Add transition to the dropdown content */
#accessibilitesDropDown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
}

/* Set max-height to reveal dropdown content */
#accessibilitesDropDown.visible {
    max-height: 1000px;
}


/* 
@media screen and (max-width: 798px) {
    #closeChatContainer {
        display: none !important;
    }
} */


/* TO ANIMATE TEH GREEN LIVE BUTTON NEXT TO USER IN MOBILE SIDE BAR */
@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.onlineDot {
    width: 15px;
    height: 15px;
    /* Fallback color */
    border-radius: 50%;
    position: relative;
}

/* Creating gradient waves */
.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    animation: wave 1.5s linear infinite;
    background: radial-gradient(circle, rgba(23, 1, 1, 0.377) 40%, rgba(5, 158, 41, 0.712) 80%, rgba(10, 147, 5, 0.499) 100%);
}