* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f5f7;
    color: #1c1e21;
}

/* --- Login --- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 320px;
}
.login-box h1 { text-align: center; margin-bottom: 24px; font-size: 20px; }
.login-box label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
.login-box input {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px;
}
.login-box button {
    width: 100%; margin-top: 20px; padding: 12px; background: #25d366; color: white;
    border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.login-box button:hover { background: #1ebd5a; }
.login-box .error { color: #d93025; font-size: 13px; text-align: center; }

/* --- Layout geral --- */
.topbar {
    background: #128c7e;
    color: white;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { margin: 0; font-size: 18px; }
.topbar nav a {
    color: white; text-decoration: none; margin-left: 20px; font-size: 14px; opacity: 0.85;
}
.topbar nav a.active, .topbar nav a:hover { opacity: 1; text-decoration: underline; }

main { max-width: 1100px; margin: 0 auto; padding: 24px; }

.flash {
    background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c1;
    padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
}

/* --- Stats --- */
.stats-grid { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.stat-card {
    background: white; border-radius: 10px; padding: 18px 24px; flex: 1;
    min-width: 120px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stat-card .num { display: block; font-size: 28px; font-weight: 700; color: #128c7e; }
.stat-card span:last-child { font-size: 13px; color: #666; }

.empty-state { color: #888; padding: 40px; text-align: center; }

/* --- Pack cards (moderação) --- */
.pack-card {
    background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pack-header { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.tray-preview { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #eee; }
.pack-header h3 { margin: 0 0 4px; }
.meta { font-size: 13px; color: #666; margin: 0; }
.meta code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; }

.sticker-grid {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
    padding: 12px; background: #fafafa; border-radius: 8px;
}
.sticker-thumb { text-align: center; width: 80px; }
.sticker-thumb img { width: 70px; height: 70px; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 8px; }
.sticker-thumb span { display: block; font-size: 11px; color: #777; margin-top: 2px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.reject-form input[type=text] { padding: 8px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }

button { cursor: pointer; border: none; border-radius: 6px; font-weight: 600; }
.btn-approve { background: #25d366; color: white; padding: 10px 18px; }
.btn-approve:hover { background: #1ebd5a; }
.btn-reject { background: #fde8e8; color: #c0392b; padding: 10px 18px; }
.btn-reject:hover { background: #fbd5d5; }
.btn-delete { background: #c0392b; color: white; padding: 6px 12px; font-size: 12px; }
.btn-small { padding: 6px 12px; font-size: 12px; }

/* --- Tabela de pacotes --- */
.filters { margin-bottom: 16px; display: flex; gap: 16px; }
.filters a { color: #128c7e; text-decoration: none; font-size: 14px; padding: 6px 0; }
.filters a.active { font-weight: 700; border-bottom: 2px solid #128c7e; }

.packs-table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.packs-table th, .packs-table td { padding: 10px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.packs-table th { background: #fafafa; font-weight: 700; color: #555; }
.table-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #eee; }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-approved { background: #e6f4ea; color: #1e7e34; }
.badge-pending { background: #fff4e0; color: #b8860b; }
.badge-rejected { background: #fde8e8; color: #c0392b; }
