@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Noto+Kufi+Arabic:wght@100..900&family=Outfit:wght@100..900&display=swap");

body {
    font-family: "Noto Kufi Arabic";
}

.floating-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: float 6s linear infinite;
    opacity: 0.7;
}

@keyframes float {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}
/* Custom styles for active tab and Swiper pagination if needed */
.tab-button.active {
    border-bottom: 3px solid #1887b5; /* blue-500 */
    color: #1887b5; /* blue-500 */
}

/* Custom styles if needed, or to override Tailwind defaults */
.tab-button.active {
    @apply bg-primary text-white shadow-md; /* Apply active styles */
}
.tab-content {
    display: none; /* Hide all tab content by default */
}
.tab-content.active {
    display: block; /* Show active tab content */
}

/* For Webkit browsers (Chrome, Safari, Edge) */
#myAside::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
}

#myAside::-webkit-scrollbar-track {
    /* Use your defined accent-blue color */
    background: #1887b5; /* Or use a CSS variable if you've defined them globally */
    border-radius: 10px; /* Rounded corners for the track */
}

#myAside::-webkit-scrollbar-thumb {
    /* Use your defined accent-blue color */
    background: #1887b5; /* Or use a CSS variable */
    border-radius: 10px; /* Rounded corners for the thumb */
    /* The border color should ideally contrast or match the track background for visual clarity */
    border: 3px solid #f1f1f1; /* Creates a border around the thumb */
}

#myAside::-webkit-scrollbar-thumb:hover {
    /* Use your defined accent-blue or a slightly darker shade for hover effect */
    background: #1579a0; /* A slightly darker blue for hover, or pick another accent color */
}

/* For Firefox */
#myAside {
    /* You can directly use the hex code here, or if you're setting CSS variables based on your Tailwind config, use them. */
    scrollbar-color: #1887b5 #f1f1f1; /* thumb color and track color for Firefox */
    scrollbar-width: thin; /* "auto" or "none" for Firefox */
}
#collapseContent li:has(.done-icon .fa-check) {
    position: relative;
    padding-right: 30px;
}

/* Vertical line on the left side */
#collapseContent li:has(.done-icon .fa-check)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    width: 2px;
    background-color: #00c853;
    z-index: 0;
}

/* Circle dot */
#collapseContent li:has(.done-icon .fa-check)::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00c853;
    border: 2px solid #fff;
    z-index: 1;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
.done-icon.stroke {
    position: relative;
    font-size: 20px;
    color: #28a745;
}

.done-icon.stroke i {
    opacity: 0;
    /* Simulate drawing with stroke */
    -webkit-text-stroke: 2px #28a745;
}

.done-icon.stroke::before {
    content: "\f00c"; /* Unicode for fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-text-stroke: 2px #28a745;
    animation: drawCheck 1s ease-in-out forwards;
}

@keyframes drawCheck {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}
.close-icon {
    display: inline-block;
    font-size: 20px;
    color: #d9534f;
    opacity: 0;
    transform: scale(0);
    cursor: pointer;
    transition: transform 0.2s;
    animation: popInClose 0.5s ease forwards;
}

.close-icon:hover {
    transform: scale(1.1);
}

@keyframes popInClose {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Optional: Slow bounce animation for the icon */
.animate-bounce-slow i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Improve focus appearance */
input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
