/* Reset CSS */
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
  direction: rtl; /* تنظیم راست چین برای تمام صفحه */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 20px;
  background-color: #42a5f5;
  color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Main Content */
main {
  padding: 20px;
  flex-grow: 1;
}

/* Footer */
footer {
  padding: 20px;
  background-color: #42a5f5;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

footer button {
  background-color: #ff7043;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

footer button:hover {
  background-color: #ff5722;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background-color: #42a5f5;
  color: #fff;
}

.buttons {
    margin-top: 20px;
    text-align: center;
}

.buttons .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50; /* رنگ پس زمینه */
    color: white; /* رنگ متن */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    margin: 0 10px;
}

.buttons .btn:hover {
    background-color: #45a049; /* رنگ پس زمینه هنگام هاور */
}

form button {
    background-color: #ff7043;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

form button:hover {
    background-color: #ff5722;
}

/* جستجو */
.search-box {
  margin-bottom: 20px;
}

.search-box input[type="text"] {
  width: 300px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.search-box button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #42a5f5;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.search-box button:hover {
  background-color: #1e88e5;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

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

th {
  background-color: #42a5f5;
  color: #fff;
}
body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
}

#resultCount {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

#stageCount {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

#stageCount li {
    background-color: #f2f2f2;
    margin: 5px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"], button {
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
}

button {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    margin-right: 10px;
}

button:hover {
    background-color: #45a049;
}

#resultCount, #expiredCount {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}
.highlight-red {
    background-color: #ffcccc;
}