:root {
    --colour-1: #2c2c2c;
    --font-color1: #f5f5f5;
}

.app-1-header {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    /* margin-left: 15px; */
}

.navbar-container {
    background-color: rgb(231, 231, 231);
    /* width: 100%;
    position: absolute;
    bottom: 0;
    height: 500px; */
    width: 100%;
    height: 75px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.navbar {
    /* background-color: gray; */
    /* width: 100%; */
    /* bottom: 0; */
    /* margin-top: 20px; */
    margin-left: 20px;
    margin-right: 20px;
}

.home-btn {
    display: inline-block;
    background: url("../img/home-icon.png") no-repeat center center / 60%;
    border: none;
    height: 45px;
    width: 45px;
    margin-left: 20px;
    margin-right: 20px;
}

.coffee-btn {
    display: inline-block;
    background: url("../img/coffee-icon.png") no-repeat center center / 55%;
    border: none;
    height: 45px;
    width: 45px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: px;
}
.schedule-btn {
    display: inline-block;
    background: url("../img/schedule-icon.png") no-repeat center center / 60%;
    border: none;
    height: 45px;
    width: 45px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 5px;
}
.setting-btn {
    display: inline-block;
    background: url("../img/setting-icon.png") no-repeat center center / 60%;
    border: none;
    height: 45px;
    width: 45px;
    
}

/* ---- */

.homepage-container {
    display: flex;
    flex-direction: column;

}

.homepage-container h1 {
    margin-left: 15px;
}

.homepage-header-container {
    /* background-color: #d9d9d9; */
    background-image: url(../img/image.png);
    /* background-color: ; */

    background-repeat: none;
    background-size: contain;
    width: 100%;
    height: 250px;
    /* position: absolute; */
    /* margin-top: 40px; */
    font-family: 'Roboto', sans-serif;
    color: var(--font-color1);
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
}



.recent-brews {
    /* background-color: red; */
    width: 100%;
    height: 150px;
    /* position: absolute; */
    margin-top: 20px;
}

.active-schedule {
    /* background-color: blue; */
    width: 100%;
    height: 250px;
    /* position: absolute; */
    margin-top: 20px;
    /* overflow-y: hidden; */
}

.active-schedule .schedule-content {
  height: fit-content;
  padding-bottom: 10px;
  padding-top: 0;
}

.active-schedule .scheduling-container {
  margin: 0;
  padding: 0;
  height: 250px;

  /* padding-bottom: 50px; */
}

.active-schedule .scheduling-container::-webkit-scrollbar {
  display: none;
}

/* Header-related */
.header-bottom {
    display: flex;
    flex-direction: row;
    /* margin-left: 55px;
    margin-right: 55px; */
    align-items: center;
}

.header-island {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: 70px;
    margin-right: 40px;
    justify-content: center;
    align-items: flex-start;

}

.homepage-title {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    margin-top: 40px;
}

.coffee-machine {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 0px;
}

#power-status {
    font-weight: 500;
    font-size: 13px;
    margin-top: 0px;
}



.coffee-img {
    background-image: url("../img/coffee.png");
    background-repeat: none;
    background-size: contain;
    height: 132px;
    width: 132px;

}

.coffee-machine-status {
    background-color: rgba(201, 162, 104, 0.3);
    background-size: contain;
    color: var(--font-color1);
    padding-left: 20px;
    padding-right: 20px;
    width: fit-content;
    border-radius: 8px;

}

.homepage-status-container {
    background-color: #9999;
    color: var(--font-color1);
    font-size: 8px;
    height: 88px;
    /* width: 222px; */
    border-radius: 5px;
    margin-top: 5px;

    display: flex;
    flex-direction: row;
}

.status-mini {
    /* background-color: blue; */
    /* border-radius: 5px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

.square-mini {
    /* background-color: blueviolet; */
    width: 40px;
    height: 40px;
    margin: 5px 20px;
    
}

/* Recent brews */
.square-view4 {
    display: flex;
    flex-direction: row;
    margin-left: 15px;
    margin-right: 15px;
}

.img-label-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 10px auto;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    
}

.square-avg {
    background-color: green;
    width: 80px;
    height: 80px;
    
}

.recent-brews-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 10px; /* optional spacing */
  margin-left: 15px;
  margin-right: 15px;
}


/* Schedule */

.schedule-container {
    /* max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top:10px;
    margin-bottom: 120px; */
}

.schedule-container::-webkit-scrollbar {
    display: none;
}

.schedule-banner {
    /* background-color: gray; */
    width: 375px;
    height: 90px;
    margin: auto;
    margin-bottom: 10px;
}

.square-recipe {
    height: 88px;
    width: 88px;
}


.customize-container {
  max-width: 400px;
  margin: 20px auto;
  padding: 10px 20px;
}

.quick-adjustment {
  margin-bottom: 40px;
  margin-top: 20px
}

.quick-adjustment h3 {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 20px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.button-row button {
  flex: 1 1 45%;
  margin: 0 5px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button-row button:hover {
  background: #444;
}

.slider-group {
  margin-bottom: 20px;
}

.slider-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
}

.slider-with-label {
  position: relative;
}

.slider-with-label input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #222 0%, #222 50%, #ddd 50%, #ddd 100%);
  outline: none;
  cursor: pointer;
}

.slider-with-label input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #222;
  cursor: pointer;
  margin-top: -6px;
  border: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.slider-with-label input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #222;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-top: 5px;
  margin-bottom: 30px;
  color: #555;
  align-items: center;
}

.slider-labels .value-label {
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 12px;
  min-width: 35px;
  text-align: center;
  margin: 0 5px;
}

.toggles {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  user-select: none;
}

.toggle input[type="checkbox"] {
  width: 40px;
  height: 20px;
  appearance: none;
  background: #888;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
}

.toggle input[type="checkbox"]:checked {
  background: #222;
}

.toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.brew-btn {
  display: block;
  margin: 0 auto 40px auto;
  background: #222;
  color: white;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  user-select: none;
  transition: background-color 0.3s ease;

  text-decoration: none;
  text-align: center;
}

.brew-btn:hover {
  background: #444;
}

/* schedule delete */
