/* General Styles */

:root {
    --light-color: rgba(212, 200, 181, 0.15);
    --dark-color: #1a1b27; /* Replace with your current blue color */
}

body.light-theme {
    background-color: rgba(212, 200, 181, 0.15);
    color: #000;
}

body.dark-theme {
    background-color: #1a1b27;
    color: #fff;
}
body.light-theme .main-content,
body.light-theme .sidebar,
body.light-theme .content-box {
    background-color: var(--light-color);
    color: #000;
}


body.dark-theme .main-content {
    background-color: var(--dark-color);
    color: #fff;
}
body.dark-theme .sidebar,
body.dark-theme .content-box{
    background-color: #282a36;
    color: #fff;
}
body.light-theme header h1 {
    color: black;
}
/* Light theme menu item background color */
body.light-theme .menu-item {
    background-color: rgba(212, 200, 181, 0.35); /* Darker version of the light theme background color */
}

body.light-theme .menu-item:hover {
    background-color: rgba(212, 200, 181, 0.45); /* Slightly darker on hover */
}

body.light-theme .menu-item.active {
    background-color: rgba(212, 200, 181, 0.85); /* Even darker for active state */
}
body.dark-theme header h1 {
    color: #50fa7b;
}
.main-content.dark-theme {
    background-color: #1a1b27;
    color: #fff;
}
.main-content.light {
    background-color: rgba(212, 200, 181, 0.15);
    color: #fff;
}
/* Ensure other elements use the theme colors */
.header, .content-box, .sidebar {
    background-color: inherit;
    color: inherit;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    background-color: #1a1b27;
    color: #ffffff;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 100px; /* Default width when minimized */
    background-color: #282a36;
    padding: 15px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.3s ease;
    position: fixed;
    height: 100%;
}

.sidebar.expanded {
    width: 220px;
}

/* Full logo (shown when expanded) */
.logo {
    margin-bottom: 50px;
    transition: opacity 0.3s ease;
}

.logo img {
    width: 150px;
}

.small-logo img {
    width: 40px;
    height: 40px;
    margin-bottom: 35px;
}

#sidebar .logo {
    display: none;
}

#sidebar .small-logo {
    display: block;
}

#sidebar.expanded .logo {
    display: block;
}

#sidebar.expanded .small-logo {
    display: none;
}

/* Menu styles */
.menu {
    list-style: none;
    padding: 0;
}

.menu-item {
    margin-bottom: 15px;
}

.icon {
    font-size: 1.5rem;
    margin: 0 10px; /* Even space on both sides */
    display: inline-block; /* Ensure the icon is displayed */
    color: #ffffff; /* Ensure the icon color is set */
}

/* Main Content Styles */
.main-content {
    flex-grow: 1;
    padding: 30px;
    margin-left: 80px;
    background-color: #1a1b27;
    transition: margin-left 0.3s ease;
    width: calc(100% - 80px);
}

.sidebar.expanded ~ .main-content {
    margin-left: 200px;
    width: calc(100% - 200px);
}

.menu {
    list-style: none;
    width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #44475a;
    border-radius: 12px;
    margin-bottom: 15px;
    margin-left: 8px;
    margin-right: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-item a {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    width: 100%;
    text-align: center;
    font-size: 0.9 rem;
}

.sidebar.expanded .menu-item a {
    text-align: left;
}

.menu-item:hover {
    background-color: #6272a4;
    border-radius: 12px; /* Keep rounded edges on hover */
}

.menu-item.active {
    background-color: #50fa7b;
}

.menu-item .icon {
    font-size: 1.5rem;
    margin: 0 10px; /* Even space on both sides */
}

.sidebar.expanded .menu-item .menu-text {
    display: inline-block;
}

.menu-item .menu-text {
    font-size: 0.9rem;
    display: none; /* Hidden when sidebar is minimized */
}


.sidebar.expanded ~ .main-content {
    margin-left: 300px; /* Adjust when sidebar is expanded */
    width: calc(100% - 300px);
}

header h1 {
    text-align: center;
    font-size: 2rem;
    color: #50fa7b;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

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

.content-box {
    margin-top: 20px;
    background-color: #282a36;
    width: 70%;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

/* Page Transition Animation */
.page-transition {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 60px; /* Smaller width on mobile */
    }


    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .sidebar.expanded ~ .main-content {
        margin-left: 150px;
        width: calc(100% - 150px);
    }
}


/* Design CSS  */

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #098139; /* Updated color */
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

button:hover {
    background-color: #066b2b; /* Darker shade for hover effect */
}

/* Simple Mapbox style */
#map-container {
    height: 100vh; /* Full viewport height */
    width: 100vw;  /* Full viewport width */
    display: flex;
    justify-content: center;
    align-items: center;
}

#mapbox-map {
    height: 500px;
    width: 100%;
    background-color: #f0f0f0;
}

/* style.css */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 20px; /* Increase this value to make the progress bar thicker */
    background-color: #76c7c0;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background-color: #4caf50;
    transition: width 0.5s;
    font-size: 0.8rem; /* Adjust the size as needed */
}

.buttons-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.buttons-container button {
    padding: 10px 20px;
    background-color: #6272a4;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buttons-container button:hover {
    background-color: #50fa7b;
}

.progress-bar-main-container {
    width: 100%;
    margin-bottom: 20px;
    display: block; /* Ensure it takes up the full width */
}

.stage-container {
    width: 100%;
    display: block; /* Ensure it takes up the full width */
    flex-direction: column;
}

.stage {
    width: 100%;
    display: none;
}

.stage.active {
    display: block;
}

/* Ensure the project name input and location lookup are styled similarly */
#project-name, #mapbox-search input {
  display: inline-block;width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Align the label and input on the same line */
.location-lookup-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.location-lookup-container label {
  flex: 0 0 140px; /* Adjust width as needed */
}

#mapbox-search {
  flex: 1;
}
#controls {
    width: 20vw;
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

body.light-theme #controls {
    background: white;
    color: #000;
}

body.dark-theme #controls {
    background: #1a1b27;
    color: #fff;
}
#product-info {
    display: none;
    border-top: 1px solid #ccc;
    margin-top: 15px;
    padding-top: 15px;
}
#product-info img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}
#product-info p {
    margin: 5px 0;
}
.marker {
    background-size: cover;
    border-radius: 50%;
    cursor: pointer;
}
#map2 {
    height: 600px; /* Set a height */
    width: 100%;   /* Set a width */
    background-color: #f0f0f0; /* Optional: Set a background color */
}
.input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.input-container label {
    flex: 0 0 150px; /* Adjust the width of the label as needed */
    margin-right: 10px;
}

.input-container input,
#mapbox-search {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%; /* Ensure full width */
}
.mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: none !important;
}
.mapboxgl-ctrl-geocoder.mapboxgl-ctrl {
    display: flex;
    align-items: center;
}

.mapboxgl-ctrl-geocoder.mapboxgl-ctrl svg {
    margin-right: 10px; /* Adjust the spacing as needed */
}
.mapboxgl-ctrl-geocoder--input {
    text-indent: 20px;
}
.stage-2-container {
    display: flex;
    gap: 20px; /* Optional: Adds space between the panels and basket */
}

.panels-container {
    flex: 2; /* Takes up 2/3rds of the width */
}

.basket-container {
    flex: 1; /* Takes up 1/3rd of the width */
}
.panel-card img {
    max-height: 6em; /* Adjust the value as needed */
    object-fit: contain; /* Ensure the image scales properly */
}
.inverter-card img {
    max-height: 6em; /* Adjust the value as needed */
    object-fit: contain; /* Ensure the image scales properly */
}
.battery-card img {
    max-height: 6em; /* Adjust the value as needed */
    object-fit: contain; /* Ensure the image scales properly */
}
.mounting-card img {
    max-height: 6em; /* Adjust the value as needed */
    object-fit: contain; /* Ensure the image scales properly */
}
.accessory-card img {
    max-height: 6em; /* Adjust the value as needed */
    object-fit: contain; /* Ensure the image scales properly */
}
.card-container {
  display: flex;
    flex-wrap: wrap;
  justify-content: space-around;
  margin: 20px;
}

.card p {
    margin: 0;
}

.card {
    width: 300px; /* Set a fixed width */
    height: 150px; /* Set a fixed height */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin: 20px; /* Add spacing between cards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Align items vertically */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items horizontally */
    flex: 1 1 45%; /* Adjust the percentage as needed */
    margin: 10px
}
@media (max-width: 600px) {
    .card {
        flex: 1 1 100%;
    }
}
.card a {
    text-decoration: none;
    color: inherit;
}

.card p {
    margin: 0;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.card-logo {
    max-width: 100px; /* Adjust the size as needed */
    margin-bottom: 10px; /* Space between the logo and the text */
}
.card-content img {
    width: 500px; /* Set a fixed width */
    height: 20px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image covers the area without distortion */
}
.card h2 {
    margin: 0 0 10px;
  font-size: 1.5em;
}
/* General Styles for Dark Theme */
body.dark-theme {
    background-color: #1a1b27;
    color: #e0e0e0; /* Lighter text color for better contrast */
}

/* Ensure other elements use the theme colors */
body.dark-theme .main-content,
body.dark-theme .sidebar,
body.dark-theme .content-box {
    background-color: var(--dark-color);
    color: #e0e0e0; /* Lighter text color for better contrast */
}

/* Specific Element Adjustments */
body.dark-theme header h1 {
    color: #50fa7b;
}

body.dark-theme .menu-item a {
    color: #e0e0e0; /* Lighter text color for menu items */
}

body.dark-theme .menu-item:hover {
    background-color: #6272a4;
    color: #ffffff; /* Ensure text is visible on hover */
}

body.dark-theme .menu-item.active {
    background-color: #50fa7b;
    color: #1a1b27; /* Ensure text is visible on active state */
}

/* DataTables Wrapper */
body.dark-theme .dataTables_wrapper {
    color: #e0e0e0; /* Lighter text color for data tables */
}
/* Light theme FontAwesome icon color */
body.light-theme .icon {
    color: #08375d; /* Updated color */
}
/* Dark theme FontAwesome icon color */
body.dark-theme .icon {
    color: #ffffff; /* Set the icon color to white */
}
.stage-container {
  display: flex;
  flex-direction: column;
}

.stage {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.stage-content {
  display: flex;
  justify-content: space-between;
}

.products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 3;
}

.basket-container {
  flex: 1;
  margin-left: 20px;
}

.panel-card, .inverter-card, .battery-card, .mounting-card, .accessory-card {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 calc(33.333% - 20px); /* Adjust the width to fit multiple items in a row */
  box-sizing: border-box;
}
.basket-container input[type="number"] {
  width: 6ch; /* Set the width to 6 characters */
}
.card-container .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.card-container .card i {
  font-size: 2rem; /* Adjust size as needed */
  margin-bottom: 0.5rem; /* Space between icon and text */
}
.sidebar .icon {
    margin-top: 0.2rem; /* Add spacing above the icons */
    margin-bottom: 0.2rem; /* Add spacing above the icons */
}
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Allow content to grow and fill space */
    justify-content: center; /* Center content vertically */
}
.card h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
}
.performance-table {
    margin-bottom: 2rem; /* Add spacing between sections */
}
/* Light theme menu item link color */
body.light-theme .menu-item a {
    color: #000000; /* Set the font color to black */
}

/* Dark theme menu item link color */
body.dark-theme .menu-item a {
    color: #e0e0e0; /* Set the font color to a lighter color for better contrast */
}
.stage h2 {
  margin-bottom: 1.5rem; /* Add more gap between h2 and h3 */
}

.minimizable-section {
  border: 1px solid #ccc; /* Draw a border around the section */
  border-radius: 5px;
  padding: 10px;
  margin-top: 1rem;
}

.minimizable-header {
  cursor: pointer;
  margin: 0;
}

.minimizable-content {
  display: none; /* Initially hide the content */
  margin-top: 1rem;
}
  #map-container-2 {
    width: 100%;
    height: 400px; /* Adjust this value to match stage 1's map size */
  }
  #map-2 {
    width: 100%;
    height: 100%;
  }
.fa-rotate {
    font-size: 1.5em; /* Adjust this value as needed to scale with the image size */
    color: red;
}
.fa-rotate.mapboxgl-marker.mapboxgl-marker-anchor-center::before {
    content: none; /* Remove the red square generated by the pseudo-element */
}
.place-panels-btn{
    background-color: #08375d;
}
#saved-map-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}