* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: serif;
    height: 100%;
    align-items: center;
    background-color: rgb(219, 208, 208);
}

.main {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #686666;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 50px auto;
    gap: 20px;
    border-radius: 8px;
    cursor: pointer;
}

.main h1 {
    color: white;
    text-align: center;
    font-size: 40px;
}

.main::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -5px;
    margin: auto;
    width: 95%;
    height: 105%;
    border-radius: 10px;
    background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
    z-index: -10;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main::after {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
    transform: translate3d(0, 0, 0) scale(0.95);
    filter: blur(20px);
}


form{
   display: flex;
    flex-direction: column;
    gap: 20px; /* Space between form controls */
}


.input-form {
    position: relative;
    margin: 10px auto;
    width: 70%;
}


.input-form input, .input-form select {
    background-color: transparent;
    border: 0;
    border-bottom: 2px #fff solid;
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 18px;
    color: #fff;
}

.input-form input:focus,
.input-form input:valid,
.input-form select:focus,
.input-form select:valid {
    outline: 0;
    border-bottom-color: rgb(18, 18, 19);
}

.input-form label {
    position: absolute;
    top: 15px;
    left: 0;
    pointer-events: none;
}

.input-form label span {
    display: inline-block;
    font-size: 18px;
    min-width: 5px;
    color: #fff;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.input-form input:focus + label span,
.input-form input:valid + label span,
.input-form select:focus + label span,
.input-form select:valid + label span {
    color: black;
    transform: translateY(-30px);
}

.animated-dropdown select {
    appearance: none;
    color: white;
    padding: 15px;
    font-size: 18px;
    width: 100%;
    font-family: serif;
    cursor: pointer;
    backdrop-filter: blur(5px); /* Blur effect */
}

.animated-dropdown select:focus {
    outline: none;
}

.animated-dropdown select option {
    color: white;
    background-color: rgba(77, 102, 109, 0.5); /* Slightly transparent background */
    padding: 10px;
    backdrop-filter: blur(5px);
}

.animated-dropdown label {
    position: absolute;
    top: 15px;
    left: 10px;
    pointer-events: none;
}

.animated-dropdown label span {
    display: inline-block;
    font-size: 18px;
    min-width: 5px;
    color: #fff;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animated-dropdown select:focus + label span,
.animated-dropdown select:valid + label span {
    color: black;
    transform: translateY(-30px);
}

.animated-dropdown::after {
    content: '▼';
    font-size: 12px;
    color: white;
    position: absolute;
    right: 20px;
    top: 22px;
    pointer-events: none;
}

.add-btn {
  position: relative;
  overflow: hidden;
  height: 3rem;
  padding: 0 2rem;
  border-radius: 1.5rem;
  background: #3d3a4e;
  width: 50%;
  margin:  auto;
  background-size: 400%;
  color: #fff;
  align-items: center;
  border: none;
  cursor: pointer;
}

.add-btn:hover::before {
  transform: scaleX(1);
}

.add-btn-content {
  position: relative;
  z-index: 1;
}

.add-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  transition: all 0.475s;
   background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
    filter: blur(20px);
}







 table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        table, th, td {
            border: 1px solid #ddd;
        }

        th, td {
            padding: 10px;
            text-align: left;
        }

        th {
            background-color: #f4f4f4;
        }

      
.button2 {
  display: inline-block;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #090909;
  padding: 0.7em 1.7em;
  cursor: pointer;
  font-size: 18px;
  border-radius: 0.5em;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.button2:active {
  color: #666;
  box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.button2:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.button2:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #009087;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.button2:hover {
  color: #ffffff;
  border: 1px solid #009087;
}

.button2:hover:before {
  top: -35%;
  background-color: #009087;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.button2:hover:after {
  top: -45%;
  background-color: #009087;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

  .modal-header {
            background-color: #007bff;
            color: white;
        }

        .modal-header .close {
            color: white;
        }

        .modal-title {
            font-weight: bold;
        }

        .modal-body {
            background-color: #f8f9fa;
        }

        .form-group input,
        .form-group select {
            margin-bottom: 15px;
        }

        .btn-primary {
            background-color: #007bff;
            border: none;
            transition: background-color 0.3s ease;
        }

        .btn-primary:hover {
            background-color: #0056b3;
        }

        .form-group input.form-control,
        .form-group select.form-control {
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #ced4da;
        }

        .form-group input.form-control:focus,
        .form-group select.form-control:focus {
            border-color: #007bff;
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
        }
        
        .cross{
            padding: 5px;
            color: black;
        }


        .update-btn {
  position: relative;
  display: inline-block;
  margin: 15px;
  padding: 15px 30px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
  color: black;
  background: transparent;
  cursor: pointer;
  transition: ease-out 0.5s;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: inset 0 0 0 0 #000;
}

.update-btn:hover {
  color: white;
  box-shadow: inset 0 -100px 0 0 #000;
}

.update-btn:active {
  transform: scale(0.9);
}