/**
 * Heyoola Monster Stylesheet - v10.0
 * طراحی اختصاصی نئونی، شیشه‌ای و واکنش‌گرا
 */

/* ۱. تعریف متغیرها و فونت‌ها */
:root {
    --primary-theme: #0ee3a8; /* رنگ پیش‌فرض هیولا */
    --bg-dark: #0b1020;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}


/* ۲. تنظیمات پایه بدنه و اسکرول */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
}

/* حذف اسکرول‌بار برای زیبایی بیشتر در موبایل */
::-webkit-scrollbar { width: 0px; background: transparent; }

/* ۳. انیمیشن‌های اختصاصی هیولا */
@keyframes monsterEntrance {
    0% { transform: translateX(-100%) rotate(-10deg); opacity: 0; }
    100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

@keyframes monsterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ۴. استایل المان‌های اصلی (Layout) */
.animate-item {
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* کارت‌های شیشه‌ای محصولات */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    transition: 0.4s all ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:active { transform: scale(0.95); }

.product-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--primary-theme) 0%, transparent 70%);
    opacity: 0; transition: 0.4s; z-index: -1;
}

.product-card:hover::after { opacity: 0.1; }

/* دکمه اختصاصی هیولا */
.btn-heyoola {
    background: var(--primary-theme);
    color: #000;
    border: none;
    border-radius: 18px;
    font-family: 'Lalezar';
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px var(--primary-theme);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-heyoola:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px var(--primary-theme); }
.btn-heyoola:disabled { background: #475569; box-shadow: none; cursor: not-allowed; }

/* ۵. استایل انتخاب‌گر سایز (Size Selector) */
.size-option {
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.size-option.active {
    box-shadow: 0 0 20px var(--primary-theme);
    color: var(--primary-theme);
}

/* ۶. تنظیمات هدر و ناوبری */
header h1 {
    text-shadow: 0 0 15px var(--primary-theme);
    margin: 0;
}

.wallet-widget {
    animation: slideUp 0.5s ease;
}

/* ۷. بخش ادمین (Admin POS) */
.order-card {
    animation: slideUp 0.4s ease forwards;
}

.status-btn {
    transition: 0.2s;
    font-family: 'Lalezar';
}

.status-btn:active { transform: scale(0.98); }

/* ۸. لایه‌های گرافیکی پس‌زمینه */
#theme-layer-bg {
    z-index: -2;
}

#theme-layer-char img {
    filter: drop-shadow(0 0 30px var(--primary-theme));
}

/* ۹. استایل فرم آدرس و ورودی‌ها */
input, textarea {
    border: 2px solid #334155;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

input:focus { border-color: var(--primary-theme); box-shadow: 0 0 10px var(--primary-theme); }

/* ۱۰. اسکرین‌های بارگذاری و وضعیت */
.spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
/* --- استایل‌های اختصاصی پنل کاربری و نوار ابزار v10.0 --- */

/* ۱. استایل نوار ابزار پایین (Navbar) */
.navbar-bottom {
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    padding-bottom: env(safe-area-inset-bottom); /* سازگاری با آیفون‌های جدید */
}

.navbar-bottom div:active {
    transform: scale(0.9);
}

/* ۲. کانتینر صفحات پنل (سفارشات، پرداخت، تنظیمات) */
.panel-view {
    padding: 20px 20px 120px 20px; /* فضای کافی برای نوار ابزار */
    min-height: 100vh;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.panel-view h2 {
    margin-bottom: 25px;
    font-size: 28px;
    text-shadow: 0 0 10px var(--primary-theme);
}

.panel-view .emoji {
    margin-left: 10px;
}

/* ۳. نشانگر وضعیت سفارشات (Status Badges) */
.status-badge {
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* رنگ‌بندی داینامیک وضعیت‌ها */
.status-badge[data-status="pending"] { color: #94a3b8; }
.status-badge[data-status="preparing"] { color: #fbbf24; border-color: #fbbf24; }
.status-badge[data-status="ready"] { color: #3b82f6; border-color: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
.status-badge[data-status="completed"] { color: #22c55e; border-color: #22c55e; }
.status-badge[data-status="cancelled"] { color: #ef4444; border-color: #ef4444; }

/* ۴. دکمه شناور سبد خرید */
.cart-float-btn {
    animation: pulse-glow 2s infinite;
    cursor: pointer;
    transition: 0.3s;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(14, 227, 168, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(14, 227, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 227, 168, 0); }
}

/* ۵. استایل‌های پروفایل و تنظیمات */
textarea {
    resize: none;
    font-family: inherit;
    line-height: 1.6;
}

.wallet-info {
    text-align: center;
    backdrop-filter: blur(5px);
}

/* ۶. لودینگ داخلی صفحات */
.loader-inner {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-theme);
    font-family: 'Lalezar';
    font-size: 20px;
    animation: pulse 1s infinite;
}

/* ۷. انیمیشن Bounce برای آیکون‌های رهگیری */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}