﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ 
for details on configuring this project to bundle and minify static web assets. */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/*.navbar-inverse{
    background-color: #ff00ff!important;
}*/

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

.active-expand {
    background-color: #cce5ff !important; /* light blue highlight */
    border-color: #004085 !important;
    color: #004085 !important;
}

.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px; /* Space between buttons */
    margin-bottom: 20px; /* Space at the bottom if needed */
}

.navigationButton {
    padding: 8px 24px;
    background-color: #f8f9fa; /* Keep existing button color */
    transition: background-color 0.3s ease;
    margin: 5px; /* Space between buttons */
}

#indexMap {
    width: 75% !important;
    height: 70vh !important;
}

#indexInstallationListDivId{
    width: 25% !important;
}

#nodeMapPartial {
    height: 70vh !important;
}

#installationMapPartial{
    height: 100% !important;
}

#installationMapFull {
    height: 100% !important;
}


/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }

    .navigation-buttons {
        justify-content: center; /* Center buttons on smaller screens */
    }

    .navigationButton {
        width: 100%; /* Stack buttons vertically on small screens */
        margin-bottom: 10px; /* Add margin between stacked buttons */
    }

    #indexMap {
        width: 50% !important;
        height: 70vh !important;
    }
    #indexInstallationListDivId {
        width: 50% !important;
    }

    #nodeMapPartial {
        height: 70vh !important;
    }
}




.scheme-area {
    font-weight: 400;
}

    .scheme-area label {
        font-weight: 400;
        margin: 0;
    }

    .scheme-area * {
        box-sizing: border-box;
    }

    /* Make controls match the header look */
    .scheme-area select,
    .scheme-area input[type="text"],
    .scheme-area input[type="number"] {
        border: 1px solid #bfbfbf;
        border-radius: 6px;
        padding: 2px 8px;
        height: 30px;
        font-weight: 400;
        background: #fff;
    }

/* Main 5-column matrix */
.scheme-grid {
    display: grid;
    /* tightened */
    grid-template-columns: 100px 235px 230px 320px 185px;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
}

/* Left "Schema X" buttons */
.scheme-tab {
    width: 95px; /* tighter */
    height: 34px;
    border-radius: 6px;
    border: 1px solid #9e9e9e;
    background: #e6e6e6;
    color: #555;
    font-weight: 600; /* only button label */
    text-align: left;
    padding-left: 12px;
}

.scheme-tab-active {
    background: #337ab7; /* bootstrap primary */
    border-color: #2e6da4;
    color: #fff;
}

.scheme-muted {
    white-space: nowrap;
}

/* Control sizing (keep inside grey area) */
.scheme-time-select {
    width: 74px;
}
/* was 80 */
.scheme-percent-select {
    width: 76px;
}
/* was 70 */
.scheme-tt-value {
    width: 54px;
}
/* was 60 */
.scheme-tt-unit {
    width: 66px;
}
/* was 70 */

/* Weekday block layout */
.weekday-grid {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    grid-template-rows: auto auto;
    column-gap: 10px; /* tighter */
    row-gap: 6px;
    align-items: center;
    min-width: 0;
}

.weekday-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-width: 0;
}

    .weekday-item label {
        font-size: 13px;
    }

.weekday-checkbox {
    margin: 0;
}

.btn-alla {
    grid-row: 1 / span 2;
    grid-column: 5;
    align-self: center;
    justify-self: start;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Column 3 From/To */
.fromto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 0;
}

/* Column 4 Grundljus + Passageljus */
.lights {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* tighter */
    white-space: nowrap;
    min-width: 0;
}

/* Column 5 Tändtid */
.tt {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* tighter */
    white-space: nowrap;
    min-width: 0;
}