﻿
/* 1. Box-sizing: border-box برای همه عناصر */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. حذف margin و padding پیش‌فرض */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

/* 3. حذف لیست‌استایل و تنظیم padding برای ul/ol */
ul[role='list'], ol[role='list'] {
    list-style: none;
    padding: 0;
}

/* 4. حذف border از عناصر فرم */
button, input, select, textarea {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    outline: none;
}

/* 5. حذف استایل پیش‌فرض anchor */
a {
    text-decoration: none;
    color: inherit;
}

/* 6. استفاده از inherit برای فونت در فرم‌ها */
input, button, textarea, select {
    font: inherit;
}

/* 7. تنظیمات پایه برای body */
body {
    min-height: 100vh;
    line-height: 1.5;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 8. جلوگیری از تغییر اندازه تصاویر */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 9. حذف افکت تمرکز پیش‌فرض مرورگرها */
:focus-visible {
    outline: 2px solid #007bff; /* یا رنگ دلخواه */
    outline-offset: 2px;
}

/* 10. تنظیمات تایپوگرافی */
html {
    font-size: 100%; /* یا مثلاً 62.5% برای استفاده از rem آسان‌تر */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* 11. حذف حالت italic از address و cite و غیره */
address, cite, dfn, em, i {
    font-style: normal;
}

/* 12. تنظیمات فرم‌های غیرقابل انتخاب */
[disabled], [readonly] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 13. جلوگیری از هایلایت غیرضروری در موبایل */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 14. رفع خطاهای مرورگر در جدول */
table {
    border-collapse: collapse;
    border-spacing: 0;
}
