@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #d85e76;
    --dark: #1a1a2e;
    --light: #f8f9fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.chat-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 0px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /*height: 90vh;*/
}

.chat-header {
    background: #d41845;
    color: white;
    padding: 15px 20px;
    text-align: center;
}
.chat-header h1 {
    font-size: 22px;
}

.chat-header p {
    font-size: 16px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background-color: #f8f9fa;
    color: var(--dark);
    border-bottom-left-radius: 5px;
    font-size: 14px;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

#user-input {
    flex: 1;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  line-height: 20px;
}

#send-button {
    margin-left: 10px;
    padding: 7px 15px;
    background: #d41845;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#send-button:hover {
    background: #3180fb;
}

.typing-indicator {
    display: none;
    padding: 10px 15px;
    background: #e9ecef;
    border-radius: 18px;
    align-self: flex-start;
    color: #666;
    font-style: italic;
}



@media (max-width: 600px) {
    .chat-container {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .message {
        max-width: 85%;
    }
}
.message {
    /*animation: fadeIn 0.3s ease-out;*/
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#clear-btn {
    margin-left: 10px;
    padding: 8px 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /*display: none;*/
}

#clear-btn:hover {
    background: #ff5252;
}

.quick-questions button {
    margin-left: 5px;
  margin-bottom: 5px;
  padding: 4px 10px;
  background: #fff;
  color: #606060;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
  border: 1px solid #606060;
  font-weight: 400;
}
.quick-questions {
    margin-bottom: 20px;
}

.operator-message {
    background: #fff3cd;
    align-self: flex-start;
    border-left: 4px solid #ffcc00;
}

.client-info-modal {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
}

.modal-content {
    background:white;
    padding:20px;
    border-radius:8px;
    width:300px;
    display:flex;
    flex-direction:column;
    gap:10px;
}
#client-info-inline {
    padding: 8px 20px !important;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    margin: 50px auto 0 auto;
}

.container label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.container input[type="text"],
.container input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
}

.container input[type="text"]:focus,
.container input[type="password"]:focus {
    border-color: #4a77ff;
    box-shadow: 0 0 0 3px rgba(74, 119, 255, 0.25);
    outline: none;
    background: #fff;
}

.container button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: #4a77ff;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.container button:hover {
    background: #3a63d1;
}


/* Admin Styles */
.chat-header-admin {
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    text-align: center;
}

.chat-header-admin {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.chat-header-admin h2 {
font-size: 20px;
font-weight: 500;
}

.btn-primary {
    margin: 10px 0 0 10px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
#reply-form textarea {
    width: 100%;
    min-height: 200px;
    border-radius: 0px;
    border: 1px solid #ddd;
  padding: 15px;
}


/* Custom */

.chat-container {
    border-top: 1px solid #ccc;
    max-width: 800px;
    margin: 0 auto !important;
    -webkit-box-shadow: -4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: -4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: -4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}
.quick-questions {
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.message.client {
    background: #fff3cd;
}

.message.operator {
    background: #f8f9fa;
}


.message strong {
    font-size: 14px;
}

.message div {
    font-size: 14px;
}