@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans Arabic";
}

body {
  background: linear-gradient(0deg, #fff 0%, rgba(133,133,133,0.1) 0%);
  color: #000;
}

header{
    height: 52px;
    background-color: #ffffff;
    width: 30%;
    border-radius: 45px 45px 45px 45px;
    margin-left: 675px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
ul{
    display: flex;
    list-style: none;
    padding-top: 12px;
    justify-content: space-evenly;
    text-indent: 30px;
    padding-left: 10px;
    margin-top: 15px;
    
}
li,a{
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin-right: 20px;
}
a:hover{
    color: hsla(0, 88%, 31%, 0.534);
}

.conversion-block {
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.conversion-block label {
  display: block;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.conversion-block select {
  display: block;
  width: 180px;
  margin: 0 auto 20px auto;
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.date-inputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.date-group {
  flex: 1 1 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date-group p {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.date-group input, .date-group select {
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

button {
  display: block;
  width: 160px;
  margin: 0 auto;
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #55c2da;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #1a7185;
}

.table-container {
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  text-align: center; 
}

th, td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center; 
  vertical-align: middle; 
  white-space: nowrap;
  font-size: 15px;
}
td{
  font-family: "Tajawal";
  font-weight: 600;
  color: hsl(209, 100%, 35%);
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center; 
  vertical-align: middle; 
  white-space: nowrap;
  font-size: 19px;

}
tr:hover {
  background-color: rgba(35, 153, 179, 0.2);
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 15px;
  font-weight: 400; 
  color: #000000;
  margin-top: 248px;
  position: relative;
  bottom: auto;
}

@media (max-width: 768px) {
  .date-inputs {
    flex-direction: column;
    gap: 15px;
  }

  .date-group {
    width: 100%;
  }

  .conversion-block select,
  button {
    width: 100%;
  }

  table {
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  header {
    width: 95%;
    margin: 15px auto;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
  }

  ul {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; 
    margin: 0;
    padding: 0;
    list-style: none;
  }

  li a {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.3s;
  }

  .date-group input, .date-group select {
    font-size: 16px;
    padding: 5px;
  }

  button {
    font-size: 14px;
    padding: 8px;
  }

  table th, table td {
    max-width: 50px;
    font-size: 16px;
    padding: 6px;
  }
  footer {
  text-align: center;
  padding: 15px;
  font-size: 15px;
  font-weight: 400; 
  color: #000000;
  margin-top: -8px;
  position: relative;
  bottom: auto;
}
}
