/* style.css - Estilo Geral, WhatsApp Chatbot e Painel de Pedidos */
:root {
    --wa-bg: #efeae2;
    --wa-teal: #008069;
    --wa-teal-light: #00a884;
    --wa-bubble-in: #ffffff;
    --wa-bubble-out: #d9fdd3;
    --wa-dark: #111b21;
    --wa-gray: #667781;
    --wa-light: #f0f2f5;
    --primary: #2563eb;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.5;
}

/* LANDING PAGE STYLE */
.landing-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    /*min-height: 100vh;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.landing-header {
    background-color: var(--primary);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.landing-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.landing-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.landing-hero-img {
    font-size: 64px;
    margin-bottom: 20px;
}

.landing-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.btn-whatsapp-style {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s;
    width: 100%;
    justify-content: center;
}

.btn-whatsapp-style:hover {
    background-color: #20ba5a;
    transform: scale(1.02);
}

.success-box {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* CHATBOT OVERLAY (FULL SCREEN) */
#chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--wa-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: var(--wa-teal);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-user-details h3 {
    font-size: 16px;
    font-weight: 600;
}

.chat-user-details span {
    font-size: 11px;
    opacity: 0.9;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-window {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Balões de Mensagem */
.msg-container {
    display: flex;
    width: 100%;
}

.msg-container.bot {
    justify-content: flex-start;
}

.msg-container.user {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    font-size: 15px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.msg-container.bot .msg-bubble {
    background-color: var(--wa-bubble-in);
    color: var(--wa-dark);
    border-top-left-radius: 0;
}

.msg-container.user .msg-bubble {
    background-color: var(--wa-bubble-out);
    color: var(--wa-dark);
    border-top-right-radius: 0;
}

.msg-time {
    font-size: 10px;
    color: var(--wa-gray);
    text-align: right;
    margin-top: 4px;
    display: block;
}

.chat-footer {
    background-color: #f0f2f5;
    padding: 12px;
    border-top: 1px solid #e1e1e1;
}

.chat-input-placeholder {
    background: white;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 12px;
    border: 1px solid #e6e6e6;
}

.chat-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-option-btn {
    background-color: white;
    color: var(--wa-teal);
    border: 1px solid #e1e1e1;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.1s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-option-btn:active, .chat-option-btn:hover {
    background-color: var(--wa-bubble-out);
    border-color: #bdf6b4;
    transform: scale(0.98);
}

.chat-input-text-container {
    display: flex;
    gap: 8px;
}

.chat-text-input {
    flex-grow: 1;
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.chat-send-btn {
    background-color: var(--wa-teal);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PAINEL DE PEDIDOS STYLE */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 16px;
}

.admin-header h1 {
    font-size: 24px;
    color: var(--wa-dark);
}

.table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
}

.orders-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.orders-table tr:hover {
    background-color: #f8fafc;
}

.select-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    background-color: white;
    cursor: pointer;
}

.select-status[data-status="nuevo"] { border-left: 4px solid var(--primary); }
.select-status[data-status="en curso"] { border-left: 4px solid var(--warning); }
.select-status[data-status="completado"] { border-left: 4px solid var(--success); }
.select-status[data-status="cancelado"] { border-left: 4px solid var(--danger); }

.link-receipt {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-receipt:hover {
    text-decoration: underline;
}

.input-responsavel, .input-valor {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 130px;
    font-size: 13px;
}

.btn-save-inline {
    background-color: var(--wa-teal);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

/* Modal Simple para Upload */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.modal-content h3 {
    margin-bottom: 16px;
}

.modal-close {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
}
