@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css";

/* Basic Reset */
body,
h1,
p,
div,
form,
input,
textarea,
button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
        Arial, sans-serif;
    background-color: #f0f2f5;
}

h1,
p {
    padding: 20px;
}

/* Floating Button */
.tengerways-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 230px;
    min-width: 140px;
    height: 80px;
    padding: 0 25px;
    background-color: #3f51b5;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.tengerways-widget-button.open {
    background-color: #3f51b5;
}

.tengerways-widget-button .icon-open,
.tengerways-widget-button.open .icon-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.tengerways-widget-button .icon-close {
    display: none;
}

.tengerways-widget-button.open .icon-open {
    display: none;
}

.support-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.support-text strong {
    font-size: 18px;
    font-weight: 700;
}

.online-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    margin-right: 6px;
}

.btn-avatars {
    display: flex;
    margin-left: 16px;
}

.btn-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #3f51b5;
    margin-left: -12px;
}

/* Widget Container */
.tengerways-widget-container {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 400px;
    height: auto;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
        Arial, sans-serif;
}

@media screen and (max-width: 480px) {
    .tengerways-widget-container {
        max-height: 80vh;
        width: 90%;
        right: 5%;
    }
}

.tengerways-widget-container.open {
    display: flex;
}

/* Widget Header */
.tengerways-widget-header {
    background: #0c1a5e;
    color: white;
    padding: 24px;
    position: relative;
}

.tengerways-widget-header .logo {
    display: flex;
    justify-content: space-between;
}

.tengerways-widget-header .logo img {
    height: 30px;
}

.tengerways-widget-header .close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    font-size: 20px;
}

.tengerways-widget-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 4px;
    color: white;
}

.tengerways-widget-header p {
    font-size: 16px;
    color: #d0d4e4;
    padding: 0;
}

.tengerways-widget-header .avatars {
    display: flex;
    margin-top: 28px;
    margin-left: 12px;
}

.tengerways-widget-header .avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #0c1a5e;
    margin-left: -12px;
}

/* Widget Form */
.tengerways-widget-form {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.tengerways-widget-form .form-group {
    margin-bottom: 16px;
}

.tengerways-widget-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.tengerways-widget-form label span {
    color: #e53e3e;
}

.tengerways-widget-form input,
.tengerways-widget-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.tengerways-widget-form input::placeholder,
.tengerways-widget-form textarea::placeholder {
    color: #a0aec0;
}

.tengerways-widget-form textarea {
    min-height: 120px;
    resize: vertical;
}

.tengerways-widget-form .attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0c1a5e;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.tengerways-widget-form .attachment-link .plus {
    font-size: 20px;
}

/* Widget Footer */
.tengerways-widget-footer {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
}

.tengerways-widget-form .submit-btn {
    width: 100%;
    background-color: #4caf50;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tengerways-widget-form .submit-btn:hover {
    background-color: #45a049;
}

.glass-pattern {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    background: radial-gradient(50% 50% at 50% 50%, #e3e0e0 0%, #ffffff00 100%);
    width: 100%;
    height: 300px;
    z-index: 100;
    top: -50%;
    right: -40%;
}