:root {
    --splashscreen-startup-background: #fcf5eb;
    --splashscreen-startup-background-rgb: 252, 245, 235;
    --splashscreen-startup-icon: rgba(0, 0, 0, 0.1);
    --splashscreen-primary-title: #0A1014;
    --splashscreen-secondary-lighter: #5B6368;
    --splashscreen-progress-primary: #1DAA61;
    --splashscreen-progress-background: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--splashscreen-startup-background);
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.login-container {
    background-color: #222e35;
    border-radius: 3px;
    padding: 40px;
    text-align: center;
    color: #e9edef;
}

.whatsapp-logo {
    margin-bottom: 20px;
}

.whatsapp-logo img {
    width: 40px;
    height: 40px;
}

h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #e9edef;
}

.qr-container {
    margin-bottom: 40px;
}

.qr-code {
    background-color: #fff;
    padding: 20px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 20px;
}

.qr-code img {
    width: 200px;
    height: 200px;
}

.qr-container p {
    margin-bottom: 15px;
    color: #8696a0;
}

.qr-container ol {
    text-align: left;
    display: inline-block;
    color: #8696a0;
}

.qr-container li {
    margin-bottom: 10px;
}

.browser-info {
    border-top: 1px solid #374045;
    padding-top: 30px;
    color: #8696a0;
}

.browser-info p {
    margin-bottom: 15px;
}

.browser-info ul {
    list-style: none;
    margin-bottom: 20px;
}

.browser-info li {
    margin-bottom: 5px;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    background-color: #222e35;
}

.sidebar {
    width: 30%;
    background-color: #111b21;
    border-right: 1px solid #222d34;
}

.header {
    height: 60px;
    background-color: #202c33;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.user-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-icons {
    display: flex;
    list-style: none;
}

.nav-icons li {
    color: #aebac1;
    font-size: 1.2rem;
    margin-left: 25px;
    cursor: pointer;
}

.search-container {
    padding: 8px 15px;
    background-color: #111b21;
}

.search {
    background-color: #202c33;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.search i {
    color: #aebac1;
    margin-right: 10px;
}

.search input {
    background-color: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
}

.chat-list {
    height: calc(100% - 108px);
    overflow-y: auto;
}

.main {
    width: 70%;
    background-color: #0b141a;
}

.main-header {
    height: 60px;
    background-color: #202c33;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.chat-header {
    display: flex;
    align-items: center;
}

.chat-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-info h3 {
    color: #e9edef;
    font-size: 1rem;
}

.chat-info p {
    color: #8696a0;
    font-size: 0.8rem;
}

.chat-icons {
    display: flex;
    list-style: none;
}

.chat-icons li {
    color: #aebac1;
    font-size: 1.2rem;
    margin-left: 25px;
    cursor: pointer;
}

.chat-container {
    height: calc(100% - 120px);
    background-color: #0b141a;
    padding: 20px;
    overflow-y: auto;
}

.chat-footer {
    height: 60px;
    background-color: #202c33;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.chat-input {
    width: 100%;
    height: 40px;
    background-color: #2a3942;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.chat-input i {
    color: #8696a0;
    font-size: 1.2rem;
    margin: 0 10px;
}

.chat-input input {
    background-color: transparent;
    border: none;
    outline: none;
    color: #e9edef;
    width: 100%;
    padding: 0 10px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111b21;
}

::-webkit-scrollbar-thumb {
    background: #374045;
}

::-webkit-scrollbar-thumb:hover {
    background: #444c52;
}

.chat {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #222d34;
    cursor: pointer;
}

.chat:hover {
    background-color: #202c33;
}

.chat-info {
    flex: 1;
    margin-left: 15px;
}

.chat-time {
    color: #8696a0;
    font-size: 0.8rem;
}

.message {
    max-width: 65%;
    margin: 10px 0;
    padding: 8px 10px;
    border-radius: 7.5px;
    position: relative;
}

.message.sent {
    background-color: #005c4b;
    margin-left: auto;
}

.message.received {
    background-color: #202c33;
    margin-right: auto;
}

.message-content p {
    color: #e9edef;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.message-content .time {
    color: #8696a0;
    font-size: 0.7rem;
    float: right;
    margin-top: 5px;
}

.wa-header {
    display: flex;
    align-items: center;
    padding: 32px 0 32px 48px;
}
.wa-logo {
    width: 40px;
    height: 40px;
}
.wa-logo-text {
    color: #25d366;
    font-size: 28px;
    font-weight: 700;
    margin-left: 12px;
    letter-spacing: -1px;
}

.wa-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh;
}

.wa-download-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    padding: 24px 32px;
    margin-bottom: 32px;
    width: 700px;
    max-width: 95vw;
    border: 1px solid #d1d7db;
}
.wa-download-icon {
    background: #e9f8f3;
    border-radius: 12px;
    padding: 16px;
    margin-right: 24px;
    color: #25d366;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wa-download-content h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 6px 0;
    color: #222;
}
.wa-download-content p {
    color: #54656f;
    font-size: 15px;
    margin: 0;
}
.wa-download-btn {
    margin-left: auto;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.wa-download-btn:hover {
    background: #1da851;
}

.wa-login-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 40px 32px;
    width: 900px;
    max-width: 98vw;
    border: 1px solid #d1d7db;
    margin-bottom: 32px;
}
.wa-login-content {
    flex: 1.2;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wa-login-content h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 16px 0;
    color: #222;
}
.wa-desc {
    color: #54656f;
    font-size: 16px;
    margin-bottom: 24px;
}
.wa-steps {
    color: #222;
    font-size: 16px;
    margin-bottom: 24px;
    padding-left: 18px;
}
.wa-steps li {
    margin-bottom: 12px;
    line-height: 1.6;
}
.wa-icon-info {
    background: #f0f2f5;
    border-radius: 50%;
    padding: 2px 6px;
    margin: 0 2px;
    font-size: 15px;
    color: #54656f;
    display: inline-block;
}
.wa-links {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wa-help-link, .wa-phone-link {
    color: #008069;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: text-decoration 0.2s;
}
.wa-help-link:hover, .wa-phone-link:hover {
    text-decoration: underline;
}

.wa-login-qr {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 260px;
}
.wa-qr-img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.wa-qr-img img {
    width: 100%;
    height: auto;
    display: block;
}
.wa-qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.wa-qr-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#wa-qr-code {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.wa-qr-options {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wa-checkbox {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #222;
    cursor: pointer;
    gap: 8px;
    user-select: none;
}
.wa-checkbox input[type="checkbox"] {
    accent-color: #25d366;
    width: 18px;
    height: 18px;
    margin-right: 6px;
}
.wa-footer {
    text-align: center;
    color: #8696a0;
    font-size: 15px;
    padding: 24px 0 16px 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 1000px) {
    .wa-login-box, .wa-download-box {
        flex-direction: column;
        align-items: stretch;
        width: 98vw;
        padding: 24px 8px;
    }
    .wa-login-content {
        padding-right: 0;
        margin-bottom: 24px;
    }
}

.webhook-btn {
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.webhook-btn:hover {
    background: #1da851;
}

.webhook-btn:active {
    background: #128c7e;
} 