/* تنظیمات پایه */
body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: 'Vazir', sans-serif;
  background-color: #f4f9ff;
}

/* هدر */
header {
  background-color: #2c3e50;
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 22px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

nav a:hover {
  background-color: #34495e;
}

/* بنر مرکزی */
.banner {
  background-color: #27ae60;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.banner h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.banner p {
  font-size: 18px;
  margin: 0;
}

/* فرم‌های عمومی */
.form-container {
  max-width: 600px;
  margin: 40px auto;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}

button {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

/* کارت‌های جستجو */
.card {
  background: #ecf5ff;
  padding: 15px;
  border-radius: 10px;
  margin: 10px auto;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* فرم جستجو در سایدبار */
.main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.search-sidebar {
  width: 280px;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-sidebar form {
  display: flex;
  flex-direction: column;
}

.search-sidebar select,
.search-sidebar input {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.search-sidebar button {
  background-color: #3498db;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.search-sidebar button:hover {
  background-color: #2980b9;
}

/* نتایج جستجو */
.results {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* جدول پنل مدیریت */
.admin-table {
  max-width: 1000px;
  margin: 40px auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: right;
}

th {
  background-color: #f0f4fa;
  color: #2c3e50;
}

.actions a {
  margin-left: 10px;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.actions a:hover {
  color: #2980b9;
}

/* فوتر */
footer {
  background-color: #ecf0f1;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ccc;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .search-sidebar {
    width: 100%;
  }

  .results {
    grid-template-columns: 1fr;
  }
}
.admin-table {
  max-width: 1000px;
  margin: 40px auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid #ccc;
}

thead {
  background-color: #f0f4fa;
}

th, td {
  padding: 12px 10px;
  border: 1px solid #ddd;
  text-align: right;
}

tbody tr:nth-child(even) {
  background-color: #f9fcff;
}

.actions {
  white-space: nowrap;
}

.actions a {
  margin-left: 8px;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  background-color: #eaf4ff;
  transition: 0.3s;
}

.actions a:hover {
  background-color: #d0eaff;
  color: #2980b9;
}
.slider {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.slides {
  display: flex;
  animation: slide 12s infinite;
}

.slide {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  padding: 20px;
} 

@keyframes slide {
  0%   { transform: translateX(0%); }
  33%  { transform: translateX(-100%); }
  66%  { transform: translateX(-200%); }
  100% { transform: translateX(0%); }
}

