/* Tombol toggle */
.floating-toggle-btn {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #004a99;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.floating-toggle-btn svg {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Area ikon sosial */
.floating-social-icons {
    position: fixed;
    bottom: 65px;
    left: 15px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.floating-social-icons.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-social-icons ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.floating-social-icons ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    margin-bottom: 10px;
}

/* Saat tombol toggle aktif - slide in */
.floating-social-icons.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.floating-social-icons.active ul li:nth-child(1) {
    transition-delay: 0.55s;
}

.floating-social-icons.active ul li:nth-child(2) {
    transition-delay: 0.4s;
}

.floating-social-icons.active ul li:nth-child(3) {
    transition-delay: 0.25s;
}

.floating-social-icons.active ul li:nth-child(4) {
    transition-delay: 0.1s;
}

/* Slide out (urutan mundur) saat closing */
.floating-social-icons.closing ul li {
    opacity: 0;
    transform: translateY(20px);
}

.floating-social-icons.closing ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.floating-social-icons.closing ul li:nth-child(2) {
    transition-delay: 0.25s;
}

.floating-social-icons.closing ul li:nth-child(3) {
    transition-delay: 0.4s;
}

.floating-social-icons.closing ul li:nth-child(4) {
    transition-delay: 0.55s;
}

/* Ikon sosial */
.floating-social-icons li a {
    width: 50px;
    height: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Warna brand */
.icon-wa {
    background-color: #1DAA61;
}

.icon-phone {
    background-color: #007bff;
}

.icon-map {
    background-color: #d5473b;
}

.icon-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.rotate-right {
    animation: rotateRight 0.7s ease-in-out both;
}

.rotate-left {
    animation: rotateLeft 0.7s ease-in-out both;
}

@keyframes rotateRight {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

@keyframes rotateLeft {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: rotate(-360deg);
        opacity: 1;
    }
}