body {
    font-family: 'Tahoma', sans-serif;
    direction: rtl;
    background-color: #fff;
}

.register h1 i {
  font-size: 50px;
  margin-bottom: 10px;
  color: blueviolet;
}

.input {
  width: 320px;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 5px;
  position: relative;
}

.register label {
  position: absolute;
  z-index: 5;
  right: 15px;
  top: 10px;
  transition: top 0.3s ease, font-size 0.3s ease;
  color: #666;
}

.register #show {
  position: absolute;
  top: 20px;
  left: 15px;
  z-index: 25;
  cursor: pointer;
}
.showColor {
  color: blueviolet;
}

.register input {
  width: 100%;
  padding: 10px 10px 10px 10px;
  background-color: transparent;
  border: none;
  outline: none;
  z-index: 10;
}

.register input:focus + label,
.register input:valid + label {
  top: 10px;
  font-size: 10px;
}

.register button {
  width: 100%;
  border: none;
  background-color: #387c15 ;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.register button:hover {
  background-color: #76e23b;
}
.stop {
  cursor: not-allowed !important;
  pointer-events: none;
  background-color: #999 !important;
}

#login {
  color: #666;
  text-decoration: underline;
  font-size: 14px;
}

.error-text {
  width: 100%;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
color: red;
}
.error-text strong {
  margin-bottom: 1em;
}
.error-text p {
  color: #666;
}
.red {
  color: red !important;
}
.green {
  color: lightseagreen !important;
}

#register {
  display: flex;
  justify-content: center;
  align-items: center;
}

.register {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 10px 30px;
  border-radius: 10px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.05);
}

table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 95%;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th {
    background-color: #cce5cc;
    color: #333;
    padding: 12px 10px;
    border: 1px solid #999;
}

td {
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    font-weight: normal;
    white-space: nowrap;
}

tr:nth-child(even) td {
    background-color: #f6f6f6;
}

tr:hover td {
    background-color: #eef9ee;
}

p {
    text-align: center;
    color: #006600;
    font-size: large;
}

div {
    text-align: right;
    direction: rtl;
    padding: 10px;
    font-size: small;
}


body.upload-page {
    font-family: 'Tahoma', sans-serif;
    background-color: #f5fff5;
    direction: rtl;
    text-align: center;
    padding: 50px;
}

body.upload-page form {
    display: inline-block;
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ccc;
    box-shadow: 0 0 15px rgba(0, 100, 0, 0.1);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
}

body.upload-page h2 {
    color: #006600;
    margin-bottom: 20px;
}

body.upload-page label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
}

body.upload-page input[type="file"],
body.upload-page select,
body.upload-page input[type="text"] {
    padding: 8px;
    width: 100%;
    max-width: 400px;
    font-size: 14px;
}

body.upload-page button {
    margin-top: 20px;
    background-color: #28a745;
    border: none;
    padding: 10px 25px;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

body.upload-page button:hover {
    background-color: #218838;
}

body.upload-page .message {
    margin-top: 30px;
    font-size: 16px;
    font-weight: bold;
    color: #004400;
}

body.upload-page .error {
    color: #cc0000;
}
.back-button {
    background-color: #6c757d; /* خاکستری */
}
.back-button:hover {
    background-color: #5a6268;
}

@media print {
    /* جدول وسط افقی */
    table {
        width: 100%;
        font-size: 12px;
        border-collapse: collapse;
        margin: 0 auto;
    }

    table th, table td {
        padding: 3px 5px;
    }

  }


}