.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: auto;
}

.chat-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    z-index: 100000;
    pointer-events: all;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.chat-trigger i {
    font-size: 24px;
}

.chat-trigger:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 400px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
    transition: all 0.3s ease;
    z-index: 100000;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.chat-widget.active {
    display: flex;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.user-details-form {
    padding: 15px;
}

.user-details-form h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.user-details-form .form-group {
    margin-bottom: 15px;
}

.user-details-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.user-details-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.user-details-form .form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.user-details-form .btn-primary {
    width: 100%;
    padding: 10px;
    background: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-details-form .btn-primary:hover {
    background: #0056b3;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.chat-controls button {
    background: none;
    border: none;
    color: white;
    padding: 5px;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.chat-controls button:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
    max-height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.user-details-form {
    padding: 15px;
    background: white;
    overflow-y: auto;
    max-height: 100%;
}

.user-details-form h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-block {
    width: 100%;
    display: block;
}

.mess.chat-interface {
    padding: 10px;
    background-color: white;
    border-top: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
    border-radius: 20px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.input-group .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .btn i {
    font-size: 16px;
}

.message {
    flex: 1;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.message-time {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 2px;
}
#send-message-form button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#send-message-form button:hover {
    background-color: #0056b3;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button,
.message-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.submit-button:hover,
.message-form button:hover {
    background-color: #0056b3;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}

.message.admin {
    background-color: #e9ecef;
    color: #333;
    margin-right: auto;
}

.message-form {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.message-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.message-form button {
    width: auto;
}
