#bas-widget-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #25D366; /* WhatsApp Green */
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; /* Essential for the notification dot */
}

.whatsapp-btn {
    
    background: gray !important;
}

#bas-main-btn i {
    font-size: 32px !important; 
}

#bas-main-btn:hover {
    background: #20ba5a;
    transform: scale(1.1);
}

.bas-notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: basPulse 2s infinite;
}

@keyframes basPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,59,48, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,59,48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,59,48, 0); }
}

#bas-support-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    transform-origin: bottom right;
}

.bas-card-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.9);
}

.bas-card-header {
    background: #0d6efd;
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    position: relative;
}

.bas-admin-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    border: 1px solid rgba(255,255,255,0.4);
}

.bas-admin-info strong { display: block; font-size: 15px; letter-spacing: 0.3px; }
.bas-admin-info span { font-size: 12px; opacity: 0.85; }
.bas-online-status { color: #b4ffc3; font-size: 11px; font-weight: 600; margin-top: 2px; }

#bas-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.bas-card-body { padding: 20px; }
.bas-support-text { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 15px; margin-top: 0; }

.bas-form-group { margin-bottom: 12px; }
#bas-student-name, #bas-student-message {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
    box-sizing: border-box;
}

#bas-student-name:focus, #bas-student-message:focus { border-color: #0d6efd; }
#bas-student-message { resize: none; min-height: 80px; }

.bas-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.bas-btn:hover { background: #1ebe57; transform: translateY(-1px); }

/* Mobile Optimizations */
@media (max-width: 480px) {
    #bas-support-card {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 75px;
    }
}