*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  background-color: #f4f7f6;
}

.header {
  width: 540px;
  margin: 50px auto 0 auto;
  color: white;
  background: #006d77; /* Same color as header in second CSS */
  text-align: center;
  border-radius: 7px 7px 0 0;
  padding: 20px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

form, .content {
  width: 90%;
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 7px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  text-align: right;
}

.input-group {
  margin: 1rem 0;
}

.input-group label {
  display: block;
  text-align: left;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
  width: 100%;
  height: 2.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
 
}

.input-group input:focus,
.input-group select:focus {
  border-color: #4FC3A1;
  outline: none;
}

.btn {
  padding: 1rem;
  font-size: 1.25rem;
  color: white;
  background: #4FC3A1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: #38b58e;
}

.error {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  background: #fff3cd;
  color: #8a6d3b;
  border: 1px solid #f0e5a1;
  border-radius: 5px;
  text-align: center;
}

.success {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #3c763d;
  border-radius: 5px;
  text-align: center;
}

.lab {
  font-size: 1.5rem;
  color: #006d77;
}

h1 {
  text-align: center;
  background-color: #006d77;
  color: #fff;
  padding: 1rem;
  font-size: 1.5rem;
  margin: 0;
  border-radius: 7px;
}

.menu {
  display: flex;
  align-items: center;
  background-color: #006d77;
  padding: 15px;
}

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

li {
  float: right;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 16px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #004d40;
}

.logo {
  width: 70px;
  height: 67px;
  margin-right: 20px;
  background-image: url('week2.png');
}

/* Set the entire page to RTL */
html, body {
    direction: rtl;
    text-align: right;
}

/* Align labels and text to the right */
.input-group label {
    text-align: right;
    display: block;
}

/* Ensure form elements are aligned properly */
.input-group input,
.input-group select {
    text-align: right;
    padding-right: 10px;
}

/* Adjust the header for Arabic layout */
.header {
    text-align: center;
}

/* Reverse menu alignment */
.menu {
    display: flex;
    justify-content: flex-end;
}

ul {
    padding-right: 0;
}

li {
    float: left;
}

/* Adjust button alignment */
.btn {
    display: block;
    text-align: center;
}
