* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background-color: #334155;
  color: white;
}

body {
  min-height: 100vh;
  font-family: Arial;
  background: linear-gradient(135deg, #020617, #0f172a, #334155);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
}

.header-section {
  display: block;
  text-align: center;
  margin-bottom: 5rem;
  color: white;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
   text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
               0 0 20px rgba(255, 255, 255, 0.2);
               opacity: 0.9;
}

.input-group {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px)
  saturate(170%);
  padding: 30px;
  width: 600px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(15px)
  saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 auto;
}

input {
  width: 80%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 15px;
  /*background: rgba(255, 255, 255, 0.05);*/
  background: rgba(0, 0, 0, 0.05);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

input[type="text"]:focus {
  outline: none;
  border-color: #334155;
  box-shadow: 0 0 10px rgba(51, 65, 85, 0.5);
}

input[type="text"] {
  color: white;
}

button.add {
  padding: 20px 20px;
  margin: 15px;
  color: white;
  font-weight: bold;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid #334155;
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

button.add:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
button.add:active {
  transform: scale(0.95);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
  /*transform: translateY(0);*/
}

ul {
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  color: white;
  transition: 0.3s;
}

li:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.01);
}

li span {
  background: transparent; 
  color: white;
  width: auto;
}

p {
  display: none;
  color: red;
  font-size: 14px;
  margin-top: 3px;
}

.delete {
  background: transparent;
  border: none;
  cursor: pointer;
}

.delete i {
  color: rgba(255, 255, 255, 0.6); 
  transition: 0.3s;
}

.delete i:hover {
  color: #ff4d4d; 
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
  transform: scale(1.4);
}

@media (max-width: 800px) {
  .input-group {
    width: 95%; /* عشان يترك مسافة بسيطة عن حواف الشاشة */
    padding: 20px; /* تقليل البادينج عشان نوفر مساحة */
    white-space: nowrap;
    text-align: center; /* بيمنع الزر ينزل سطر جديد مهما صار */
  }

  input {
    width: 65%; /* تصغير عرض الإنبوت لترك مساحة للزر */
    display: inline-block;
    vertical-align: middle;
    margin: 0;
  }

  button.add {
    display: inline-block;
    vertical-align: middle;
    padding: 20px 0; /* الحفاظ على الارتفاع مع تقليل العرض */
    margin: 0 0 0 5px; /* مارجن صغير من اليسار فقط */
  }
  p {
    text-align: start;
  }
}

@keyframes shake {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(-5px);
  }
  50% {
    transform: translate(5px);
  }
  75% {
    transform: translate(-5px);
  }
  100% {
    transform: translate(0);
  }
}

.shake-animation {
  animation: shake 0.3s ease-in-out;
  border-color: #ff4d4d !important;
  box-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

