 :root {
    --bs-primary: #393168;
    --bs-primary-rgb: 57, 49, 104;
     --bs-info-rgb: 196,191,243;
     --gray-purple: #DADAE7;
     --light-bg: #EAEAF1;
     --yellow-bg: #FFBA33;
     --dark-purple: #2B2749;
     --medium-purple: #4B418A;
}

 body {
     font-family: 'Plus Jakarta Sans', sans-serif;
     background-color: var(--light-bg);
 }

.edit-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.edit-link:hover {
  text-decoration: underline;
}


.loader {
    border: 8px solid #cacaca;
    border-radius: 50%;
    border-top: 8px solid var(--bs-primary);
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    display: none;
    aspect-ratio: 1;
}

.loader.htmx-request {
    display: block;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.dashboard-content {
  margin-top: 60px;
}

#chart-cont {
    width: 100%;
    overflow-y: auto;
    object-fit: cover;
}

.settings-text {
    font-size: 1rem !important;
}

@media (min-width: 768px) {
    .settings-text {
        font-size: 1.25rem !important;
    }
}

 .dark-purple {
     color: #393168;
 }

.switch-display {
    width: 2em;
	background-position: left center;
	border-radius: 2em;
	transition: background-position .15s ease-in-out;
    margin-top: .25em;
    background-color: #797979;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff' /%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
}

 .btn-group-time .btn {
     border-radius: 120px;
     width: 5rem;
     color: var(--bs-primary);
     margin-inline: 1rem ;
     font-size: 12px;
     font-weight: 700;
 }

 .btn-group-time .btn:first-child {
     margin: 0 0 0 0.5rem;
 }
 .btn-group-time .btn:last-child {
     margin: 0 0.5rem 0 0;
 }

 .btn-group-time .btn.active {
    background-color: var(--bs-primary);
     color: white;
     border-color: var(--bs-primary);
 }

.center-icon {
    position: absolute;
    top: 49%; left: 50%;
    transform: translate(-50%, -40%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .center-icon {
        transform: scale(0.8);
        top: 40px; left: 55px;
        margin-top: 10px;
    }
}

.energy-value {
    font-size: 44px;
    margin-bottom: 0;
}
/* For screens less than xl (i.e., below 1200px) */
@media (max-width: 1199.98px) {
    .energy-value {
      font-size: 32px !important;
    }
  }

 @media (max-width: 992px) {
     .energy-value {
         font-size: 44px !important;
     }
 }

 @media (max-width: 576px) {
     .energy-value {
         font-size: 20px !important;
     }
 }

 .donut-container {
     height: 221px;
     width: 221px;
     position: relative;
 }

 @media (max-width: 576px) {
     .donut-container {
         height: 140px;
     }
 }

 @media (max-width: 460px) {
     .donut-container {
         margin-top: 10px;
     }
 }

 .stat-card,
 .chart-card,
 .info-card {
     padding: 34px 40px;
     border: none;
     height: 153px;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .stat-card-sharing {
     padding: 1rem 0 0 2rem;
     border: none;
     height: 153px;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .banner-card{
     height: 380px;
     overflow: hidden;
     position:relative;
 }

 .banner-vector {visibility: hidden}

 @media (min-width: 1200px) {
     .banner-vector {
         z-index: 50;
         position: absolute;
         top: 4.5rem;
         left: 22rem;
         visibility: visible;
     }
 }

 .banner-headline {
     z-index: 50;
     position: absolute;
     top: 2rem;
     left: 3rem;
     font-size: 48px;
     font-weight: 600;
 }

 .copy-button {
     z-index: 50;
     position: absolute;
     bottom: 5rem;
     left: 3rem;
     font-size: 24px !important;
     width: 15rem !important;
 }
 @media (max-width: 574px) {
     .copy-button {
         bottom: 1.5rem !important;
     }
 }

 @media (min-width: 993px) {
     .banner-image {
         transform: translate(2rem, -14rem) scale(1.1) !important;
     }
 }

 @media (max-width: 768px) {
     .banner-image {
         transform: translateY(-1rem) scale(1.2) !important;
     }
 }

 @media (max-width: 574px) {
     .banner-image {
         transform: scale(2.5) translateY(-2rem) !important;
     }
 }

 .legend {
     display: flex;
     margin-bottom: 15px;
     font-weight: 600;
     font-family: 'Plus Jakarta Sans', sans-serif;
     font-size: 13px;
 }
 .legend-item {
     display: flex;
     align-items: center;
     margin: 0 15px;
 }
 .legend-color {
     width: 20px;
     height: 3px;
     margin-right: 8px;
 }
 .central {
     background-color: #5E35B1;
 }
 .shared {
     background-color: var(--yellow-bg);
 }

 .user-type {
     font-size: 9px;
     border-radius: 100px;
     padding: 5px 10px;
     margin-bottom: auto;
     margin-top: auto;
     height: fit-content;
 }

 .new-message {
     font-size: 9px;
     font-weight: 700;
     border-radius: 4px;
     padding: 5px 10px;
     margin-bottom: auto;
     margin-top: auto;
     height: fit-content;
     background-color: #FFECC7;
     color: #B37A09;
 }

.unread-messages-count {
    color: var(--dark-purple);
    background-color: var(--yellow-bg);
    border-radius: 80%;
    font-size: 13px;
    font-weight: 800;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(0, -2px);
}

.message {
    margin: 5px 0 5px 0;
    padding: 15px;
    align-items: center;
    border-radius: 4px;
    font-size: 16px;
}

.message-time {
    color: rgba(43, 39, 73, 0.64);
    font-weight: 500;
    font-size: 13px;
}

.button {
    background-color: transparent;
    color: var(--bs-primary);
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--bs-primary);
    border-radius: 50px;
    padding: 10px 20px;
    width: fit-content;
}

.table-item{
    padding: 1rem 0 !important;
    font-size: 16px;
}


.table-horizontal-lines {
  border-collapse: collapse;
  width: 100%;
}

.table-horizontal-lines thead tr th {
  border-bottom: 1px solid #D4D4E2;
  border-top: none;
  font-weight: 600;
  background: #fff;
}

.table-horizontal-lines tbody tr {
  border-bottom: 1px solid #D4D4E2;
}

.table-horizontal-lines tbody tr:last-child {
  border-bottom: none;
}

.table-horizontal-lines td {
  border: none !important;
  background: #fff;
}

::placeholder {
    color: #aaa;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.filled-button{
    background: var(--yellow-bg);
    border: none;
    color: var(--dark-purple);
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    min-width: fit-content;
    padding: 15px 30px;
    margin: 1.5rem auto 0 auto;
    text-decoration: none;
}

.current-period {
    background: #FFECC7;
    color: #845B0B;
    padding: 6px;
    border-radius: 4px;
    font-weight: bold;
    margin: 0 0 0.5rem 1.5rem
}

.settings-card {
    padding: 2.5rem 3rem 3rem 3rem;
    margin-bottom: 5rem;
    border: none;
}

.modal-container {
    z-index: 40;
    display: none;
    position: fixed !important;
    top: 0; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    justify-content: center !important;
    align-items: center !important;
    padding-bottom: 12rem !important;
}

 .modal-content {
     background: white;
     padding: 2rem 2.5rem 2rem 2.5rem;
     border-radius: 8px;
     max-width: 584px;
 }

 .modal-header {
     font-weight: 600;
     font-size: 26px !important;
 }

 .modal-subheader {
     font-weight: 600;
     font-size: 20px !important;
     color: var(--bs-primary);
 }

 .modal-text {
     font-size: 14px !important;
     font-weight: 500;
     color: var(--dark-purple);
 }

.hidden-input {
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
}

.settings-border {
    border-bottom: 1px solid #E4E3ED;
}

.settings-category {
    color: var(--medium-purple);
    font-weight: 500;
    width: 40%
}

.settings-adjust {
   color: #4E3CC3;
   text-decoration: underline;
   font-weight: 600;
}

.settings-text {
    font-weight: bold;
    font-size: 16px !important;
    align-content: end;
    width: 60%;
}

.w-70 {
    width: 70% !important;
}

.sharing-border {
    background-color: #EDECF3;
    border: dashed 2px #BDC3E5;
}

.sharing-type {
    margin-top: 1.5rem;
    color: var(--medium-purple);
    font-size: 28px;
    font-weight: 600
}

.sharing-card {
    padding: 2.5rem 3rem 3rem 3rem;
    margin-bottom: 5rem;
    margin-top: 2.5rem;
    border: none;
}

#consumption_images,
#panel_images,
#battery_images {
  display: flex;
  justify-content: center;
}

.consumption-option,
.option‐tile {
  padding: 1rem;
  margin: 0.4rem;
}

form label.form-label.fw-bold {
  padding-bottom: 0.5rem;
}

#custom_consumption_checkbox,
#custom_panel_checkbox,
#custom_battery_checkbox {
  margin-top: 0.5rem;
}

.consumption-option img,
.option‐tile img {
  margin-bottom: 0.5rem;
}

#consumption_input_wrapper,
#panel_input_wrapper,
#battery_input_wrapper {
  padding-top: 1rem;
}


.list-group .list-group-item a img {
  width: 1.25rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}