* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

:root {
  --body-Color: #f7fcfd;
  --text-Color: #edf4f6;
  --front-Color: #3B82F6;
  --nav1-Color: lightblue;
  --mid-Color: #C4E2F5;
  --midmid-Color: #CFEFFF;
  --filet-Color: #FF3737;
  --mid-filet-color: #e9cbb0;
}

body {
  height: 110vh;
  width: 100%;
  /*padding-left: 20px;
  min-width: 400px;*/
  background-color: var(--body-Color);
  font-family: Garamond, serif;
}

/* Background structure */
.structure0 {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  z-index: 0;
  background-image: url('../images/path1.svg'), url('../images/path2.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: top, bottom;
  background-size: contain, contain;
  overflow-y: hidden;
}

/* index structure search bar*/
.structure00 {
  position: relative;
  display: grid;
  grid-template-areas:
    'searchbar'
    'searchlist';
  overflow: scroll;
  z-index: 2;

}

/* basic navicator bar */
.nav {
  grid-area: nav;
  position: relative;
  top: 0;
  background-color: var(--front-Color);
  margin: 0;
  padding: 0;
  font-weight: bold;
  text-align: center;

  /* Nested elements (Supported in modern browsers) */
  li {
    display: inline-block;
    padding: 1px;
  }

  .dropdown {
    padding-right: 25px;
    position: relative;
    display: inline-block;
    text-align: center;
  }

  a {
    position: relative;
    display: inline-block;
    color: var(--text-Color);
    padding: 5px 15px;
    font-size: 26px;
    text-decoration: none;
    text-align: center;
    background-color: var(--front-Color);
    z-index: 1;
  }

  li a:hover {
    background-color: var(--filet-Color);
  }

  .active {
    background-color: var(--filet-Color);
  }

  /*
    .dropbtn {
      background-color: var(--front-Color);
      color: var(--text-Color);
      padding: 5px 15px;
      font-size: 36px;
      border: none;
      cursor: pointer;
    }

    .dropdown:hover {
      background-color: var(--front-Color);
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: var(--body-Color);
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
      z-index: 1;
    }

    .dropdown-content a {
      color: var(--text-Color);
      padding: 5px 15px;
      font-size: 26px;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background-color: var(--filet-Color);
    }

    .dropdown:hover .dropdown-content {
      display: block;
    }

    .dropdown:hover .dropbtn {
      background-color: var(--front-Color);
    }
	*/
}


/* apointment calendar structure */
.structure01 {
  position: relative;
  display: grid;
  grid-template-areas:
    'owner'
    'calendar';
  overflow: hidden;
  z-index: 2;
}

.owner {
  grid-area: owner;
  position: relative;
  display: grid;
  grid-template-areas:
    'logo title cmd'
    'logo txt cmd';
  margin: auto;
  margin-top: 3vh;
  margin-bottom: 1vh;
  margin-right: auto;

  width: 70vw;
  /*
  height: auto;
  min-width: 580px;*/
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  /*overflow: scroll;*/


  .logo {
    grid-area: logo;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;

    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
    position: relative;
    margin: 5px;
    font-size: 5vw;
    width: 10vw;

    img {
      border-radius: 50%;
      width: 8vw;
      height: 8vw;
    }
  }

  .title {
    grid-area: title;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 1;
    justify-items: center;
    font-size: clamp(1rem, 1.5vw, 2.4rem);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    width: 40vw;
    height: auto;

    h5 {

      color: #999999;
    }
  }

  .txt {
    grid-area: txt;
    position: relative;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-items: center;
    width: 40vw;
    background-color: var(--text-Color);
    font-size: clamp(0.6rem, 1.2vw, 2rem);
    font-family: Georgia, 'Times New Roman', Times, serif;

    p {
      color: #999999;
    }
  }

  .cmd {
    grid-area: txt;
    position: relative;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 3;
    align-content: left;
    justify-items: left;
    margin: auto;
    margin-right: 6vw;
    padding: auto;
    background-color: var(--text-Color);
    width: auto;
    /*overflow-x: scroll;*/
  }

  .nav1 {
    position: relative;
    top: 0;
    color: var(--front-Color);
    background-color: var(--text-Color);
    margin: 0;
    padding: 0;
    font-weight: bold;
    text-align: center;
    z-index: 2;

    /* Nested elements (Supported in modern browsers) */
    li {
      display: inline-block;
      padding: 1px;
    }

    .container {
      display: grid;
      grid-template-columns: auto auto;
      background-color: var(--text-Color);
      /*padding: 10px;*/


    }

    .container div {
      display: inline-flexbox;
      /*justify-content: center;*/
      text-align: center;
      padding: 5px;


    }

    .dropdown {
      /*padding-right: 15px;*/
      position: relative;
      display: inline-block;
      text-align: center;
      background-color: var(--text-Color);
    }

    a {
      position: relative;
      display: inline-block;
      color: var(--front-Color);
      /*padding: 5px 15px;*/
      font-size: 26px;
      text-decoration: none;
      text-align: center;
      background-color: var(--text-Color);
    }

    a:hover {
      color: var(--front-Color);
      background-color: var(--filet-Color);
    }

    .active {
      color: var(--front-Color);
      background-color: var(--filet-Color);
    }

    .dropbtn {
      background-color: var(--text-Color);
      color: var(--front-Color);
      padding: 5px 15px;
      font-size: 36px;
      border: none;
      cursor: pointer;
    }

    .dropdown:hover {
      background-color: var(--text-Color);
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: var(--body-Color);
      min-width: 100px;
      left: -50px;
      box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    }

    .dropdown-content a {
      color: var(--front-Color);
      padding: 5px 15px;
      font-size: 26px;
      text-decoration: none;
      display: block;
    }

    .dropdown-content a:hover {
      background-color: var(--filet-Color);
    }

    .dropdown:hover .dropdown-content {
      display: block;
    }

    .dropdown:hover .dropbtn {
      background-color: var(--text-Color);
    }
  }
}

/* apointment */
.calendar {
  grid-area: calendar;
  position: relative;
  display: grid;
  grid-template-areas:
    'month year label'
    'days days times'
    'msg msg bt';
  /*background-color: var(--body-Color);
  margin-top: 3vh;
  margin-bottom: 5vh;
  margin-right: auto;*/
  z-index: 1;

  .year {
    grid-area: year;
    display: flex;
    margin: auto;
    margin-top: 2vh;
    background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);

    h1 {
      color: var(--front-Color);
      font-size: clamp(1.2rem, 2vw, 2.6rem);
      text-align: center;
      width: 5vw;
      height: clamp(1.8rem, 2vw, 3.5rem);
      margin: 0;
      /* Reset default margins */
    }
  }

  .month {
    grid-area: month;
    display: flex;
    margin: auto;
    margin-top: 2vh;
    background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);

    h1 {
      color: var(--front-Color);
      font-size: clamp(1.2rem, 2vw, 2.6rem);
      text-align: center;
      width: 12vw;
      height: clamp(1.8rem, 2vw, 3.5rem);
      margin: 0;
    }
  }

  .buttonl,
  .buttonr {
    padding: 0 5px;
    font-size: clamp(1rem, 2vw, 2.6rem);
    text-align: center;
    color: var(--front-Color);
    cursor: pointer;
  }

  .buttonl {
    border-radius: 15px 0 0 15px;
  }

  .buttonr {
    border-radius: 0 15px 15px 0;
  }

  .buttonl:hover,
  .buttonr:hover {
    background-color: var(--mid-Color);
  }

  .days {
    grid-area: days;
    display: flex;
    margin: 1vh 1vw;
    /*height: auto;
    width: auto;*/
    background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);
    justify-items: center;
    justify-content: center;
  }

  .tableDays {
    /*display: flex;
    margin: auto;*/
    padding: 10px;
    background-color: var(--text-Color);
    border-radius: 15px;

  }

  .msg {
    grid-area: msg;
  }

  .bt {
    grid-area: bt;
  }

  .msg,
  .bt {
    display: none;
    margin: auto;
    margin-top: 2vh;
    height: auto;
    width: 80%;
    background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);
    text-align: center;
    align-content: center;
    padding: 10px;
  }

  .week span {
    display: inline-block;
    width: 7vw;
    height: 7vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;
    background-color: var(--mid-Color);
    border-radius: 0.6vw;
    font-size: 1em;
  }

  .day0 {
    color: var(--front-Color);
    position: relative;
    display: inline-block;
    width: 5.5vw;
    height: 4vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;
    background-color: var(--mid-Color);
    border-radius: 0.6vw;
    font-size: clamp(0.8rem, 1.4vw, 1.8rem);

    span h3 {
      color: var(--front-Color);
      font-size: clamp(0.8rem, 1.4vw, 1.8rem);
      text-align: center;
    }
  }

  .dayD {
    background-color: var(--midmid-Color);
    color: var(--front-Color);
    position: relative;
    display: inline-block;
    width: 5.5vw;
    height: 6vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;

    border-radius: 0.6vw;
    transition: border 0.2s;

    /*
    &:hover {
      border: 2px solid var(--front-Color);
    }
    */
    span {
      font-size: 1.8vw;
      text-align: center;
    }

    h5 {
      position: absolute;
      top: 14%;
      left: 30%;
      width: 36%;
      text-align: center;
      z-index: 1;
      padding: auto;
      background-color: var(--body-Color);
      color: var(--front-Color);
      border-radius: 1vw;
      margin: 0;
    }

    .badge {
      position: absolute;
      top: -0.3vh;
      right: -0.3vw;
      /*padding: 4px 6px;*/
      padding: 0.4vh 0.7vw;
      border-radius: 50%;
      background: green;
      color: white;
      font-size: 0.8em;
      z-index: 3;
    }

    .badgeb {
      position: absolute;
      bottom: -0.3vh;
      right: -0.3vw;
      /*padding: 4px 6px;*/
      padding: 0.4vh 0.7vw;
      border-radius: 50%;
      background: orange;
      color: white;
      font-size: 0.8em;
      z-index: 3;
    }

  }

  .day {
    color: var(--front-Color);
    position: relative;
    display: inline-block;
    width: 5.5vw;
    height: 6vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;
    background-color: var(--mid-Color);
    border-radius: 0.6vw;
    transition: border 0.2s;

    &:hover {
      border: 2px solid var(--front-Color);
    }

    span {
      font-size: 1.8vw;
      text-align: center;
    }

    h5 {
      position: absolute;
      top: 14%;
      left: 30%;
      width: 36%;
      text-align: center;
      z-index: 1;
      padding: auto;
      background-color: var(--body-Color);
      color: var(--front-Color);
      border-radius: 1vw;
      margin: 0;
    }

    .badge {
      position: absolute;
      top: -0.3vh;
      right: -0.3vw;
      /*padding: 4px 6px;*/
      padding: 0.4vh 0.7vw;
      border-radius: 50%;
      background: green;
      color: white;
      font-size: 0.8em;
      z-index: 3;
    }

    .badgeb {
      position: absolute;
      bottom: -0.3vh;
      right: -0.3vw;
      /*padding: 4px 6px;*/
      padding: 0.4vh 0.7vw;
      border-radius: 50%;
      background: orange;
      color: white;
      font-size: 0.8em;
      z-index: 3;
    }

  }



  .appendDay {
    color: var(--front-Color);
    position: relative;
    display: inline-block;
    width: 5.5vw;
    height: 6vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;
    background-color: var(--mid-filet-color);
    border-radius: 0.6vw;
    transition: border 0.2s;

    &:hover {
      border: 2px solid var(--front-Color);
    }

    span {
      font-size: 1.8vw;
      text-align: center;
    }

    h5 {
      position: absolute;
      top: 14%;
      left: 30%;
      width: 36%;
      text-align: center;
      z-index: 1;
      padding: auto;
      background-color: var(--body-Color);
      color: var(--front-Color);
      border-radius: 1vw;
      margin: 0;
    }

    .badge {
      position: absolute;
      top: -5px;
      right: -5px;
      padding: 5px 10px;
      border-radius: 50%;
      background: green;
      color: white;
      font-size: 0.8vw;
    }
  }

  .buttonDay {
    color: var(--front-Color);
    position: relative;
    display: inline-block;
    width: 9vw;
    height: 4vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;
    background-color: var(--mid-Color);
    border-radius: 0.6vw;
    transition: border 0.2s;

    &:hover {
      border: 2px solid var(--front-Color);
    }

    span {
      font-size: 1.8vw;
      text-align: center;
    }

    h5 {
      position: absolute;
      top: 14%;
      left: 30%;
      width: 36%;
      text-align: center;
      z-index: 1;
      padding: auto;
      background-color: var(--body-Color);
      color: var(--front-Color);
      border-radius: 1vw;
      margin: 0;
    }

    .badge {
      position: absolute;
      top: -5px;
      right: -5px;
      padding: 5px 10px;
      border-radius: 50%;
      background: green;
      color: white;
      font-size: 0.8vw;
    }
  }

  .times {
    grid-area: times;
    display: flex;
    margin: 1vh 1vw;
    min-width: 40vw;
    height: 48vh;
    background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);
    overflow-y: auto;
  }

  .label {
    grid-area: label;
    display: flex;
    margin: auto;
    margin-top: 2vh;
    width: 80%;
    background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);
    text-align: center;
    /*font-size: clamp(1rem, 1.2vw, 1.8rem);*/
    padding: 0px 10px;

    h1 {
      color: var(--front-Color);
      font-size: clamp(0.8rem, 2vw, 2.6rem);
      text-align: center;
      width: 100%;
      height: clamp(1.8rem, 2vw, 3.5rem);
      margin: 0;
    }
  }

  .tableTimes {
    display: table;
    /* Changed from flex to table */
    margin: 1vh auto;
    width: 97%;
    background-color: var(--text-Color);
    border-radius: 15px;
    border-collapse: separate;
    /* Required for border-radius to work on tables */
    border-spacing: 0;
    vertical-align: middle;
  }

  .tableTimes tbody {
    /*display: flexbox;*/
    width: 100%;
  }

  .tableTimes tbody tr {
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: row;

    justify-content: left;
  }

  /*
  .tableTimes td h1{
    margin: 0;
    color: var(--front-Color);
    background-color: var(--mid-Color);
    text-align: center;
    border-radius: 10px;
    width: auto;
    height: 6vh;
    line-height: 6vh;
    display: block;
    Ensures width and height are respected inside the td 
  }
*/

  .time {
    color: var(--front-Color);
    position: relative;
    /* display: inline-block;
    height: 8vh;*/
    margin: 0.4vh 0;
    padding: 0.8vh 1.2vw;
    background-color: var(--mid-Color);
    border-radius: 0.6vw 4vw 4vw 0.6vw;
    align-content: center;
    align-items: center;
    z-index: 0;

  }

  select {
    width: 100%;
    height: 100%;
    padding: 10px 20px 10px 14px;
    font-size: 16px;
    font-family: sans-serif;
    /*Aesthetics */
    color: #000000;
    background-color: #ffffff;
    border: none;
    border: 1px solid var(--mid-Color);
    border-radius: 8px;
    cursor: pointer;

    /*Custom Arrow Graphic */
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://w3.org' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;

    /*Smooth interaction transition */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }



  .buttonSel {
    color: var(--front-Color);
    position: relative;
    display: inline-block;
    width: 33%;
    height: 7vh;
    margin: 0.0vh 0.4vw;
    /*padding: 0.4vh 0.8vw;*/
    background-color: var(--mid-Color);
    border-radius: 0.6vw;
    transition: border 0.2s;
    align-content: center;

    &:hover {
      border: 2px solid var(--front-Color);
    }

    span {
      font-size: 1.8vw;
      text-align: center;
    }

    h5 {
      position: relative;
      /*top: 14%;
      left: 30%;
      width: 36%;*/
      text-align: center;
      z-index: 1;
      padding: auto;
      background-color: var(--body-Color);
      color: var(--front-Color);
      border-radius: 1vw;
      margin: 0;
    }

    .badge {
      position: absolute;
      top: -5px;
      right: -5px;
      padding: 5px 10px;
      border-radius: 50%;
      background: green;
      color: white;
      font-size: 0.8vw;
    }
  }
}

/* Dashboard */
.structure02 {
  position: relative;
  display: flex;
  overflow: hidden;
  z-index: 2;

  .dashboard {
    position: relative;
    display: grid;
    grid-template-areas:
      'dashboardmenu tabsmenu';
    overflow: hidden;
    margin: auto;
    margin-top: 2vh;
    margin-bottom: 8vh;

    background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);
  }

  .dashboardmenu {
    grid-area: dashboardmenu;
    display: flex;
    position: relative;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    /*justify-items: left;*/
    margin: auto;
    margin-left: 4vw;
    margin-top: 8vh;
    margin-bottom: 4vh;
    width: 15vw;
    min-width: 150px;
    overflow-y: auto;

    background-color: var(--body-Color);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    ul {
      list-style-type: none;
      padding: 0;
      margin: 0 auto;
    }


    a,
    li {
      display: block;
      color: #333333;
      padding: 12px 16px;
      text-decoration: none;
      font-family: sans-serif;
      font-size: 16px;
      border-radius: 6px;
      transition: all 0.2s ease-in-out;
    }

    h1 {
      color: var(--front-Color);
      font-size: 20px;
      text-align: center;
    }

    a:hover {
      background-color: #e9ecef;
      color: #000000;
      padding-left: 20px;
      /* Subtle slide effect */
    }

    a.active {
      background-color: var(--front-Color);
      color: #ffffff;
      font-weight: bold;
    }

  }

  .tabsmenu {
    grid-area: tabsmenu;
    display: flex;
    position: relative;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    justify-items: left;

    margin: auto;
    margin-top: 2vh;
    margin-bottom: 2vh;
    min-width: 60vw;
    /*background-color: var(--text-Color);
    border: 2px solid var(--front-Color);
    border-radius: 15px;
    box-shadow: 2px 2px var(--mid-Color);*/
  }
}


/* container-tile012 (search list) index */
.searchbar {
  position: relative;
  margin: auto;
  margin-top: 3vh;
  margin-bottom: 3vh;
  width: 70vw;
  height: 10vh;
  min-height: 10vh;
  min-width: 600px;
  padding: 2vh;
  background-color: var(--body-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  align-content: center;
  /*overflow-x: scroll;*/
  overflow: hidden;

  span {
    margin: 2vw;
  }

  a {
    font-size: clamp(0.8rem, 1.4vw, 1.8rem);
  }
}

/* container-tile012 (search list) */
.searchlist {
  position: relative;
  margin: auto;
  margin-top: 3vh;
  margin-bottom: 10vh;
  width: 70vw;
  height: auto;
  min-height: 10vh;
  min-width: 570px;
  padding: 2vw;
  background-color: var(--body-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  align-content: center;
  overflow-x: scroll;
  overflow: hidden;

  td {
    font-size: clamp(0.8rem, 1.2vw, 1.6rem);
  }
}

/* container-tile000 (not in use )*/
.container-tile000 {
  display: grid;
  grid-template-areas:
    'title picture'
    'txt txt';
  gap: 0.5vw;
  margin: auto;
  margin-top: 5vh;
  /*margin-bottom: 10vh;*/
  width: 70vw;
  /*height: auto;*/
  min-height: 50vh;
  padding: 0.5vw;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 10px 10px var(--mid-Color);
  /*overflow: scroll;
  overflow-anchor: auto;*/

  .title {
    grid-area: title;
    align-content: center;
    justify-items: center;
  }

  .picture {
    grid-area: picture;
    align-content: center;
    justify-self: center;

    img {
      padding: 5px;
      width: 200px;
      height: 200px;
      border: 0.5px solid black;
    }
  }

  .txt {
    grid-area: txt;
    grid-column-start: 1;
    grid-column-end: 3;
    background-color: var(--text-Color);
    font-size: large;
    height: auto;
    /*overflow: scroll;
    overflow-anchor: auto;*/
  }
}

/* container-tile001 (home[left] not in use )*/
.container-tile001 {
  display: grid;
  grid-template-areas:
    'picture txt'
    'title txt';
  margin: auto;
  margin-top: 5vh;
  margin-bottom: 10vh;
  width: 70vw;
  height: auto;
  /*min-height: 65vh;*/
  padding: 2vw;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 10px 10px var(--mid-Color);
  /*overflow:scroll; */
  /*z-index: 1;*/


  .picture {
    grid-area: picture;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    align-content: bottom;
    justify-items: center;
    position: relative;

    .gradient {
      width: 100%;
      height: 100%;
      background-image: linear-gradient(to top, black 5%, transparent 15%);
      position: absolute;
      top: 0;
      left: 0;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .title {
    grid-area: title;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    align-content: center;
    justify-items: center;
    margin-bottom: 20px;
    background-color: black;

    h1 {
      padding: 20px;
      background-color: black;
      color: white;
    }
  }

  .txt {
    grid-area: txt;
    grid-column-start: 2;
    grid-column-end: 3;
    padding: 20px;
    margin: 19px;
    background-color: var(--text-Color);
    font-size: clamp(1.2rem, 2vw, 2.6rem);
    font-family: "Verdana", "Courier New", monospace;
    height: auto;
    /*overflow: hidden;
    overflow-anchor: auto;*/
  }
}

/* container-tile001 (home[Right] not in use)*/
.container-tile001R {
  display: grid;
  grid-template-areas:
    'txt picture'
    'txt title';
  margin: auto;
  margin-top: 5vh;
  margin-bottom: 10vh;
  width: 70vw;
  height: auto;
  min-height: 60vh;
  padding: 2vw;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 10px 10px var(--mid-Color);
  /*overflow:scroll; */


  .picture {
    grid-area: picture;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    align-content: bottom;
    justify-items: center;
    position: relative;

    .gradient {
      width: 100%;
      height: 100%;
      background-image: linear-gradient(to top, black 5%, transparent 15%);
      position: absolute;
      top: 0;
      left: 0;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .title {
    grid-area: title;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    align-content: center;
    justify-items: center;
    margin-bottom: 20px;
    background-color: black;

    h1 {
      padding: 20px;
      background-color: black;
      color: white;
    }
  }

  .txt {
    grid-area: txt;
    grid-column-start: 1;
    grid-column-end: 2;
    padding: 20px;
    margin: 10px;
    background-color: var(--text-Color);
    font-size: clamp(1.2rem, 2vw, 2.6rem);
    font-family: "Verdana", "Courier New", monospace;
    height: auto;
    /*overflow: hidden;*/
  }
}

/* container-tile010 (not in use) */
.container-tile010 {
  display: grid;
  grid-template-areas:
    'logo title cmd'
    'logo txt cmd';
  margin: auto;
  margin-top: 3vh;
  margin-bottom: 1vh;
  width: 62vw;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  /*overflow: scroll;*/


  .logo {
    grid-area: logo;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    align-content: center;
    justify-items: center;
    position: relative;
    padding: 0px 20px;
    font-size: 50px;
    width: 10vw;

    img {
      border-radius: 20px;
    }
  }

  .title {
    grid-area: title;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 1;
    justify-items: center;
    width: 40vw;
  }

  .txt {
    grid-area: txt;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    align-content: left;
    justify-items: left;
    padding: 3px;
    background-color: var(--text-Color);
    /*overflow-x: scroll;*/
  }

  .cmd {
    grid-area: txt;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 3;
    align-content: left;
    justify-items: left;
    padding: 3px;
    background-color: var(--text-Color);
    width: 8vw;
    /*overflow-x: scroll;*/
  }
}

/* container-tile011 (about) */
.container-tile011 {
  display: grid;
  grid-template-areas:
    'title txt'
    'txt txt';
  margin: auto;
  margin-top: 5vh;
  margin-bottom: 10vh;
  width: 70vw;
  height: auto;
  min-height: 10vh;
  padding: 2vw;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  /*overflow: scroll;*/


  .logo {
    grid-area: picture;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    align-content: top;
    justify-items: center;
    position: relative;

    .gradient {
      width: 100%;
      height: 100%;
      background-image: linear-gradient(to top, black 5%, transparent 15%);
      position: absolute;
      top: 0;
      left: 0;
    }

    img {
      width: 100%;
      height: 90%;
      object-fit: cover;
    }
  }

  .title {
    grid-area: title;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    align-content: center;
    justify-items: center;
    background-color: black;

    h1 {
      padding: 20px;
      background-color: black;
      color: white;
    }
  }

  .txt {
    grid-area: txt;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    padding: 20px;
    margin: 10px;
    background-color: var(--text-Color);
    font-size: large;
    height: 80%;

    p {
      text-indent: 50px;
      text-align: justify;
      text-align-last: left;
      letter-spacing: 1px;
      line-height: 1.4;
      white-space: pre-wrap;
    }

    /*overflow-x: scroll;*/
  }
}

/* container-tile012 (not in use) */
.container-tile012 {
  display: block;
  margin: auto;
  margin-top: 5vh;
  margin-bottom: 10vh;
  width: auto;
  height: auto;
  /*min-height: 10vh;
  min-width: 600px;*/
  max-width: 70vw;
  padding: 2vw;
  background-color: var(--body-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  align-content: center;
  /*overflow-x: scroll;*/
  overflow: hidden;

  p {
    text-indent: 50px;
    text-align: justify;
    text-align-last: left;
    letter-spacing: 1px;
    line-height: 1.4;
    white-space: pre-wrap;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1em;
    white-space: pre-line;
  }

}

/* container-tile1 (messages ) */
.container-tile1 {
  display: grid;
  grid-template-areas:
    'logo message'
    'txt txt'
    'action action';
  gap: 0.5vw;
  margin: auto;
  margin-top: 5vh;
  width: 70vw;
  height: auto;
  min-height: 60vh;
  padding: 0.5vw;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 10px 10px var(--mid-Color);
  /*overflow: scroll;*/


  .item1 {
    grid-area: logo;
    grid-column-start: 1;
    grid-column-end: 2;
    background-color: var(--text-Color);
    align-content: center;
    justify-items: center;
  }

  .item2 {
    grid-area: message;
    grid-column-start: 2;
    grid-column-end: 4;
    width: 3fr;
    background-color: var(--text-Color);
    align-content: center;
    justify-items: center;

    img {
      border-radius: 2vw;
      width: 20vw;
    }
  }

  .item3 {
    grid-area: txt;
    grid-column-start: 1;
    grid-column-end: 4;
    background-color: var(--text-Color);
    font-size: large;
  }

  .item4 {
    grid-area: action;
    grid-column-start: 3;
    grid-column-end: 4;
    background-color: var(--text-Color);
    align-content: center;
    justify-items: center;
  }
}

/* container-tile2 (not in use) */
.container-tile2 {
  display: grid;
  grid-template-areas:
    'month year label'
    'days days times'
    'msg msg bt';
  /*background-color: var(--body-Color);*/
  margin-top: 3vh;
  margin-bottom: 5vh;
  gap: 10px;

}


select {
  width: 100%;
  padding: 10px 20px 10px 14px;
  font-size: 16px;
  font-family: sans-serif;
  /*Aesthetics */
  color: #000000;
  background-color: #ffffff;
  border: none;
  border: 1px solid var(--mid-Color);
  border-radius: 8px;
  cursor: pointer;

  /*Custom Arrow Graphic */
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://w3.org' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;

  /*Smooth interaction transition */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/*Focus state styling 
select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
  outline: none;
}*/

/*Disabled state styling */
select:disabled {
  background-color: #f5f5f5;
  color: #999999;
  cursor: not-allowed;
}

/*
@media only screen and (max-width: 600px) {
  body {
    min-width: 0;
    overflow-x: hidden;

    h1 {
      font-size: clamp(0.8rem, 1.2vw, 2rem);
    }
  }

  .owner {
    width: 100vw;
  }

  .calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'month year'
      'days  days'
      'msg msg'
      'label label'
      'times times'
      'bt bt';
    margin: 10px;
    margin-bottom: 1vh;
    width: 96vw;
    gap: 5px;


    .days {
      grid-area: days;
      width: 94vw;
      margin-right: 20px;

    }

    .times {
      grid-area: times;
      width: 94vw;
      margin-right: 20px;
    }

    .tableTimes td h1 {
      width: auto;
      font-size: 5vw;
    }

    tbody {
      width: 100vw;

      tr {
        display: flex;
        flex-direction: row;
        
      }
    }

    .days {
      overflow-x: auto;
    }

    .year h1,
    .month h1 {
      font-size: clamp(1.2rem, 2vw, 2.6rem);
      width: auto;
    }

    .buttonl,
    .buttonr {
      padding: 0 5px;
      font-size: clamp(1.2rem, 2vw, 2.6rem);
      text-align: center;
      color: var(--front-Color);
      cursor: pointer;
    }

    .appendDay {
      width: 11vw;
      height: 6vh;
    }

    .dayD {
      width: 11vw;
      height: 6vh;
    }

    .day {
      width: 11vw;
      height: 6vh;
    }

    .day0 {
      width: 11vw;
      height: 4vh;
    }

    .day span {
      font-size: 3vw;
    }
  }

  .container-tile001,
  .container-tile001R,
  .container-tile011 {
    display: grid;
    grid-template-areas:
      'picture'
      'title'
      'txt';

    .picture {
      grid-area: picture;
      grid-column-start: 1;
      grid-column-end: 2;
      grid-row-start: 1;
      grid-row-end: 2;
    }

    .title {
      grid-area: picture;
      grid-column-start: 1;
      grid-column-end: 2;
      grid-row-start: 2;
      grid-row-end: 3;
    }

    .txt {
      grid-area: picture;
      grid-column-start: 1;
      grid-column-end: 2;
      grid-row-start: 3;
      grid-row-end: 4;
      padding: 5px;
      margin: 5px;
    }
  }

}
*/
@media only screen and (max-width: 600px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  body h1 {
    font-size: clamp(0.8rem, 1.2vw, 2rem);
  }

  .structure0 {
    height: 150%;
  }

  .owner {
    width: 100vw;
  }

  .calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'month year'
      'days days'
      'msg msg'
      'label label'
      'times times'
      'bt bt';
    margin: 10px;
    margin-bottom: 1vh;
    width: 96vw;
    gap: 5px;


    /* <-- FIXED: Added missing closing bracket for .calendar */

    .calendar .days {
      grid-area: days;
      width: 94vw;
      margin-right: 20px;
      overflow-x: auto;
    }

    .calendar .times {
      grid-area: times;
      width: 94vw;
      margin-right: 20px;
    }

    .tableTimes td h1 {
      width: auto;
      font-size: 5vw;
    }

    tbody {
      width: 100vw;
    }

    tbody tr {
      display: flex;
      flex-direction: row;
    }

    .year h1,
    .month h1 {
      font-size: clamp(1.2rem, 2vw, 2.6rem);
      width: auto;
    }

    .buttonl,
    .buttonr {
      padding: 0 5px;
      font-size: clamp(1.2rem, 2vw, 2.6rem);
      text-align: center;
      color: var(--front-Color);
      cursor: pointer;
    }

    .appendDay,
    .dayD,
    .day {
      width: 11vw;
      height: 6vh;
    }

    .day0 {
      width: 11vw;
      height: 4vh;
    }

    .day span {
      font-size: 3vw;
    }

    .container-tile001,
    .container-tile001R,
    .container-tile011 {
      display: grid;
      grid-template-areas:
        'picture'
        'title'
        'txt';
    }

    /* FIXED: Removed conflicting 'grid-area: picture' from children */
    .container-tile001 .picture,
    .container-tile001R .picture,
    .container-tile011 .picture {
      grid-area: picture;
    }

    .container-tile001 .title,
    .container-tile001R .title,
    .container-tile011 .title {
      grid-area: title;
    }

    .container-tile001 .txt,
    .container-tile001R .txt,
    .container-tile011 .txt {
      grid-area: txt;
      padding: 5px;
      margin: 5px;
    }
  }
}

/* forms */
.card-form {
  margin: 5vh auto;
  margin-bottom: 2vh;
  max-width: 550px;
  width: 90%;
  /*background-color: #f8f9fa;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);*/
  /*overflow: scroll;*/


  background-color: var(--body-Color);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

.card-header {
  padding: 15px;
  background-color: var(--mid-Color);
  border-radius: 8px 8px 0 0;
  color: var(--front-Color);
  text-align: center;
}

.card-body {
  margin: 2vh 0 2vh 0;
  padding: 2vh;
  background-color: var(--body-Color);

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;

    img {
      border-radius: 2vh;
      width: 150px;
      height: 150px;
    }
  }

}

.form-item {
  margin-bottom: 0.5vh;
  background-color: var(--body-Color);

  label {
    display: block;
    margin-bottom: 6px;
    color: var(--front-Color);
  }

  .dtd {
    color: var(--front-Color);
    padding: 0px 20px;

    td {
      text-align: center;
    }
  }

  input {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--mid-Color);
    box-sizing: border-box;
  }

  span h3 {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid var(--mid-Color);
    box-sizing: border-box;

  }

  .inputcolor {
    width: 100%;
    font-size: 16px;
    padding: 0px;
    border-radius: 8px;
    border: 1px solid var(--mid-Color);
    box-sizing: border-box;
  }

  #recordSelector {
    width: 100%;
    margin: 0px;
    font-size: 16px;
    padding: 0px;
    border-radius: 8px;
    border: 1px solid var(--mid-Color);
    box-sizing: border-box;
  }

  textarea {
    width: 100%;
    font-size: medium;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--mid-Color);
    box-sizing: border-box;
  }



  .da0 {
    position: relative;
    display: inline-block;
    width: 4vw;
    height: 4vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;
    background-color: var(--mid-Color);
    text-align: center;
    justify-content: center;
    color: white;
    border-radius: 0.6vw;
    font-size: clamp(0.8rem, 1.4vw, 1.8rem);
  }

  .da1 {
    position: relative;
    display: inline-block;
    width: 4vw;
    height: 4vh;
    margin: 0.4vh 0.4vw;
    padding: 0.4vh 0.8vw;
    background-color: var(--mid-Color);
    text-align: center;
    justify-content: center;
    color: blue;
    border-radius: 0.6vw;
    font-size: clamp(0.8rem, 1.4vw, 1.8rem);
  }




  .dtd {
    color: var(--front-Color);
    padding: 0px 20px;
  }

  a {
    text-align: center;
  }
}

.form-button {
  margin: 20px;
  text-align: center;
  /*margin-top: 20px;
  
  padding-bottom: 20px;*/

  input {
    width: auto;
    min-width: 120px;
    margin: 20px;
    padding: 10px 20px;
    font-size: 20px;
    color: var(--text-Color);
    background-color: var(--front-Color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  input:hover {
    background-color: var(--filet-Color);
  }
}

.modelview {
  display: grid;
  gap: 2px;
  align-items: end;
  grid-template-areas:
    'mvg mvb';

  .mvg {
    grid-area: mvg;
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 1;
    grid-row-end: 1;
  }


  .mvb {
    grid-area: mvb;
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 1;
    align-items: flex-end;
    padding-bottom: 3px;


    span {
      text-align: end;
    }
  }
}

.modeldata {
  display: grid;
  gap: 1vw;
  grid-template-areas:
    'modelnumber modeltext'
    'start duration';

  .modelnumber {
    grid-area: modelnumber;
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 1;
    grid-row-end: 1;
  }

  .modeltext {
    grid-area: modeltext;
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 1;
  }

  .start {
    grid-area: start;
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 2;
    grid-row-end: 2;
  }

  .duration {
    grid-area: duration;
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 2;
  }

}



.modelnumber {
  width: 100%;
  font-size: 20px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--mid-Color);
  box-sizing: border-box;
}


.formsearch input[type=text] {

  max-width: 360px;
  font-size: 20px;
  border: 1px solid grey;
  float: left;
  width: 90%;
  height: 4vh;
  background: #f1f1f1;
  align-content: center;
  z-index: 1;
}

.formsearch a {
  margin-left: 1vw;
  text-decoration: none;
  float: left;
  width: 25%;
  background: #2196F3;
  color: white;
  font-size: 16px;
  height: 4vh;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
  text-align: center;
  z-index: 1;
}

.formsearch button {

  float: left;
  width: 10%;
  background: #2196F3;
  color: white;
  font-size: 24px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
  z-index: 1;
}

.formsearch button:hover {
  background: #0b7dda;
}

.formsearch::after {
  content: "";
  clear: both;
  display: table;
}

.formsearch span a {
  width: 25%;
}



.list1 {
  margin: auto;
  padding: auto;

  th,
  td {
    padding: 5px;
    padding-bottom: 5px;
    padding-left: 20px;
    padding-right: 30px;

    a {
      text-decoration: none;
      z-index: 1;
    }
  }

  tr:nth-child(even) {
    background-color: #D6EEEE;
  }

}

.reportlist {
  position: relative;
  margin: auto;
  margin-top: 3vh;
  margin-bottom: 3vh;
  width: 100%;
  height: auto;
  min-height: 10vh;
  padding: 2vw;
  background-color: var(--body-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  align-content: center;
  overflow-x: scroll;
  overflow: hidden;

  td {
    font-size: clamp(0.8rem, 1.2vw, 1.6rem);
  }
}

.list2 {

  th,
  td {
    padding: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 10px;

    a {
      text-decoration: none;
      z-index: 1;
    }
  }

  tr:nth-child(even) {
    background-color: #D6EEEE;
  }

}

/* Orphan */


.list-element {
  /*margin-left: 1vw;
  text-decoration: none;
  border-left: none;
  float: left;*/
  margin: 1vh;
  width: 98%;
  background: #ffffff;
  color: var(--front-Color);
  font-size: 2.4vh;
  height: 5vh;
  padding: 5px;
  border: 1px solid var(--mid-Color);
  border-radius: 15px;
  cursor: pointer;
  text-align: center;
  z-index: 1;


}



.da2 {
  position: relative;
  display: inline-block;
  width: 8vw;
  height: 4vh;
  margin: 0.4vh 0.4vw;
  padding: 0.4vh 0.8vw;
  background-color: var(--mid-Color);
  text-align: center;
  justify-content: center;
  color: blue;
  border-radius: 0.6vw;
  font-size: clamp(0.8rem, 1.4vw, 1.8rem);
}

.mgod {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 2;
  /* Sit on top */
  padding-top: 20vh;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content */
.mgod-content {
  margin: auto;
  padding: 20px;
  width: 60vw;
  background-color: var(--text-Color);
  border: 2px solid var(--front-Color);
  border-radius: 15px;
  box-shadow: 2px 2px var(--mid-Color);
  /*
  background-color: #fefefe;
  border: 1px solid #888;
*/
}

/* The Close Button */
.closemgod {
  color: var(--front-Color);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.closemgod:hover,
.closemgod:focus {
  color: var(--filet-Color);
  text-decoration: none;
  cursor: pointer;
}

.switch-place {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: flex-end;
  height: 18px;
  width: 60px;
  background-color: #FFFFFF;
  border-radius: 8px;
  border: 1px solid var(--mid-Color);
  box-sizing: border-box;
  border-radius: 25px;
}

.switch1 {
  position: relative;
  height: 24px;
  width: 24px;
  background-color: var(--filet-Color);
  z-index: 2;
  border-radius: 50%;
}