/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #f4f5f7;
    color: #111827;
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #052845;
    position: fixed;
    top: 0;
    left: -260px;
    transition: 0.3s ease;
    z-index: 999;
    padding-top: 20px;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.logo-area h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 14px 22px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    transition: 0.3s;
}

.sidebar ul li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar ul li.active {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   OVERLAY (MOBILE)
============================================ */
.overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
}

.overlay.show {
    display: block;
}

/* ============================================
   TOPBAR
============================================ */
.topbar {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 900;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
}

.title {
    margin-left: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #052845;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   CONTENT GLOBAL
============================================ */
.content {
    padding: 32px 24px;
    margin-left: 0;
    width: 100%;
    max-width: none;
}

.main-wrapper {
    width: 100%;
}

@media(min-width: 900px) {
    .sidebar {
        left: 0;
    }

    .overlay {
        display: none !important;
    }

    .content,
    .main-wrapper {
        margin-left: 260px;
        width: calc(100% - 260px);
        max-width: calc(100% - 260px);
    }
}

/* ============================================
   HOME – CENTRALIZADA
============================================ */
.content.home-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    width: 100%;
}

/* ============================================
   CARDS GERAIS
============================================ */
.card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 24px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.welcome-card {
    background: #0a2f4d;
    color: #fff;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.action-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    text-align: center;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #052845;
    margin-bottom: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #052845;
    margin-bottom: 15px;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ============================================
   BOTÕES
============================================ */
.btn {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    margin: 0 auto 16px auto;
    font-weight: 600;
    display: block;
}

.btn.green {
    background: #0dbf45;
    color: #fff;
}

.btn.green:hover {
    background: #0a9c38;
}

.btn.navy {
    background: #0a2f4d;
    color: #fff;
}

.btn.navy:hover {
    background: #061f33;
}

/* ============================================
   INPUTS GLOBAIS
============================================ */
.input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.input:focus,
select:focus,
textarea:focus {
    border-color: #0a2f4d;
    box-shadow: 0 0 0 3px rgba(10, 47, 77, 0.10);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #052845;
}

/* ============================================
   CHIPS / STATUS
============================================ */
.chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e6edf7;
    background: #f7faff;
    font-weight: 900;
    color: #052845;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pix-box {
    margin-top: 10px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 12px;
    color: #065f46;
    font-size: 14px;
}

/* ============================================
   AUTH / RESET PASSWORD
============================================ */
.auth-content {
    min-height: calc(100vh - 60px);
    max-width: none;
    width: 100%;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-box {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.auth-header {
    background: linear-gradient(135deg, #052845, #0a2f4d);
    color: #fff;
    padding: 28px 24px;
    text-align: center;
}

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

.auth-header p {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.5;
}

.auth-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #052845;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.form-group input:focus {
    border-color: #0a2f4d;
    box-shadow: 0 0 0 3px rgba(10, 47, 77, 0.10);
}

.form-message {
    min-height: 22px;
    margin-top: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #065f46;
}

.form-message.error {
    color: #b91c1c;
}

.auth-links {
    margin-top: 18px;
    text-align: center;
}

.auth-links a {
    color: #0a2f4d;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

@media (min-width: 900px) {
    .auth-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

@media (max-width: 899px) {
    .auth-content {
        padding: 24px 14px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-body {
        padding: 20px;
    }
}

/* ============================================
   INPUT PASSWORD
============================================ */
.input-password-wrap {
    position: relative;
    width: 100%;
}

.input-password-wrap input {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 17px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #0a2f4d;
}

/* ============================================
   DASHBOARD
============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0 24px 0;
}

.dashboard-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
}

.dashboard-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.dashboard-card strong {
    display: block;
    font-size: 24px;
    color: #052845;
    font-weight: 700;
}

/* ============================================
   RESPONSIVO
============================================ */
@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 24px 16px;
    }

    .card,
    .action-card,
    .welcome-card {
        padding: 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .btn {
        font-size: 15px;
    }
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-row label {
    margin: 0;
    cursor: pointer;
}

.produto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.produto button {
    background: #0dbf45;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.comanda {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}