/* @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css"); */

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #2b3e52;
    color: white;
    display: flex;
    justify-content: center;
}


.app {
  width: 360px;  
  min-height: 90vh;
  padding: 20px 16px;
  background: #2b3e52;
  margin: 15px 0;
  border-radius: 20px;  
}

@media only screen and (min-width: 600px) {
  .app{
    border: 2px solid #e7eaed5e;
  } 
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h3{
    margin: 8px 10px;
}

.menu-icon {
    font-size: 26px;
    cursor: pointer;
}

.profile {
    width: 40px;
    height: 40px;
    background: url('logo-22-small.png') center/cover;
    border-radius: 50%;
}

.welcome {
    margin-top: 20px;
    position: relative;
}

.add-device {
    position: absolute;
    right: 0;
    top: 10px;
    background: #7ea7d4;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.energy-card {
    margin-top: 20px;
    background: #5a6d85;
    padding: 15px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.energy-card .icon {
    font-size: 26px;
}

.energy-card p{
    margin: 8px 10px;
}


.chart-energy {
    margin-top: 20px;
    background: #1f3042;
    padding: 15px;        
    max-height: 170px;
    border-radius: 15px;
}

#myChart{
    width: 100% !important;
}

.section-title {
    margin: 25px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    color: #bbd4f3;
    text-decoration: none;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.device-card {
    background: #5a6d85;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
}

.device-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-icon {
    font-size: 24px;
}

.temp {
    font-size: 14px;
}

.space {
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.8;
}

h4 {
    margin: 5px 0 10px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 2px; bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #7ea7d4;
}

input:checked + .slider:before {
    transform: translateX(24px);
}


/* CSS */
.button-1 {
  background-color: #EA4C89;
  border-radius: 5px;
  border-style: none;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;  
  font-size: 12px;
  /* height: 40px;
  line-height: 20px; */  
  list-style: none;  
  outline: none;
  padding: 4px 12px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-1:hover{
  background-color: #F082AC;
}

.button-success,
.button-error,
.button-warning,
.button-secondary {
    color: white;
    border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    padding: 5px 8px;
}


.button-success {
    background: rgb(28, 184, 65);
    /* this is a green */
}

.button-error {
    background: rgb(202, 60, 60);
    /* this is a maroon */
}

.button-warning {
    background: rgb(223, 117, 20);
    /* this is an orange */
}

.button-secondary {
    background: rgb(66, 184, 221);
    /* this is a light blue */
}
