/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Kufi Arabic', Arial, Helvetica, sans-serif;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #1d1c1b 0%, #2a2826 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#editTime {
  padding: 100px 100px 0 0;
  color: #808080;
}

header {
  min-height: 50vh;
  /* background: linear-gradient(rgba(0, 0, 0, 0.5), #ffffff), url(/assets/img/Diesel/G2.jpg); */
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: bottom;
  background-size: cover;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(3, 119, 168, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 174, 248, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
p,
a {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ===== TITLE SECTION ===== */
.DieselTitle {
  text-align: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin: 30px 0 40px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

.DieselTitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #0377a8, #00aef8);
  border-radius: 2px;
}

/* ===== DIESEL CARDS SECTION ===== */
.Diesels {
  width: 85%;
  max-width: 600px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto 60px auto;
  padding: 20px;
  gap: 20px;
}

.Diesel {
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, #0377a8, #025a85);
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(3, 119, 168, 0.3);
  position: relative;
  overflow: hidden;
}

.Diesel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.Diesel:hover {
  background: linear-gradient(145deg, #00aef8, #0377a8);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 174, 248, 0.4);
}

.Diesel:hover::before {
  animation: shine 0.6s ease-in-out;
}

@keyframes shine {
  0% {
    opacity: 0;
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.Diesel:active {
  transform: translateY(-2px) scale(1.02);
}

.Diesel img {
  width: 60px;
  height: 60px;
  filter: brightness(1.2);
  transition: all 0.3s ease;
}

.Diesel:hover img {
  transform: scale(1.1);
  filter: brightness(1.4);
}

/* ===== INPUT SECTION ===== */
.Input {
  text-align: center;
  margin: 0 auto 40px auto;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  max-width: 400px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.Input h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.Input span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.Input span input {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  width: 80px;
  height: 45px;
  border: none;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  outline: none;
}

.Input span input:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 174, 248, 0.4);
  border: 2px solid #00aef8;
}

.Input span img {
  width: 45px;
  height: 45px;
  filter: brightness(1.2);
}

/* ===== TABLE SECTION ===== */
.dieselTable {
  width: 100%;
  margin: 40px 0;
  padding: 0 20px;
}

table {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

th,
td {
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
}

th {
  background: linear-gradient(145deg, #0377a8, #025a85);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

td {
  transition: background-color 0.3s ease;
}

tr:hover td {
  background: rgba(0, 174, 248, 0.1);
}

.imgT {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.tdText {
  text-align: center;
  font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media only screen and (max-width: 1100px) {
  .DieselTitle {
    font-size: 24px;
    margin: 25px 0 35px 0;
  }

  .Diesels {
    width: 90%;
    gap: 15px;
  }

  .Diesel {
    width: 110px;
    height: 110px;
  }

  .Diesel img {
    width: 55px;
    height: 55px;
  }

  .Input {
    max-width: 90%;
    margin: 0 auto 35px auto;
  }

  .Input span input {
    width: 90px;
    height: 40px;
  }

  table {
    width: 95%;
  }

  th,
  td {
    padding: 12px 15px;
    font-size: 15px;
  }
}

@media only screen and (max-width: 768px) {
  .DieselTitle {
    font-size: 22px;
    margin: 20px 0 30px 0;
  }

  .Diesels {
    width: 95%;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .Diesel {
    width: 100px;
    height: 100px;
    margin: 10px;
  }

  .Diesel img {
    width: 50px;
    height: 50px;
  }

  .Input {
    padding: 25px 15px;
    margin: 0 auto 30px auto;
  }

  .Input h3 {
    font-size: 18px;
  }

  .Input span {
    gap: 10px;
  }

  .Input span input {
    width: 70px;
    height: 38px;
    font-size: 14px;
  }

  .Input span img {
    width: 40px;
    height: 40px;
  }

  table {
    width: 100%;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 480px) {
  .DieselTitle {
    font-size: 20px;
    margin: 15px 0 25px 0;
  }

  .Diesels {
    width: 100%;
    gap: 8px;
    padding: 15px;
  }

  .Diesel {
    width: 85px;
    height: 85px;
    border-radius: 15px;
  }

  .Diesel img {
    width: 45px;
    height: 45px;
  }

  .Input {
    padding: 20px 10px;
    margin: 0 10px 25px 10px;
    border-radius: 15px;
  }

  .Input h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .Input span input {
    width: 60px;
    height: 35px;
    font-size: 13px;
  }

  .Input span img {
    width: 35px;
    height: 35px;
  }

  .dieselTable {
    padding: 0 10px;
  }

  table {
    border-radius: 10px;
  }

  th,
  td {
    padding: 8px 6px;
    font-size: 13px;
  }

  .imgT {
    width: 20px;
    height: 20px;
  }
}

@media only screen and (max-width: 360px) {
  .DieselTitle {
    font-size: 18px;
  }

  .Diesel {
    width: 75px;
    height: 75px;
  }

  .Diesel img {
    width: 40px;
    height: 40px;
  }

  .Input span input {
    width: 50px;
    height: 32px;
    font-size: 12px;
  }

  th,
  td {
    padding: 6px 4px;
    font-size: 12px;
  }
}

/* ===== ANIMATION ENHANCEMENTS ===== */
.Diesel,
.Input,
table {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تأثير النبضة للعناصر التفاعلية */
.Diesel:focus {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(3, 119, 168, 0.3);
  }

  50% {
    box-shadow: 0 8px 25px rgba(0, 174, 248, 0.6);
  }

  100% {
    box-shadow: 0 8px 25px rgba(3, 119, 168, 0.3);
  }
}