@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

*{
  font-family: 'Vazirmatn', sans-serif;

}



body {
  direction:rtl;
  background-color: #f5f6fa;
  margin: 0;
  padding: 0;
}

input::placeholder{
	text-align:right;
	direction:rtl
}
.cap-container{
  display: flex; align-items: center; gap: 10px; margin-top: 5px;
  justify-content: center;
}
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  box-sizing: border-box;
}
.cap-container > #captcha-image{
  flex:2;
  width: 140px;  /* or any size that fits your layout */
  height: auto;
  margin: 10px 0;
  border: 1px solid #ccc;
  
}
#reloadcaptcha{
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  padding: 10px;           /* adjust padding as needed */
  cursor: pointer;
}
#reloadcaptcha img {
  max-width: 100%;   /* scale image properly */
  height: auto;
  display: block;
}
h1,h5{
  text-align: center;
  margin-top: 35px;
  font-size: 10vh;
}
h6{
  text-align: center;
  margin-top: 35px;
  font-size: 2vh;
}


nav{
  display:flex;
  justify-content: flex-start;
  background-color: #333;
  padding: 10px 20px;
}

nav button{
  background-color: #4CAF50; /* Green background */
  border: none;
  color: white;
  padding: 10px 16px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav button.login {
  background-color: #008CBA; /* Blue */
}

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

nav button.logoutbtn{
  background-color: rgb(227, 31, 31);
}

nav button.login:hover {
  background-color: #007bb5;
}
nav button.logoutbtn:hover{
  background-color: red;
}
.his-btn{
  background-color: #556B2F;
}
.his-btn:hover{
  background-color: #6B8E23;
}
.send-btn {
  width: 30%;
  margin: 15px auto;
  padding: 15px;
  background: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 15px;
}

.loggedin{
display: flex;
align-items: center;
gap: 10px;

}

#container,#dashboard {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border-radius: 15px;
}

.inp-container{
  display: flex;
  align-items: center;

}

.button_wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
}

.container input[type="text"] {
  flex: 1;              
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
  border-radius: 15px;
  outline: none;
  border: 1px solid black;

}

.container button{
  width: 80px;          /* button width */
    padding: 8px;
    font-size: 16px;
    margin-right: 8px;     /* space between input and button */
    cursor: pointer;
}


span{
  display: flex;
  justify-content: center;
  color: white;
}


 #image-container {
    display: flex;
    gap: 10px;           /* space between images */
    flex-wrap: nowrap;   /* keep images on one line */
    justify-content: center;
    align-items: center;
    overflow-x: auto;    /* scroll if overflow */
    padding: 10px;
  }

  #image-container img {
    width: 15vw;         /* 20% of viewport width — adjust to fit 3-5 images */
    height: auto;        /* keep aspect ratio */
    object-fit: contain; /* prevent cropping */
    flex-shrink: 0;      /* don’t shrink smaller than width */
    border: 1px solid #ccc; /* optional border for clarity */
    border-radius: 4px;
  }


    .custom-modal .modal-content {
      border: 1px solid #ccc;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      border-radius: 6px;
    }
    .custom-modal .modal-header,
    .custom-modal .modal-footer {
      border: none;
      padding: 1rem 1.5rem;
    }
    .custom-modal .modal-body {
      padding: 1rem 1.5rem;
    }
    .custom-modal .btn {
      min-width: 80px;
    }


#progressBarContainer {
  width: 100%;
  height: 20px; /* Adjust height as needed */
  background-color: #e0e0e0; /* Background color of the empty bar */
  border-radius: 5px;
  overflow: hidden; /* Ensures the fill stays within the container */
  direction:ltr;
}

#progressBarFill {
  width: 0%; /* Initial width, will be updated by JS */
  height: 100%;
  background-color: #4CAF50; /* Color of the filled portion */
  border-radius: 5px;
  transition: width linear; /* Smooth transition for width changes */
  direction:ltr;
}

#bar{
	direction:ltr;
}


.icon-container {
  width: 15vw;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.das {
  color: inherit;           /* Keep the text color same as normal */
  text-decoration: none;
}
