@import url("https://fonts.googleapis.com/css2?family=Life+Savers:wght@400;700;800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* login-1 css start */

.form-label {
    float: left;
    padding-left: 6px;
}

.login-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #3daf2c;
    background: #3daf2c;
}

.login-logo img {
    width: 200px;
}

.sign-in-btn {
    background: #32f118;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
}

.sign-in-btn:hover {
    /* border: 1px solid #F74929; */
    color: #fff;
}

.message {
    list-style-type: none;
}

input::-ms-reveal {
    display: none;
}

.eye-closed,
.eye-open {
    color: #000000;
}

.form-bg {
    background-color: #000000;
    padding: 80px 50px;
    width: 650px;
    border-radius: 30px;
    color: white;
}

.form-bg .form-control {
    padding: 1rem 0.75rem;
    border: 1px solid #fff;
    padding-right: 45px;
}

.form-bg .email-icon,
.password-icon {
    padding: 1rem 0.75rem;
    position: absolute;
    right: 0;
    top: 36%;
}

.forgot-password .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 3px;
    border: 1px solid #fb8303;
    margin-right: 7px;
}

/* Dark Mode - Login Page */
body.dark-mode .login-bg {
    background: #121212;
    /* fallback */
    background: linear-gradient(135deg, #0d0d0d 0%, #1e1e1e 100%);
}

body.dark-mode .login-logo img {
    filter: brightness(0.9);
    /* keep logo visible on dark bg */
}

body.dark-mode .form-bg {
    background-color: #1f1f1f;
    color: #eaeaea;
    border: 1px solid #333;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
}

body.dark-mode .form-bg .form-control {
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: #eaeaea;
    padding-right: 45px;
}

body.dark-mode .form-bg .form-control:focus {
    border-color: #32f118;
    /* green highlight */
    box-shadow: 0 0 6px rgba(50, 241, 24, 0.6);
}

body.dark-mode .sign-in-btn {
    background: #32f118;
    color: #fff;
    font-weight: 600;
}

body.dark-mode .sign-in-btn:hover {
    background: #28c514;
}

body.dark-mode .forgot-password .form-check-input {
    border: 1px solid #32f118;
    background-color: transparent;
}

body.dark-mode .forgot-password label {
    color: #ccc;
}

body.dark-mode .modal-body .form-control::placeholder {
    color: #bbb !important;
}

body.dark-mode .form-bg .form-control::placeholder {
    color: #bbb;
    /* muted placeholder */
}

body.dark-mode .eye-closed,
.eye-open {
    color: #6c6c6c;
}

.brand-logo {
    max-width: 200px;
    height: auto;
    transition: opacity 0.3s ease;
}

.theme-toggle button {
    border-radius: 20px;
    padding: 6px 14px;
    transition: all 0.3s ease;
    background-color: #222;
    color: #fff;
}

/* ----- Dark Mode for Conversation Threads Modal ----- */

body.dark-mode #threadsModal .modal-content {
    background-color: #1f1f1f !important;
    color: #e4e4e4 !important;
    border: 1px solid #333 !important;
}

body.dark-mode #threadsModal .modal-header {
    background-color: #333 !important;
    color: #fff !important;
    border-bottom: 1px solid #444 !important;
}

body.dark-mode #threadsModal .btn-close {
    filter: invert(1);
}

/* Modal Body */
body.dark-mode #threadsModal .modal-body {
    background-color: #1e1e1e !important;
    padding: 0 !important;
}

/* Thread Container Text */
body.dark-mode #threadsContainer p {
    color: #ccc !important;
}

/* Thread Message Wrapper */
body.dark-mode .thread-message {
    border-bottom: 1px solid #333 !important;
    background: transparent !important;
}

/* Chat Bubble (Right side container) */
body.dark-mode .thread-right {
    background-color: #262626 !important;
    border: 1px solid #333 !important;
    color: #e4e4e4 !important;
}

/* Agent Messages */
body.dark-mode .thread-agent .thread-right {
    background-color: #2e3b4b !important;
    border-color: #3a4a5a !important;
}

/* Customer Messages */
body.dark-mode .thread-customer .thread-right {
    background-color: #34422b !important;
    border-color: #415638 !important;
}

/* Avatar Styling */
body.dark-mode .thread-message img {
    border: 2px solid #444 !important;
    box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.08) !important;
}

/* Thread Header (name + time) */
body.dark-mode .thread-header {
    color: #e4e4e4 !important;
}

body.dark-mode .thread-author {
    color: #fff !important;
}

body.dark-mode .thread-author small {
    color: #ffffff !important;
}

body.dark-mode .thread-time {
    color: #aaa !important;
}

/* Body text */
body.dark-mode .thread-body {
    color: #000000 !important;
}

/* "No threads" message */
body.dark-mode #threadsContainer .text-muted {
    color: #bbb !important;
}

/* ----- Chat Layout ----- */
.thread-message {
    display: flex;
    margin-bottom: 18px;
    width: 100%;
}

/* Agent = left side */
.thread-agent {
    justify-content: flex-start;
}

/* Customer = right side */
.thread-customer {
    justify-content: flex-end;
}

/* Message bubble wrapper */
.thread-right {
    max-width: 65%;
}

/* Avatar */
.thread-left img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 10px;
}

/* ----- Chat Bubbles ----- */

/* Agent bubble (left) */
.thread-agent .thread-body {
    background: #e8e8e8;
    color: #000;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 0;
}

/* Customer bubble (right) */
.thread-customer .thread-body {
    background: #e8e8e8;
    color: #000000;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-right-radius: 0;
}

/* Name + Time */
.thread-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.thread-author small {
    opacity: 0.75;
}

/* Align avatar correctly */
.thread-agent .thread-left {
    order: 1;
}

.thread-agent .thread-right {
    order: 2;
}
