/* --- General Styles --- */
body {
  margin: 0;
  padding: 0;
  font-family: "IRANSans", Tahoma, sans-serif;
  background: #eef1f5;
  direction: rtl;
}

/* --- Center Card --- */
.container {
  max-width: 1000px;
  background: #fff;
  margin: 50px auto;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* --- Title --- */
h1 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 25px;
  color: #333;
}

/* --- Login Title Special --- */
.login-box h1 {
  margin-bottom: 30px !important;
}

/* --- Labels --- */
label {
  display: block;
  margin: 12px 0 5px;
  font-weight: bold;
  color: #444;
}

/* --- Input --- */
input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  transition: 0.3s;
}

input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

/* --- Button --- */
button {
  width: 100%;
  background: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

button:hover {
  background: #0056b3;
}

/* --- Responsive Design --- */
@media (max-width: 480px) {
  .container {
    margin: 20px;
    padding: 20px;
  }

  h1 {
    font-size: 18px;
  }
}

/* --- Admin Dashboard Layout --- */

.admin-container {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.admin-header h2 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.logout-btn {
  padding: 8px 16px;
  background: #dc3545;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.logout-btn:hover {
  background: #b02a37;
}

.admin-actions {
  text-align: left;
  margin-bottom: 15px;
}

.excel-btn {
  background: #28a745;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.excel-btn:hover {
  background: #1f7a33;
}

/* --- Table Styles --- */

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table thead {
  background: #f1f3f5;
}

table th,
table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

table tbody tr:hover {
  background: #f9f9f9;
}

table a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

table a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1000px) {
  .admin-container {
    padding: 15px;
    margin: 20px;
  }
  table th,
  table td {
    font-size: 12px;
    padding: 8px;
  }
  .admin-header h2 {
    font-size: 18px;
  }
}
