body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.chat-container {
    width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.chat-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    background-color: #fafafa;
    border-radius: 8px;
    height: 240px;
}

.message {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.message.customer {
    background-color: #e0f7fa;
    text-align: left;
}

.message.staff {
    background-color: #f1f8e9;
    text-align: right;
    width: 60%;
    float: right;
}
.message.user {
    width: 60%;
    float: left;
}
.input-container {
    display: flex;
    justify-content: space-between;
}

input[type="text"] {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background-color: #00796b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #004d40;
}

#customer-list-container h3 {
    padding: 10px 10px;
    background: green;
    color: #fff;
    margin: 0;
}
#customer-list {
    min-height: 150px;
    border: #80808040 1px solid;
    margin: 0;
    background: #fff;
    padding: 0;
    max-height: 300px;
    overflow-y: scroll;
}
#customer-list li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: #8080801f 1px solid;
}
.chat-window {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    max-width: 100%;
    width: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    float: right;
    margin-left: 5px;
    background: #fff;
    z-index: 1;
}
.chat-window .title{
    background-color: #f1f1f1;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.chat-window .title span{
    padding:5px;
    cursor: pointer;
}
.chat-window .title .action{
    flex: 1;
    text-align: right;
}
.chat-window .title .action span:hover {
    background: #80808030;
    border-radius: 50%
}
.chat-window .title .minus{
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
.chat-window.collapsed {
    max-height: 40px; 
}
.minus:before {
    content: "\2014";
}
.chat-window .chat-box,
.chat-window.collapsed .chat-box,
.chat-window.collapsed .input-container {
    display: none;
}
.chat-window .chat-header {
    background: green;
    color: #fff;
    padding: 10px;
    display: flex

}
.chat-window .chat-box{
    margin: 10px;
    height: 250px;
    display: block;
}
.chat-header span.close {
    padding: 8px;
    cursor: pointer;
    font-weight: 700;
    text-align: right;
}
#chat {
    position: fixed;
    bottom: 0;
    right: 0;
}
.minux {
    cursor: pointer;
    padding: 10px 15px;
    line-height: 0px;
    vertical-align: top;
}
#chat-windows{
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1;
}
#chat-windows .chat-body{
    height: 280px;
    position: relative;
}
.sidebar ul{
    padding: 0;
}
.sidebar ul li{
    list-style-type: none;
}
.sidebar ul li a {
    display: block;
    padding: 5px 10px;
    color: grey;
    text-decoration: none;
    border-bottom: #80808054 1px solid;
}
header {
    padding: 30px 0;
    background: green;
    color: #fff;
}
.title{
    padding: 10px;
    color: green;
    font-weight: 700;
    border-bottom: green 1px solid;
    margin-bottom: 15px;
    text-transform: uppercase;
}
main {
    padding: 25px 0;
}

/* Thẻ ngoài chứa form */
.wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    transition: all 0.3s ease-in-out;
    margin: 0 auto;
}

/* Tiêu đề */
.wrapper h1 {
    text-align: center;
    color: #333;
    font-size: 26px;
    margin-bottom: 30px;
}

/* Form */
form.login {
    display: flex;
    flex-direction: column;
}

/* Label */
form.login label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

/* Input fields */
form.login input[type="text"],
form.login input[type="password"],
form.login input[type="email"] {
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
}

form.login input:focus {
    border-color: #7f5af0;
    outline: none;
}

/* Submit button */
form.login input[type="submit"] {
    background-color: #7f5af0;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form.login input[type="submit"]:hover {
    background-color: #5c3dcb;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.overlay-background {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  width: 100%;
  height: 100%;
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.sidebar a.active
 {
    color: #e20f0f;
}


 body {
            font-family: 'Segoe UI', sans-serif;
            padding: 2em;
            background: #f0f2f5;
            margin: 0;
        }

        h1 {
            text-align: center;
        }

        #result {
            margin-bottom: 120px;
            /* khoảng trống dưới cho form */
            padding: 1em;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            min-height: 100px;
            overflow-y: auto;
        }

        .form-group {
            margin: 1rem 0;
        }

        .form-group small {
            text-align: right;
            display: block;
        }

        /* Chat input form fixed at bottom */
        #chat-form-container {
            width: 700px;
            max-width: 100%;
            margin: auto;
            background: #ffffff;
            border: 1px solid #ddd;
            border-radius: 30px;
            padding: 10px 15px;
            display: flex;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 50px;
            margin-top: 10px;
        }

        .chat-form {
            width: 100%;
            position: fixed;
            bottom: 0;
            left: 0;
            background-color: #fff;
        }

        #chat-form {
            display: flex;
            width: 100%;
            align-items: center;
        }

        input[type="text"] {
            flex: 1;
            border: none;
            padding: 12px 16px;
            font-size: 16px;
            border-radius: 30px;
            outline: none;
        }

        button {
            border: none;
            background: #007bff;
            color: white;
            padding: 12px 18px;
            margin-left: 10px;
            font-size: 16px;
            border-radius: 30px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        button:hover {
            background: #0056b3;
        }

        

        .user-message .inner,
        .bot-message .inner,
        .admin-message .inner {
            background: #33333314;
            display: inline-block;
            padding: 0.5rem;
            border-radius: 11px;
        }

        @media (max-width: 600px) {
            #chat-form-container {
                left: 10px;
                right: 10px;
            }

            input[type="text"],
            button {
                font-size: 14px;
            }
        }