/* assets/css/floating-button.css */
.fab-container {
    position: fixed;
    bottom: 90px; /* Di atas navbar mobile / footer */
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    z-index: 9999;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #fb8201;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-btn:hover {
    transform: scale(1.1);
    background: #fb8201;
    color: #fff;
}

#fab-chat {
    background: #25D366; /* Warna WA */
    color: white;
}
#fab-chat:hover {
    background: #128C7E;
}

/* Modal Styles */
.fab-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fab-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.fab-modal.hidden {
    display: none;
}

.fab-modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    height: 80vh; /* Slide panel height */
    max-height: 600px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-right: 0;
}

@media (min-width: 768px) {
    .fab-modal-content {
        margin-right: 20px;
        margin-bottom: 20px;
        border-radius: 20px;
        height: auto;
        min-height: 400px;
    }
}

.fab-modal.active .fab-modal-content {
    transform: translateY(0);
}

.fab-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fab-header h3 {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

.close-fab {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.fab-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* History Item Styles */
.history-item {
    border-left: 4px solid #eee;
    padding-left: 15px;
    margin-bottom: 20px;
    position: relative;
}

.history-item.paid { border-left-color: #25D366; }
.history-item.pending { border-left-color: #fb8201; }
.history-item.expired { border-left-color: #ef4444; }

.history-date {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 4px;
}

.history-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.history-amount {
    font-weight: bold;
    color: #fb8201;
}

.history-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-top: 5px;
    font-weight: 600;
}

.status-paid { background: #dcfce7; color: #166534; }
.status-pending { background: #ffedd5; color: #9a3412; }
.status-expired { background: #fee2e2; color: #991b1b; }
