:root {
      --primary: #6b60c8;
      --secondary: #64748B;
      --success: #16A34A;
      --danger: #F43F5E;
      --gray-50: #F9FAFB;
      --gray-100: #F3F4F6;
      --gray-200: #E5E7EB;
      --gray-300: #D1D5DB;
      --gray-700: #374151;
      --gray-800: #1F2937;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }


     html {
      font-family: 'Vazirmatn', sans-serif;
      background: var(--gray-100);
      color: var(--gray-800);
      line-height: 1.6;
    }


    body {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 2rem;
    }


    section {
      margin: auto;
      text-align: right;
      width: 99%;
      max-width: 1200px;
      background: white;
      border-radius: 1rem;
      box-shadow: 0 10px 25px rgba(0,0,0,0.05);
      overflow: hidden;
    }

    .inner_section {
      padding: 1.2rem;
    }

    h1 {
      font-weight: 700 !important;
      line-height: 1; 
      display: block; 
      font-size: 1.5rem;
      font-weight: 700;
    }

    p {
      display: block;

      font-size: 0.9rem;
      opacity: 0.85;
	    text-align: justify;
	    text-justify: inter-word;
    }

    .input__container {
      position: relative;
      display: flex;
      align-items: center;
      margin-top: 1.5rem;
    }

    input {
      background-color: #fff;
      font-family: 'Vazirmatn', sans-serif;
      font-size: 16px;
      width: 100%;
      padding: 0.55rem 10px 0.55rem 0px;
      border: 2px solid #ebeef3;
      border-radius: 8px;
      box-sizing: border-box;
      direction: ltr;
      text-align: right; 
    }

    ::placeholder {
      opacity: 0.5;
    }

    [search=clear] {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      display: none;
    }

    [search=clear] svg {
      height: 20px;
      width: 20px;
      fill: #38383a;
      transition: fill 0.3s ease;
    }

    [search=clear]:hover svg {
      fill: #ff4d4d; 
    }

    [search=counter] {
      position: absolute;
      bottom: -1.5rem;
      font-size: 0.75rem;
      opacity: 0.5;
    }


    summary {
      font-weight: bold; 
      font-size: 1rem;
      cursor: pointer;
    }

    details div {
      font-weight: 500; 
      font-size: 0.9rem;
      opacity: 0.7;
      line-height: 1.5;
    }

    [search=noResults] {
      margin-top: 1rem;
      font-size: 0.9rem;
      opacity: 0.8;
    }


    .header {
      padding: 2rem;
      background: linear-gradient(135deg, var(--primary), var(--primary));
      color: white;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .header h1 {
      font-size: 1.75rem;
      margin-bottom: 0.5rem;
    }

    .header p {
      font-size: 0.9rem;
      opacity: 0.9;
    }


  .button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .button-container button {
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(50% - 0.5rem);
    padding: 0.5rem 1rem;
    font-size: 0.96rem;
    color: #222222;
    background-color: #fff;
    border: 2px solid #ebeef3;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
  }

  .button-container button:hover {
    background-color: #f8f8f8;
  }

  .button-container .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .button-container .arrow svg {
    width: 18px;
    height: 18px;
    stroke: #b0b0b0; 
  }

  .button-container .text {
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
  }

  .button-container .emoji {
    font-size: 1rem;
  }


  .dashed-line-container {
    margin-top: 35px;
    margin-bottom: 35px;
    opacity: 20%;
    position: relative;
    width: 100%;
    text-align: center;
  }
  .dashed-line {
    border-top: 2px dashed black;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }


  .line-text {
    position: absolute;
    top: 50%;
    left: 50%;
    background: white; 
    padding: 0 10px;
    transform: translate(-50%, -50%);
    font-size: 0.8;
    color: black;
  }




  details {
    border: 2px solid var(--gray-200);
      border-radius: 0.75rem;
      margin: 1rem 0;
      overflow: hidden;
      transition: border-color 0.3s;
    }

  .faq-item {
      border: 2px solid var(--gray-200);
      border-radius: 0.75rem;
      margin: 1rem 0;
      overflow: hidden;
      transition: border-color 0.3s;
      padding: 0 1rem;
    }

    .faq-item[open] {
      border-color: var(--primary);
    }

    .faq-header {
      padding: 1rem 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .faq-header:hover {
      background: var(--gray-50);
    }

    .faq-content {
      padding: 1rem;
      border-top: 1px solid var(--gray-200);
    }

    .faq-title {
      font-weight: 600;
    }

    .faq-category {
      color: var(--primary);
      font-weight: 500;
    }


  .swal-popup {
    direction: rtl;
    text-align: right;
  }

  .swal-title {
    font-size: 18px; 
    text-align: right; 
  }

  .swal-content {
    font-size: 14px;
    white-space: pre-line; 
    word-wrap: break-word;
    line-height: 1.6; 
    text-align: right;
  }

  

    @keyframes opacity {
      0% {
        opacity: 0;
      }
      100% {
        opacity: 1;
      }
    }



/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  section {
    width: 95%;
  }
  .button-container button {
    width: 100%;
  }

  .header h1 {
    font-size: 1.3rem; 
  }

  .input__container input {
    font-size: 14px; 
    padding: 0.5rem 8px; 
  }


}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
  body {
    padding: 1rem;
  }
  .header h1 {
    font-size: 1.2rem;
  }
  .input__container input {
    font-size: 13px; 
    padding: 0.5rem 8px; 
  }
}
    
  