@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-arabic-500-normal.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary: #112548;
    --primary-hover: #1e3a6e;
    --bg-input: #f8fafc;
    --border-light: #e2e8f0;
    --accent: #2c4a85;
}

body {
    background-color: #f1f5f9;
    margin: 0;
    font-family: "Baloo Bhaijaan 2", sans-serif;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}


.main-container { display: flex; flex-direction: row; justify-content: center; }
.main-content { padding: clamp(1rem, 2vw, 2rem); margin: clamp(0.5rem, 1.5vw, 1.5rem); background-color: #ffffff; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); color: var(--primary); width: 100%; max-width: 1200px; text-align: center; direction: rtl; }
.qr-type-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 25px; }
.tab-btn { background: transparent; border: 2px solid var(--border-light); color: #64748b; padding: 8px 15px; border-radius: 50px; cursor: pointer; font-family: inherit; font-size: 0.9rem; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); background: #f0f9ff; transform: translateY(-2px); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 10px rgba(17, 37, 72, 0.3); }
.bmi { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin: 20px 0; border-radius: 24px; background: #ffffff; border: 2px solid var(--border-light); padding: 30px; }
@media (max-width: 800px) { .bmi { grid-template-columns: 1fr; } }
.input-group { display: flex; flex-direction: column; gap: 15px; width: 100%; text-align: right; }
.hidden { display: none !important; }
.pop { width: 100%; background: linear-gradient(135deg, var(--primary) 0%, #2c4a85 100%); color: white; border: none; border-radius: 16px; font-size: 1.2rem; cursor: pointer; margin-top: 20px; padding: 12px; font-family: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.pop:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(17, 37, 72, 0.25); }

/* =========================================
   طراحی بصری پلاک ماشین (License Plate UI)
   ========================================= */
.license-plate-ui {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 8px;
    height: 70px;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    direction: ltr; /* پلاک همیشه چپ به راست است */
}

/* نوار آبی سمت چپ */
.plate-blue-strip {
    background-color: #003399;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    color: white;
}
.plate-flag { width: 20px; }
.plate-ir { font-size: 10px; font-weight: bold; text-align: center; font-family: Arial, sans-serif; line-height: 1.1; }

/* بخش اصلی پلاک (دو رقم - حرف - سه رقم) */
.plate-main-part {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}

/* بخش کد ایران (سمت راست) */
.plate-iran-code {
    border-left: 2px solid #000;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding-bottom: 5px;
}
.iran-text {
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 2px;
}

/* ورودی‌های داخل پلاک */
.plate-input, .plate-select {
    border: none;
    background: transparent;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #000;
    text-align: center;
    outline: none;
    padding: 0;
}
.plate-input:focus, .plate-select:focus {
    background: rgba(186, 230, 253, 0.3);
    border-radius: 4px;
}
.plate-input.sm { width: 45px; }
.plate-input.lg { width: 65px; }
.plate-select {
    appearance: none;
    font-size: 24px;
    width: 45px;
    cursor: pointer;
    text-align-last: center;
}

/* استایل متون در حالت نمایش نتیجه */
.res-text {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #000;
}
.plate-iran-code .res-text {
    font-size: 22px;
}

/* =========================================
   بخش نتایج
   ========================================= */
.result-section { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #f0f9ff; border: 2px dashed #bae6fd; border-radius: 24px; padding: 20px; min-height: 320px; }
.status-icon { font-size: 3.5rem; margin-bottom: 10px; }
.status-icon.success { color: #10b981; }
.status-icon.error { color: #ef4444; }
.status-text { font-size: 1.3rem; margin-bottom: 20px; font-weight: bold; }
.status-text.success { color: #065f46; }
.status-text.error { color: #991b1b; }
.details-box { background: #ffffff; border-radius: 16px; padding: 15px; border: 1px solid var(--border-light); margin-bottom: 20px; text-align: right; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); width: 100%; }
.detail-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-light); font-size: 0.95rem; }
.detail-item:last-child { border-bottom: none; }
.detail-label { color: #64748b; font-weight: bold; }
.detail-value { color: var(--primary); font-weight: bold; }
.empty-state { text-align: center; color: #64748b; }
.download-btn { background: #fff; color: var(--primary); border: 2px solid var(--primary); padding: 10px 25px; border-radius: 50px; cursor: pointer; font-family: inherit; font-size: 1rem; transition: all 0.3s; display: flex; align-items: center; gap: 10px; margin: 0 auto; }
.download-btn:hover { background: var(--primary); color: white; }
#copy-btn-box { display: flex; justify-content: center; width: 100%; }
select, label { font-family: inherit; }
select:not(.plate-select) { width: 100%; padding: 12px; border-radius: 12px; border: 2px solid var(--border-light); font-size: 1rem; margin-top: 5px; outline: none; }
select:not(.plate-select):focus { border-color: var(--primary); }

/* =========================================
   بخش توضیحات سایت (SEO & Guide)
   ========================================= */
.description {
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    text-align: right;
    direction: rtl;
    color: #475569;
}

.description-title {
    color: #20478a;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px dashed var(--border-light);
    padding-bottom: 15px;
}

.description h3 {
    color: #20478a;
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description h3::before {
    content: "\f058"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #20478a; /* رنگ آبی روشن */
    font-size: 1.1rem;
}

.description p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
}

/* استایل‌دهی به لیست‌ها برای ظاهر مدرن‌تر (حذف بولت‌های ساده و جایگزینی با نقطه رنگی) */
.description ul {
    list-style: none;
    padding-right: 0;
    margin-bottom: 20px;
}

.description ul li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 22px;
    font-size: 1.05rem;
}

.description ul li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background-color: #20478a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.description strong {
    color: var(--primary);
    font-weight: bold;
}

/* استایل‌دهی به نکات و کلمات تاکید شده (تگ em) */
.description em {
    color: #20478a; 
    font-style: normal;
    background: #e0f2fe; /* بک‌گراند آبی خیلی کم‌رنگ */
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: bold;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 600px) {
    .description {
        padding: 20px;
    }
    .description-title {
        font-size: 1.3rem;
    }
    .description h3 {
        font-size: 1.1rem;
    }
}