@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 200;
  color: #1a1a1a;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #fff;
  border: 1px solid #2196F3;
  border-radius: 8px;
  color: #2196F3;
  font-size: 0.9rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background-color: #e3f2fd;
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 20px;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover {
  background-color: #f5f5f5;
}

.lang-option.active {
  background-color: #e3f2fd;
  color: #2196F3;
  font-weight: 400;
}

/* Content Sections */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* Typography */
h2 {
  font-size: 1.25rem;
  font-weight: 300;
  color: #1a1a1a;
  margin: 30px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #2196F3;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 300;
  color: #333;
  margin: 20px 0 10px 0;
}

p {
  margin-bottom: 12px;
  color: #444;
}

ul, ol {
  margin: 12px 0;
  padding-left: 24px;
  padding-right: 0;
}

[dir="rtl"] ul, [dir="rtl"] ol {
  padding-left: 0;
  padding-right: 24px;
}

li {
  margin-bottom: 8px;
  color: #444;
}

/* Info Box */
.info-box {
  background-color: #f8f9fa;
  border-left: 4px solid #2196F3;
  border-right: none;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

[dir="rtl"] .info-box {
  border-left: none;
  border-right: 4px solid #2196F3;
  border-radius: 8px 0 0 8px;
}

.info-box p {
  margin: 0;
  color: #555;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

[dir="rtl"] th, [dir="rtl"] td {
  text-align: right;
}

th {
  background-color: #f8f9fa;
  font-weight: 400;
  color: #333;
}

/* Footer */
footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 5px;
  color: #888;
}

footer a {
  color: #2196F3;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  header {
    padding: 15px 0;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}
