/* Main Button Styles */
.wa-chat-wrapper {
    margin-top: 20px;
    text-align: left;
}

.wa-chat-button {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.wa-chat-button:hover {
    background-color: #1ebe54;
    transform: scale(1.03);
}


/* ✅ Floating Style di Mobile */
@media (max-width: 768px) {
  .wa-chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    text-align: right;
  }

  .wa-chat-button {
    display: inline-block;
    width: auto;
    font-size: 18px;
    padding: 14px 20px;
    border-radius: 50px;
  }
}

.wa-chat-button {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* Modal Styles */
.wa-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.wa-modal-content {
    background: white;
    margin: 10% auto;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.wa-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.wa-close:hover {
    color: #000;
}

/* Tab Styles */
.wa-tabs-container {
    margin-top: 15px;
}

.wa-tab-header {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.wa-tab-link {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.wa-tab-link.active {
    color: #25D366;
    border-bottom: 2px solid #25D366;
}

.wa-tab-content {
    display: none;
}

.wa-tab-content.active {
    display: block;
}

/* Form Styles */
.wa-tab-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.wa-tab-content button {
    width: 100%;
    padding: 12px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wa-tab-content button:hover {
    background-color: #1ebe54;
}

.wa-lost-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

/* Response Messages */
#wa-login-response,
#wa-register-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#wa-login-response.error,
#wa-register-response.error {
    color: #d63638;
    background-color: #f8ebea;
}

#wa-login-response.success,
#wa-register-response.success {
    color: #00a32a;
    background-color: #edfaef;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .wa-chat-wrapper {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        text-align: right;
    }
    
    .wa-chat-button {
        padding: 15px;
        border-radius: 50px;
        font-size: 16px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .wa-modal-content {
        margin: 20% auto;
        width: 85%;
    }
}