@tailwind base;
@tailwind components;
@tailwind utilities;

body, html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1 {
    margin: 0;
    padding: 5px 0;
}

.bg-scroll {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.bg-hero {
    background-image: var(--bg-hero-mobile);
    background-size: cover;
    background-position: center;
}

.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        color 0.3s ease;
    z-index: 1000;
}
.navbar a {
    transition: color 0.3s ease;
}

.nav-link {
    padding: 0.5rem 1rem;
}

#cta-button,
#cta-button-mobile {
    color: white !important;
}

.navbar.scrolled .navbarBrand {
    color: #162964 !important;
}

.navbar.open {
    background-color: #162964;
}

.navbar.scrolled {
    background-color: white;
}

.group-hover\:block {
    display: block !important;
    animation: fadeIn 0.2s;
}

.text-dark {
    color: black !important;
}

.half-green-card {
    background: linear-gradient(to right, #162964 50%, transparent 50%);
}

.half-card {
    background: linear-gradient(to left, #162964 50%, transparent 50%);
}

dd {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fc-header-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;
    touch-action: none;
}

#calendar {
    margin-top: 80px;
}

.category-button:hover {
    background-color: #F15E19;
    color: white;
}

.category-button.active {
    background-color: #F15E19;
    color: white;
}
.category-button, #allCategoryButton {
    background-color: #162964;
    color: white;
    transition: all 0.3s ease-in-out;
}
.category-button:hover, #allCategoryButton:hover {
    background-color: #F15E19;
    color: white;
}
.category-button.active, #allCategoryButton.active {
    background-color: #F15E19;
    color: white;
}

.wa_btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    text-decoration: none;
    background-color: rgb(35, 243, 16);
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 13px;
    font-weight: bold;
    gap: 10px;
    z-index: 9999;
    transition: 0.3s ease-in-out;
}

.wa_btn i {
    font-size: 30px;
    background-color: white;
    color: rgb(35, 243, 16);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wa_btn:hover {
    background-color: #1ebe5d;
}

@media only screen and (min-width: 1024px) {
    .bg-hero {
        background-image: var(--bg-hero-desktop) !important;
    }
}


@media (max-width: 768px) {
    #profileDropdown, #pendidikanDropdown {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 2000 !important;
        margin-top: 0.25rem;
    }
    
    .fc-header-toolbar {
        flex-direction: column;
    }
    
    .wa_btn {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        background: transparent;
        justify-content: center;
    }

    .wa_btn span {
        display: none !important;
    }

    .wa_btn i {
        font-size: 35px;
        background-color: rgb(35, 243, 16);
        color: white;
        width: 50px;
        height: 50px;
    }

    .wa_btn:hover {
        background-color: #1ebe5d;
    }

}

