@use "../../../../../styles/abstracts/variables";
@use "../../../../../styles/abstracts/mixins";

.add__event {
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  height: 100vh;
  width: 100vw;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: scroll;

  &__content {
    width: 90%;            
    max-width: 550px; 
    margin: 0 auto;
    background: #1e1e1e;
    box-shadow: none !important;
    border-radius: 0.5rem;
    padding: 2rem 2rem;
    font-size: 0.95rem;
    position: relative;
    margin-top: 35rem;
    margin-bottom: 4rem;

    &--close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: variables.$col-danger-bg;
      color: variables.$col-danger-color;
      padding: 0.3rem 0.5rem;
      border-radius: 5px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.75rem;
    }

    &--details {
      &--header {
        &--helper {
          background: variables.$col-orange;
          margin-bottom: 1rem;
          max-width: 25%;
          padding: 0.4rem 0.3rem;
          border-radius: 20px;
          color: variables.$col-dark;
          font-size: 0.7rem;
          font-weight: 600;
          text-align: center;
          text-transform: capitalize;
        }

        h2 {
          font-weight: 500;
          font-size: 0.95rem;
          border-bottom: 1px solid variables.$col-border-lining;
          padding-bottom: 0.2rem;
          color: variables.$col-white;
        }

        p {
          font-size: 0.82rem !important;
          padding-top: 0.6rem;
          opacity: 0.9;
          font-weight: 400 !important;
          line-height: 1.6;
          padding-bottom: 1.5rem !important;
          color: variables.$col-white;
        }
      }

      form {
        label {
          font-size: 0.8rem;
          color: #ccc;
          display: inline-block;
          font-weight: 400;
          padding-bottom: .3rem;
        }

        input,
        select,
        textarea {
          width: 100%;
          background: #1e1e1e !important;
          border: 1px solid #333;
          box-shadow: none !important;
          border-radius: 0.5rem;
          padding: 0.5rem 0.9rem;
          font-size: 0.85rem;
          height: 2.8rem;
          color: #eee;
          text-align: left;
          margin-bottom: .7rem;

          &:focus {
            outline: none;
            border: 1px solid #333;
          }

          &::placeholder {
            color: #777;
            font-size: 0.8rem !important;
            opacity: 0.85;
          }
        }

        textarea {
          height: 8rem;
          line-height: 2;
        }

        input::placeholder,
        select::placeholder,
        textarea::placeholder {
          color: variables.$col-white;
          font-size: 0.8rem;
          opacity: 0.75;
        }

        // ✅ Add white background and black text to date & time inputs
        input[type="date"],
        input[type="time"] {
          color: #eee !important;
          border: 1px solid #333 !important;

          &::placeholder {
            color: #555 !important;
          }
        }

        button {
          background: variables.$col-orange;
          padding: 0.8rem 0.5rem;
          border-radius: 10px;
          color: variables.$col-dark;
          font-size: 0.85rem;
          font-weight: 600 !important;
          width: 100%;
          margin-top: 1rem;
          cursor: pointer;
        }
      }
    }
  }
}

::-webkit-scrollbar {
  display: none !important;
}
