/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Chat Container */
#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Chat Bubble */
#chat-bubble {
    background-color: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

/* Chat Box - Fade In/Out */
#chat-box {
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#chat-box.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Chat Header */
#chat-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

/* Chat Body */
#chat-body {
    padding: 10px;
    font-size: 14px;
}

/* Button Group with Ripple Effect */
.button-group button,
.icon-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.button-group button:hover,
.icon-button:hover {
    background-color: #0056b3;
}

/* Ripple Effect */
.button-group button::after,
.icon-button::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.6s, opacity 0.6s;
}

.button-group button:active::after,
.icon-button:active::after {
    transform: scale(20);
    opacity: 0;
    top: var(--y, 50%);
    left: var(--x, 50%);
}

/* Modal Transitions */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#modal.hidden {
    display: none;
}

#modal.show {
    opacity: 1;
    transform: scale(1);
}

#modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}