  /* Reset & base */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    overflow-x: hidden;
  }
  a {
    color: white;
    text-decoration: none;
  }

 .side-menu a, footer a{
  font-weight: 600;
 } 

  /* Header */
  header {
    height: 80px;
    width: 100%;
    background: white;
    border-bottom: 1px solid #ff6832;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 1002;
  }

  .material-icons {
            margin-right: 1.5em;

  }
  /* Logo area */
  .logo {
    height: 70px;
    margin-left: 10px;
    display: flex;
    align-items: center;
  }
  .logo img {
    height: 100%;
    width: auto;
  }
  /* Burger menu button */
  .burger {
    cursor: pointer;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1103; /* Above overlay */
  }
  .burger div {
    height: 4px;
    background: #ff6832;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Overlay behind the menu */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1100;
  }
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Side menu using transform */
  nav.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: #ff4b66;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1101;
  }
  nav.side-menu.active {
    transform: translateX(0);
  }
  nav.side-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 22px;
    border-bottom: 1px solid rgba(255 255 255 / 0.3);
    font-size: 1.1rem;
    user-select: none;
    transition: background-color 0.2s ease;
  }
  nav.side-menu a:hover {
    background-color: rgba(255 255 255 / 0.2);
  }
  nav.side-menu a svg {
    fill: white;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* Main content */
  main {
    max-width: 994px;
    margin: 20px auto 60px;
    padding: 0 20px;
    min-height: calc(100vh - 150px - 30px - 40px);
  }

  /* Footer */
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 40px;
    width: 100%;
    background-color: #ff6832;
    color: white;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-weight: 600;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1003;
  }
  footer .left, footer .right {
    user-select: none;
  }

.input-text{
  height:35px;
  font-size: 20px;
  border:2px solid #ff6832;
  border-radius:5px;
}



.input-button{
  width:100px;
  height:40px;
  font-size:24px;
  border:1px solid #ff6832;
  border-radius: 10px;
  background-color:#fff;
  padding:5px;

}

.input-button:hover{
  background-color:#ec9b7d;
}

  .user-wishlist {
            width: 100%; /* Ajustez la largeur selon vos besoins */
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 10px;
            margin: 10px;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        }
        .ItemLine{
            border-bottom:1px solid #fff;
            padding:15px;
            display: flex
            
        }
        .available { background-color: green; color: white; }
        .unavailable { background-color: red; color: white; }
        h2 {
            text-align: center;
        }
       /* ul {
            list-style-type: none;
            padding: 0;
        }
        li {
            padding: 5px;
            display: flex;
            align-items: center;
        }
            */

            ul{
              margin-left:35px;
            }
            .page h1,.page h2, .page h3{
              margin-top:15px;
              margin-bottom:15px;
            }
        input[type="checkbox"], .item-checkbox {
            margin-right: 10px;
            width: 25px;
            height: 25px;
        }
        button {
            height: 35px;
            padding:10px;
            background-color:#fff;
            border:1px solid #eee;
        }
        #nom{
            height:25px;
            width:250px;
        }

        #message{
            font-weight:bold;
            color:#ff594d;
        }


        .item-checkbox-bloc{
          width:40px;
          float:left;
          text-align: center;
        }
        .item-data{
          float:left;

        }
        .item-title{
          font-weight: bold;
        }

        .item-description{
          /*overflow:hidden;*/
          max-width: 80%;
           word-break: normal;
            overflow-wrap: anywhere; /* allow break inside words for very long strings */
        }


       .content-form {
          display: grid;
          grid-template-columns: max-content 1fr;
          column-gap: 1rem;
          row-gap: 1.25rem;
          align-items: start;
        }
        label {
          font-weight: 600;
          color: #333;
          user-select: none;
          padding-top: 0.5rem;
        }
        .input-group {
          display: flex;
          flex-direction: column;
        }
        input[type="text"],
        input[type="email"] {
          padding: 0.5rem 0.75rem;
          font-size: 1rem;
          border-radius: 5px;
          border: 1.5px solid #ccc;
          transition: border-color 0.3s ease;
          width: 100%;
          box-sizing: border-box;
        }
        input[type="text"]:focus,
        input[type="email"]:focus {
          border-color: #ff6832;
          outline: none;
          box-shadow: 0 0 3px 2px rgba(0, 123, 255, 0.2);
        }
        .legend {
          font-size: 0.875rem;
          color: #ff6832;
          margin-top: 0.25rem;
          user-select: none;
        }
        .clear{
          clear:both;
        }
        .spacer{
          clear: both;
          width:100%;
          height: 20px;
        }

/* admin*/
.item {
    position: relative; /* needed for absolute positioning inside */
    border: 2px solid #ff6832;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    color:#000;
     word-break: normal;
    overflow-wrap: anywhere; /* allow break inside words for very long strings */
}
.item.available {
    background-color: #d4edda; /* Green for available */
}
.item.unavailable {
    background-color: #f8d7da; /* Red for unavailable */
}
.item .edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #ff6832;
    padding: 0;
    line-height: 1;
}
.item .edit-btn:hover {
    color: #cc541f;
}

/*Dashboard*/

.dashboard h1 {
        color: #ff6832;
    }
.dashboard ul {
        list-style-type: none;
        padding-left: 0;
    }
.dashboard  li {
        position: relative;
        margin-bottom: 10px;
        padding: 10px 40px 10px 10px; /* extra right padding for icon */
        border: 2px solid #ff6832;
        border-radius: 5px;
    }
.dashboard  a {
        text-decoration: none;
        color: #ff6832;
        font-weight: bold;
        font-size: 18px;
    }
.dashboard a:hover {
        text-decoration: underline;
    }

.dashboard a.wishlist-link {
        text-decoration: none;
        color: #ff6832;
        font-weight: bold;
        font-size: 18px;
    }
.dashboard a.wishlist-link:hover {
        text-decoration: underline;
    }
.dashboard a.edit-link, .dashboard a.view-link {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #ff6832;
        font-size: 18px;
        text-decoration: none;
        cursor: pointer;
    }
.dashboard a.edit-link:hover {
        color: #cc541f;
    }

  .view-link{
    margin-right:1.5em;
  }  


    .page, .page h1, .page h2, .page h3 {
      text-align: left;
    }

    .page{
          width: 100%; /* Ajustez la largeur selon vos besoins */
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 10px;
            margin: 10px;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .page a{
      color:#000;
    }
    

  /* Responsive */
  @media (max-width: 600px) {
    main {
      width: 100%;
      margin: 10px auto 50px;
      padding: 0 15px;
    }
    nav.side-menu {
      width: 200px;
      padding-top: 50px;
    }
    .burger {
      width: 25px;
      height: 18px;
    }
    .burger div {
      height: 3px;
    }
    header {
      padding: 0 15px;
    }

    .user-wishlist, .page {
        width: 90%; /* Largeur pour mobile */
    }
    #nom{
        width:100%;
    }

    .content-form {
        grid-template-columns: 1fr;
      }
    label {
      margin-bottom: 0.25rem;
    }
     .legend {
        margin-left: 0;
      }
}
