@font-face {
  font-family: "iransans";
  font-weight: normal;
  src: url("../font/IRANSansXFaNum-Regular.woff2") format("woff2"),
    url("../font/IRANSansXFaNum-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "iransans";
  font-weight: bold;
  src: url("../font/IRANSansXFaNum-Bold.woff2") format("woff2"),
    url("../font/IRANSansXFaNum-Bold.ttf") format("truetype");
}

* {
  text-decoration: none;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: iransans, Tahoma, sans-serif;
}

body {
  background-color: #f4f4f4;
  direction: rtl;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

a {
  color: black;
}

.navbar {
  background-color: #007bff;
  padding: 12px;
  display: flex;
  gap: 48px;
  color: white;
}

.navbar a {
  color: white;
  font-weight: bold;
}

h1 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.container {
  margin: 30px auto;
  padding: 0 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 580px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 760px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 1000px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1380px;
  }
}

#charts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; 
  gap: 20px;
}

#charts .chart {
  flex: 1 1 45%;
}

#charts .chart canvas {
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fafafa;
}

#charts .chart table {
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fafafa;
  /* border-collapse: collapse; */
  text-align: center;
}

#charts .chart td,
#charts .chart th {
  border: 1px solid #ccc;
}

.request-show {
  display: flex;
  /* justify-content: space-between; */
  gap: 8px;
}

.info-box {
  width: 28%;
  /* grid-column: 1/1; */
  display: flex;
  flex-direction: column;
  /* grid-template-columns: 33% 34% 33%; */
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.info-box > div {
  margin: 8px;
}

.info-box .label {
  font-weight: bold;
  display: inline;
  margin-left: 4px;
}

.topic-box {
  width: 28%;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.topic-box > div {
  margin: 8px;
}

.topic-box .label {
  font-weight: bold;
  display: inline;
  margin-left: 4px;
}

.done-box {
  width: 28%;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.done-box > div {
  margin: 8px;
}

.done-box .label {
  font-weight: bold;
  display: inline;
  margin-left: 4px;
}

.action-box {
  width: 16%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.button {
  cursor: pointer;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
}

.button-green {
  border: 1px solid green;
  color: green;
}

.button-green:hover {
  background: rgba(0, 255, 0, 0.05);
}

.button-yellow {
  border: 1px solid #e9be19;
  color: #e9be19;
}

.button-yellow:hover {
  background: rgba(255, 255, 0, 0.05);
}

.button-red {
  border: 1px solid red;
  color: red;
}

.button-red:hover {
  background: rgba(255, 0, 0, 0.05);
}

.button-blue {
  border: 1px solid #007bff;
  color: #007bff;
}

.button-blue:hover {
  background: rgba(0, 0, 128, 0.05);
}

.circle-green {
  width: 24px;
  height: 24px;
  margin-bottom: -8px;
  margin-left: 4px;
  border-radius: 100%;
  background: green;
  display: inline-block;
}

.circle-yellow {
  width: 24px;
  height: 24px;
  margin-bottom: -8px;
  margin-left: 4px;
  border-radius: 100%;
  background: #e9be19;
  display: inline-block;
}

.circle-red {
  width: 24px;
  height: 24px;
  margin-bottom: -8px;
  margin-left: 4px;
  border-radius: 100%;
  background: red;
  display: inline-block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 50px 20px 20px 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
}

.close {
  position: absolute;
  left: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.select2-container {
  width: 100% !important;
  margin: 5px 0;
}

.select2-container--default .select2-selection--single {
  padding: 6px 2px;
  height: 42px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
}

.comment-box {
  margin-top: 16px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-weight: bold;
}

.comment-box > div {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.comment-box input {
  width: 100%;
  height: 42px;
  margin: 0;
}

.comment-box button {
  width: 128px;
  background: none;
  border: 1px solid #007bff;
  color: #007bff;
  margin: 0;
}

.comment-box button:hover {
  background: rgba(0, 0, 255, 0.05);
}

.new-box {
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 8px;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.new-box .label {
  font-weight: bold;
}

.info-box .button {
  width: 128px;
  align-self: flex-end;
  background: none;
  border: 1px solid #007bff;
  color: #007bff;
  margin: 0;
}

.info-box .button:hover {
  background: rgba(0, 0, 255, 0.05);
}

.container .card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-left: 4px solid #007bff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-container {
  width: 360px;
  margin: 50px auto;
  padding: 30px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.logo {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.logo img {
  height: 290px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: auto;
  padding: 10px;
  /* margin: 10px 0; */
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

label {
  width: 100%;
  text-align: right;
}

.search-container {
  display: flex;
  margin-right: 20px;
  height: 52px;
}

.search-container button {
  width: fit-content;
  margin: 5px;
  fill: white;
  stroke: white;
}

.login-container button:hover {
  background-color: #0056b3;
}

.filter-container {
  display: flex;
}

.filter-box {
  margin: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0px; /* اختیاری برای فاصله بین خطوط */
}

.filter-box > div {
  flex: 1 1 20%;
  margin: 10px 0;
  min-width: 250px; /* یا هر عرضی که مناسب باشه */
}

.filter-action {
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.filter a {
  margin: 16px;
  color: #333;
}

.filter .active {
  color: #007bff;
}

.list-header {
  display: flex;
  align-items: center;
  background: #ddd;
  margin-top: 16px;
  padding: 8px 0;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
}

.list-header div {
  flex: 1;
  padding: 0 4px;
}

.list-item {
  display: flex;
  align-items: center;
  align-content: center;
  background: #fff;
  margin-top: 10px;
  padding: 8px 0;
  text-align: center;
  border-radius: 8px;
}

.list-item:hover {
  background: #ddd;
}

.list-item div {
  flex: 1;
  padding: 0 4px;
}

.list-item .icon {
  width: 32px;
  height: 24px;
  margin: 0 8px;
  flex: unset;
}

.list-item .icon img {
  height: 24px;
}

.status-green {
  border-inline: 4px solid green;
}

.status-yellow {
  border-inline: 4px solid #e9be19;
}

.status-red {
  border-inline: 4px solid red;
}

.request-list {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.request-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-left: 4px solid #007bff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.request-card .info {
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: space-around;
  gap: 16px 0;
}

.request-card .reels {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto auto auto auto;
}

.request-card .reels a {
  padding: 4px 8px;
  margin: 4px;
  border-radius: 16px;
  color: #333;
  text-align: center;
}

.request-card .reels .reels-A {
  background-color: rgb(187 247 208);
}

.request-card .reels .reels-B {
  background-color: rgb(191 219 254);
}

.request-card .reels .reels-C {
  background-color: rgb(254 240 138);
}

.request-card div {
  margin: 6px 0;
}

.request-card a + a {
  margin-right: 20px;
}

.status {
  margin-top: 10px;
  font-weight: bold;
  color: #ff9800;
}

.status.completed {
  color: #4caf50;
}

#reserveDateDisplay {
  text-align: center;
  margin: 10px;
}

.scroll-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scroll-buttons button {
  background-image: url("../icon/double-arrow-right-icon.webp");
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: white;
  border: none;
  padding: 20px 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  rotate: 90deg;
  opacity: 0.7;
}

#scrollUp{
  rotate: -90deg;
}

.scroll-buttons button:hover {
  opacity: 1;
}