/* تضمين الخطوط المحلية */
@font-face {
    font-family: 'Tajawal';
    src: url('assets/fonts/Tajawal-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Tajawal';
    src: url('assets/fonts/Tajawal-Light.ttf') format('truetype');
    font-weight: 500;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif; /* Use Tajawal-Light for the entire site */
  font-weight: 300; /* Light weight */
}

/* Body Styling */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 10px;
  background: linear-gradient(115deg, #56d8e4 10%, #9f01ea 90%);
  direction: rtl; /* Set direction to RTL */
  text-align: right; /* Align text to the right */
}

/* Navigation Styling */
nav {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Tajawal', sans-serif; /* Use Tajawal-Medium for nav */
  font-weight: 500; /* Medium weight */
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #555;
}

/* Container */
.container {
  max-width: 800px;
  background: #fff;
  width: 100%;
  padding: 25px 40px 10px 40px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-top: 80px; /* Adjusted margin to account for fixed nav */
}

.container2 {
  max-width: 1800px;
  background: #fff;
  width: 100%;
  padding: 25px 40px 10px 40px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-top: 80px; /* Adjusted margin to account for fixed nav */
}

.container2 .text {
  text-align: center;
  font-size: 41px;
  font-weight: 600;
  background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Heading Text */
.container .text {
  text-align: center;
  font-size: 41px;
  font-weight: 600;
  background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Form Styling */
.container form {
  padding: 30px 0 0 0;
}

.container form .form-row {
  display: flex;
  margin: 32px 0;
}

form .form-row .input-data {
  width: 100%;
  position: relative;
}

/* Input Fields */
.input-data input,
.input-data input[type="file"] {
  display: block;
  width: 100%;
  height: 40px;
  border: none;
  font-size: 17px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.input-data input:focus ~ label,
.input-data input:valid ~ label {
  transform: translateY(-20px);
  font-size: 14px;
  color: #3498db;
}

/* Labels */
.input-data label {
  position: absolute;
  pointer-events: none;
  bottom: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  right: 0; /* Align label to the right */
}

.input-data .underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 100%;
}

.input-data .underline:before {
  position: absolute;
  content: '';
  height: 2px;
  width: 100%;
  background: #3498db;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.input-datat[type=date]:required:invalid::-webkit-datetime-edit {
    color: transparent;
}
.input-datat[type=date]:focus::-webkit-datetime-edit {
    color: black !important;
}

.input-data input:focus ~ .underline:before,
.input-data input:valid ~ .underline:before {
  transform: scale(1);
}

/* Submit Button */
.submit-btn .input-data {
  overflow: hidden;
  height: 45px !important;
  width: 25% !important;
  position: relative;
  margin-right: auto; /* Align the button to the left */
}

.submit-btn .input-data .inner {
  height: 100%;
  width: 300%;
  position: absolute;
  left: -100%; /* Reverse the gradient animation for RTL */
  background: -webkit-linear-gradient(left, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
  transition: all 0.4s;
}

.submit-btn .input-data:hover .inner {
  right: 0;
}

.submit-btn .input-data input {
  background: none;
  border: none;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  text-align: center; /* Center the button text */
}
/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

table th {
  background-color: #f2f2f2;
}

table td img {
  width: 50px;
  height: auto;
}


.btn-edit, .btn-delete, .btn-view {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  margin: 2px;
  transition-duration: 0.4s;
}

.btn-edit:hover, .btn-delete:hover, .btn-view:hover {
  background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 700px) {
  .container .text {
    font-size: 30px;
  }
  .container form {
    padding: 10px 0 0 0;
  }
  .container form .form-row {
    display: block;
  }
  form .form-row .input-data {
    margin: 35px 0 !important;
  }
  .submit-btn .input-data {
    width: 40% !important;
  }
  table th, table td {
    font-size: 12px;
  }
}



