@charset "UTF-8";
/* ==========================================================================
   CSS Reset - Modern & Comprehensive
   ========================================================================== */
/* 1. استفاده از مدل box-sizing منطقی */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. حذف margin و padding پیش‌فرض */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
}

/* 3. تنظیمات اصلی HTML و Body */
html {
  /* 62.5% = 10px برای محاسبه راحت‌تر rem */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: Mouser, Iransans;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4. ریست عناصر فرم */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 5. حذح استایل پیش‌فرض button */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: inherit;
}

/* 6. حذف استایل پیش‌فرض لیست */
ol,
ul {
  list-style: none;
}

/* 7. ریست تایپوگرافی */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* 8. ریست لینک‌ها */
a {
  text-decoration: none;
  color: inherit;
}

/* 9. ریست جدول‌ها */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 10. ریست فرم‌ها */
fieldset {
  min-width: 0;
  border: 0;
}

/* 11. حذف استایل پیش‌فرض برای عناصر رسانه */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 12. جلوگیری از overflow متن */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 13. ریست textarea */
textarea {
  resize: vertical;
  overflow: auto;
}

/* 14. حذف استایل پیش‌فرض quote */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* 15. تنظیمات accessibility برای hidden content */
[hidden] {
  display: none !important;
}

/* 16. ریست details summary */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

/* 17. ریست meter و progress */
meter,
progress {
  vertical-align: baseline;
}

/* 18. حذف spinner در inputهای number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* 19. ریست انتخاب متن */
::selection {
  background-color: rgba(0, 119, 255, 0.2);
  color: inherit;
}

/* 20. focus styles برای accessibility */
:focus-visible {
  outline: 2px solid #4d90fe;
  outline-offset: 2px;
}

/* 21. جلوگیری از ایجاد scroll حاشیه‌ای در Mac */
html {
  overflow-x: hidden;
  margin-right: calc(-1 * (100vw - 100%));
}

/* 22. ریست cite */
cite {
  font-style: normal;
}

/* 23. تنظیمات برای اسکرول نرم در iOS */
html {
  -webkit-overflow-scrolling: touch;
}

/* 24. ریست mark */
mark {
  background-color: transparent;
  color: inherit;
}

/* 25. حذف decoration از abbreviations */
abbr[title] {
  text-decoration: none;
}

/* 26. ریست sup و sub */
sup,
sub {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* 27. جلوگیری از تغییر سایز فونت در iOS */
@media screen and (max-width: 768px) {
  html {
    -webkit-text-size-adjust: none;
  }
}
/* 28. ریست dialog */
dialog {
  padding: 0;
  border: none;
  background: none;
}

/* 29. تنظیمات برای touch-action */
a,
button,
input,
textarea {
  touch-action: manipulation;
}

/* 30. ریست hr */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid currentColor;
  margin: 1em 0;
}

/* متغیرهای حالت لایت (پیشفرض) */
:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #c3cfe2;
  --bg-card: white;
  --text-primary: #333;
  --text-secondary: #555;
  --accent-color: rgb(40, 129, 230);
  --accent-hover: rgb(25, 105, 200);
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --code-bg: #1a1e2c;
  --code-header: #252a3a;
  --code-text: #e2e8f0;
  --notification-bg: #2ecc71;
  --theme-toggle-bg: #f0f0f0;
  --theme-toggle-color: #333;
  --theme-toggle-hover: #e0e0e0;
  --theme-switch-bg: #ddd;
  --theme-switch-circle: white;
}

/* متغیرهای حالت دارک */
.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --code-bg: #0f172a;
  --code-header: #1e293b;
  --code-text: #e2e8f0;
  --notification-bg: #059669;
  --theme-toggle-bg: #334155;
  --theme-toggle-color: #f1f5f9;
  --theme-toggle-hover: #475569;
  --theme-switch-bg: #475569;
  --theme-switch-circle: #e2e8f0;
}

/* Reset و استایل‌های اصلی */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  direction: rtl;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  color: var(--text-primary);
}

.Container {
  width: 90%;
  height: fit-content;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  padding-bottom: 3rem;
}

/* هدر با دکمه تغییر تم */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-bottom: 2px solid var(--border-color);
}

.header h1 {
  color: var(--accent-color);
  font-size: 1.8rem;
}

/* کنترل‌های تم */
.theme-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--theme-toggle-bg);
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  color: var(--theme-toggle-color);
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  background: var(--theme-toggle-hover);
  transform: translateY(-2px);
}

/* سوئیچ تم */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--theme-switch-bg);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: var(--theme-switch-circle);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

/* استایل‌های بخش دانلود برنامه‌ها */
.ListApp {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0px 5px 15px var(--shadow-color);
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.ListApp > h3 {
  width: 100%;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.ListApp a {
  background-color: var(--accent-color);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.ListApp a:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(40, 129, 230, 0.3);
}

.ListApp a i {
  font-size: 1.1rem;
}

/* استایل‌های بخش فایل‌های کانفیگ */
.ListConfig {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0px 5px 15px var(--shadow-color);
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.ListConfig > h3 {
  width: 100%;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.ListConfig ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.ListConfig li {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  list-style: none;
  gap: 10px;
}

.ListConfig a {
  background-color: var(--accent-color);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  width: 100%;
  justify-content: center;
}

.ListConfig a:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(40, 129, 230, 0.3);
}

.ListConfig a i {
  font-size: 1.1rem;
}

/* استایل‌های بخش کانفیگ V2Ray */
.V2ray {
  background-color: var(--bg-card);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0px 5px 15px var(--shadow-color);
  margin-top: 1rem;
  border: 1px solid var(--border-color);
}

.V2ray h4 {
  width: 100%;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

/* استایل‌های کانفیگ‌های نمایش داده شده */
.configs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  width: 100%;
}

.config-box {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.config-box:hover {
  transform: translateY(-5px);
}

.config-header {
  background: var(--code-header);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.config-title {
  font-weight: 600;
  color: #64ffda;
  font-size: 1rem;
}

.config-type {
  background: rgba(255, 255, 255, 0.1);
  color: #b0b7cc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.code-container {
  position: relative;
  padding: 0;
}

.config-code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 20px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 250px;
  overflow-y: auto;
  line-height: 1.5;
  tab-size: 2;
  direction: ltr;
}

.config-code::-webkit-scrollbar {
  width: 8px;
}

.config-code::-webkit-scrollbar-track {
  background: var(--code-header);
}

.config-code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.copy-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(40, 129, 230, 0.3);
  z-index: 10;
}

.copy-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.copy-btn.copied {
  background: var(--notification-bg);
}

/* اعلان کپی موفق */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--notification-bg);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
  z-index: 1000;
  font-weight: 500;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
}

/* دکمه کپی همه */
.copy-all-btn {
  margin-top: 20px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(40, 129, 230, 0.3);
}

.copy-all-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
}

/* فوتور */
footer {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* رسپانسیو */
@media (max-width: 768px) {
  .configs-container {
    grid-template-columns: 1fr;
  }
  .config-code {
    font-size: 0.8rem;
    max-height: 200px;
  }
  .ListApp, .ListConfig {
    padding: 1rem;
  }
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .theme-controls {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .Container {
    width: 95%;
    gap: 20px;
  }
  .config-box {
    margin-bottom: 15px;
  }
  .theme-toggle {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}
/* انیمیشن تغییر تم */
@keyframes fadeIn {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}
body {
  animation: fadeIn 0.5s ease;
}/*# sourceMappingURL=Apps.css.map */