body {
  font-family: 'Samim', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  direction: rtl;
  color: #222;
}

.container {
  max-width: 90vw; /* Changed from 1000px to 90vw */
  margin: auto;
  padding: 1em;
}

.topbar {
  background-color: #333;
  padding: 0.5em 1em;
  text-align: right;
}

.topbar nav a {
  color: #fff;
  margin-left: 1em;
  text-decoration: none;
  font-size: 1.2em;
}

.links {
  background-color: #fff;
  padding: 1em;
  margin-top: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.links a {
  text-decoration: none;
  color: #007BFF;
  font-weight: bold;
}
.nav-link {
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
}

a {
  text-decoration: none;
}

.nav-links a {
  text-decoration: none;
  /* other existing styles */
}

.bottom-links a {
  text-decoration: none;
  color: #000;
}

h1 {
  text-align: center;
  margin: 2em 0 1em 0;
  font-size: 1.8em;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
  border: 1px solid #ccc;
  padding: 0.75em;
  text-align: right;
}

th {
  background-color: #e0e0e0;
}

a.sidetitle {
  color: #333;
  text-decoration: none;
}

a.sidetitle:hover {
  color: #007BFF;
  text-decoration: underline;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .topbar nav a {
    font-size: 1em;
  }

  h1 {
    font-size: 1.5em;
  }

  table, th, td {
    font-size: 0.9em;
  }

  .links {
    font-size: 0.95em;
  }
    .bottom-links {
    font-size: 0.95em;
    padding: 10px 5px;
  }

}
