/* WhatsApp Job Chatbot — chatbot.css */
.jcs-wrap {
    background: #0d1f1a;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    min-height: 100vh !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    margin: 0;
    font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='30' cy='30' r='4' stroke='%2300a67e22' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='3' stroke='%2300a67e15' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
}

body:has(.jcs-wrap) {
    overflow: hidden;
}
body:has(.jcs-wrap) #wpadminbar {
    display: none !important;
}

.jcs-header {
    background: #1a2e28;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #00a67e22;
    flex-shrink: 0;
}

.jcs-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #00a67e, #007a5e);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 14px; flex-shrink: 0;
}

.jcs-name   { color: #e8f5f0; font-weight: 600; font-size: 15px; }
.jcs-status { color: #00a67e; font-size: 12px; }

.jcs-messages {
    flex: 1;
    padding: 16px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 300px;
}

.jcs-notice {
    font-size: 10px; color: #c9a83a; text-align: center;
    background: #1a2e2899; padding: 4px 10px;
    border-radius: 10px; margin: 0 auto 6px;
    width: fit-content;
}

.jcs-msg-row { display: flex; flex-direction: column; animation: jcsFade .25s ease; }
.jcs-msg-row.jcs-bot  { align-items: flex-start; }
.jcs-msg-row.jcs-user { align-items: flex-end; }

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

.jcs-bubble {
    max-width: 75%; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; line-height: 1.5; word-break: break-word;
}

.jcs-bot-bubble  { background: #1e3028; color: #d4ede5; border-top-left-radius: 2px; }
.jcs-user-bubble { background: #005c4b; color: #e8f5f0; border-top-right-radius: 2px; }

.jcs-time { font-size: 10px; color: #5a8a7a; margin-top: 2px; padding: 0 4px; }

.jcs-quick-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
    width: 100%;
}

.jcs-qr-btn {
    background: transparent;
    border: 1.5px solid #00a67e;
    color: #00c795;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background .15s, color .15s;
    font-family: inherit;
    text-decoration: none;
    display: block;
    width: 85%;
    max-width: 420px;
}
.jcs-qr-btn:hover { background: #00a67e33; color: #00e0aa; }

.jcs-typing { display: none; padding: 0 14px 8px; flex-shrink: 0; }
.jcs-typing.active { display: block; }

.jcs-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: #00a67e; animation: jcsBounce 1s infinite;
}
.jcs-dot:nth-child(2) { animation-delay: .15s; }
.jcs-dot:nth-child(3) { animation-delay: .3s; }

@keyframes jcsBounce {
    0%,80%,100% { transform:scale(.8); opacity:.5; }
    40%         { transform:scale(1.2); opacity:1; }
}