:root {
    --primary-color: #4A90E2;
    /* Modern blue */
    --secondary-color: #262528;
    /* Light grey background */
    --hover-color: #68a4ff;
    /* Slightly lighter blue for hover */
    --active-color: #3a78c3;
    /* Deep blue for active state */
    --font-color: #333;
    /* Text color */
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --panel-size: 100px;
    /* Size of each square panel (100px = 500x500 panel) */
    --panel-bg-color: #262626;
    /* Black color for panels */
    --used-panel-bg-color: #777;
    /* Grey color when a panel is used */
}

body,
html {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    background-color: var(--secondary-color);
    color: var(--font-color);
}

.LEDmaincontainer {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    background-color: white;
    min-width: 300px;
}

.sidebarItems {
    background-color: white;
    display: flex;
    flex-direction: column;
}

.modal-footer {
    border-top: none !important;
}

.sidebarItem {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    border-radius: var(--border-radius);
    margin: 5px 10px;
    list-style: none;
}

.sidebarItem:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

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

.main-content {
    flex-grow: 1;
    margin: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px); /* Adjust this based on your header and footer height */
    overflow: hidden; /* Prevent main-content from scrolling */
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Menu */
.DropdownMenu {
    display: none;
}

.menuDropdownButton {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
    border: none;
    height: 60px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: fixed;
    top: 0;
    z-index: 1025;
    transition: background-color var(--transition-speed);
}

.menuDropdownButton:hover {
    background-color: var(--hover-color);
}

.dropdown {
    display: none;
    background: white;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 70px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdownItem {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--font-color);
    font-weight: bold;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    list-style: none;
}

.dropdownItem:hover {
    background-color: var(--hover-color);
    color: white;
    transform: scale(1.05);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ec1d23;
}

p {
    text-align: center;
    margin-bottom: 20px;
}

.form-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

label {
    flex: 1 1 150px;
    text-align: right;
    margin-right: 10px;
}

input {
    flex: 2 1 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    flex: 1 1 100%;
    padding: 10px 20px;
    border: none;
    background-color: #ec1d23;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #ec1d23;
}

.accordion {
    --bs-accordion-bg: var(--secondary-color);
    --bs-accordion-btn-color: white;
} 

.accordion-button:not(.collapsed) {
    background-color: #ec1d23;
    color: white;
}

.sidebarLogo {
    max-width: 300px;
    padding: 20px;
}

/* Mobile Responsive Design */
@media screen and (max-width: 700px) {
    .sidebar {
        display: none;
    }

    .DropdownMenu {
        display: block;
    }

    .dropdown {
        display: block;
        margin: auto;
        height: 100vh;
    }

    .main-content {
        margin-top: 80px;
    }
}

.LEDcontainer {
    text-align: center;
    padding: 20px;
    flex: 1;
}

.selectedMenuItem {
    background-color: #ec1d23;
color: white;
}


.aspect-ratio-button {
    padding: 10px 20px;
    font-size: 18px;
    margin: 10px;
    cursor: pointer;
    background-color: #5fa1ff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.aspect-ratio-button:hover {
    background-color: #1e80e1;
}

.panel-container {
    display: grid;
    margin-top: 20px;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.vLEDPricingModal {
    max-height: 70vh;
    overflow: scroll;
}

.panel {
    background-color: var(--panel-bg-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    width: 100%;
    border-color: white;
    border-style: solid;
    border-width: 0.1px;
}

.grid-details-container {
    display: flex;
    width: 100%;
}

#panel-container {
    width: 75%;
    height: 500px;
}

.panel.used {
    background-color: var(--used-panel-bg-color);
}

@media screen and (max-width: 700px) {
    .panel-container {
        max-width: 95vw;
        max-height: 70vh;
    }
}

.w100 {
    width: 100%;
}

.detailsPane {
    max-height: calc(100vh - 200px); /* Adjust the value to fit within your layout */
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.list-group-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    flex-direction: column;
}

.btnActive {
   background-color: rgb(255, 128, 128);
   border-color: rgb(255, 128, 128);
   color: white !important;
}

.controls {
    margin: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;

}

.visualizeBtn {
    color:#ec1d23;
    border-color: #ec1d23;
}

.visualizeBtn:hover {
    color:#ffffff;
    border-color: #ec1d23;
    background-color: #ec1d23;
}

.list-group-section {

    margin-bottom: 10px;
}

.list-group {
    flex-grow: 1;
    min-width: 0;
}

.list-group-item .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-group-item span {
    font-size: 14px;
}

.list-group-item span:first-child {
    font-weight: bold;
}

h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}