/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
  font-family: "IRANSans", "Tahoma", sans-serif; 
  direction: rtl; 
  padding: 20px; 
  background: #f0f2f5; 
  color: #333;
  line-height: 1.6;
}

.container { 
  max-width: 960px; 
  margin: 40px auto; 
  background: #fff; 
  padding: 30px; 
  border-radius: 12px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.container:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

h1, h2, h3 { 
  margin-bottom: 20px; 
  font-weight: 600; 
  color: #222;
}

p { margin-bottom: 15px; }

ul { list-style: none; margin-top: 10px; }
ul li { 
  background: #f9f9f9; 
  margin-bottom: 10px; 
  padding: 12px 15px; 
  border-radius: 8px; 
  transition: background 0.2s;
}
ul li:hover { background: #eef3ff; }

a { color: #0056b3; text-decoration: none; }
a:hover { text-decoration: underline; }

/* فرم‌ها */
form { margin-top: 20px; }
label { display: block; margin-bottom: 10px; font-weight: 500; }
input, select, button { 
  font-family: inherit; 
  font-size: 15px; 
}
input, select { 
  width: 100%; 
  padding: 10px 12px; 
  margin-top: 5px; 
  border: 1px solid #ccc; 
  border-radius: 8px; 
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, select:focus { 
  border-color: #0056b3; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(0,86,179,0.2);
}

button { 
  background: #0056b3; 
  color: #fff; 
  padding: 12px 20px; 
  border-radius: 8px; 
  cursor: pointer; 
  border: none; 
  margin-top: 10px;
  transition: background 0.2s;
}
button:hover { background: #004095; }

.error { 
  color: #b00020; 
  background: #fdecea; 
  border: 1px solid #f5c6cb; 
  padding: 10px; 
  border-radius: 8px; 
  margin-bottom: 15px;
}

/* جدول */
table { 
  width: 100%; 
  border-collapse: collapse; 
  margin-top: 20px; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

th { 
  background: #0056b3; 
  color: #fff; 
  padding: 12px; 
  text-align: center;
}

td { 
  padding: 10px; 
  border-bottom: 1px solid #eee; 
  text-align: center;
}

tr:nth-child(even) { background: #f9f9f9; }

/* ریسپانسیو */
@media (max-width: 768px) {
  .container { padding: 20px; margin: 20px; }
  table, thead, tbody, th, td, tr { display: block; width: 100%; }
  thead { display: none; }
  tr { margin-bottom: 15px; background: #fff; border-radius: 8px; padding: 10px; }
  td { text-align: right; padding: 8px 10px; border: none; }
  td::before { font-weight: bold; display: inline-block; margin-left: 6px; }
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.btn:hover {
  background: #2980b9;
}

