html {
  font-size: 14px;
}
/*0B5ED7*/

@media (min-width: 768px) {
    html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}



html {
    position: relative;
    height: 100%;
    overflow-y: scroll;
}

body {
    position: relative;
    margin-bottom: 0px;
    height: 100%;
    background-color: #f8f8f8;
    
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */

}

.container {
    width: 100%;
    margin: auto;
    padding: 20px;
    
}

header {
    text-align: start;
    margin-bottom: 20px;  
}
header h1{
    font-weight: 400;
}

.jumbotron {
    text-align: start;
    padding: 2rem 1rem;
}

/*Status weergave*/

.status-section {
    margin-bottom: 20px;
    text-align: start;
    
}

    .status-section h2 {
        /*border-bottom: 2px solid #333;*/
        /*padding-bottom: 10px;*/
        margin-bottom: 0px;
        
        
    }
.status-ok {
    color: #1f9e12 !important;
    
}

.status-warning {
    color: #eebe0e !important;
  
}

.status-nok {
    color: #f70505 !important;
   
}

.main-ok, main-nok {
    
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    text-align: start;
    
}

.flex{
    flex: 1;
}

.main-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: start;
    margin-bottom: 20px;
    width: 100%;
    text-align: start;
}



.left-section {
    flex: 1;
}



#chart-container {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 1rem;
}



.chart-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Twee gelijke kolommen */
    gap: 2rem;
    align-items: stretch;
    height: 100%;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height:200px;
    min-height: 100px;
}



canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    min-height: 150px;
    display: flex;
}


.button-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

    .button-group-responsive .btn {
        flex: 1 1 auto;
        text-align: center;
    }




    .main-section h2 {
        flex-grow: 1;
        text-align: start;
        
        margin: 0;
        font-weight: 300;
    }

    /*.main-section i {
        flex-shrink: 0;
    }*/

.status-container {
    display: flex;
    align-items: center;
    justify-content: start;
}

    .status-container h2 {
        margin: 0 10px;
    }

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
}



.detailStatus-ok {
    color: #1f9e12;
    display: flex;
    align-items: center;
}


.detailStatus-nok {
    color: #f70505;
    display: flex;
    align-items: center;
}

.detailStatus-warning {
    color: #eebe0e !important;
    display: flex;
    align-items: center;
}

.status-icon-ok {
    color: #1f9e12;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.status-icon-nok {
    color: #eebe0e;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.icon-container {
    position: absolute;
    right:20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.category-icon {
    top: 50%;
    transform: translateY(-50%);
    right:17px
}

.margin-t{
    margin-top: 10px;
}

.margin-b{
    margin-bottom: 20px;
}
/*.detailStatus-warning {
    background-color: rgba(255,187,0,1);
    
    padding: 3px 5px 3px 10px;
    font-weight: 400
}

    .detailStatus-warning:nth-child(even) {
        background-color: rgb(250, 213, 111);
    }*/

.main-status {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.status, .timestamp {
    font-weight: bold;
}

/*Accordion*/
.accordion{
    border-radius: 50px;
}

.accordion-body{
    width: 100%;
    margin: 0;
    padding:0;
}
.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    white-space: nowrap;
    overflow: hidden;
    min-height: 60px;
    padding: 15px;
    
}

.accordion-button:focus {
    box-shadow: none !important;
    outline: none !important ;
    color: black !important;
}

.accordion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.accordion-button::after {
    display: none;  /*Hide the bootstrap chevron */
}

.accordion-button::before {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transform: rotate(180deg);
    transition: transform 0.2s;
    margin-left: 5px;
    color: black;
}


.accordion-button.collapsed::before {
    transform: rotate(0deg); 
}


.hide-chevron .accordion-button::before {
    display: none;
}

.accordion-button span {
    flex-grow: 1; 
    margin-left: 10px;
    font-weight: 700;
    color: black;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 4px 15px;
    min-width: 100%;
    font-weight: 500;
    color: black !important;
    position: relative;
}

    .detail-item:nth-child(even) {
        background-color: lightgrey;
    }



/*Sign in*/

.custom-signin {
    background-color: rgba(255,187,0,1); 
    border-color: rgba(255,187,0,1);
    color: black;
}

.custom-signin:hover{
    background-color: black !important;
    border-color: black !important;
    color: white;
}

.custom-signin:focus {
    outline: none;
    box-shadow: none;
}

/*Footer*/


.card-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card {
    /*flex: 1 1 calc(25% - 20px);*/ /* Adjust percentage based on the number of cards per row */
    margin: 10px;
    border: none;
    min-width: 200px;
}

/*schermbreedte*/

@media (max-width: 1200px) {
    .accordion-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-group{
        grid-template-columns: repeat(4, 1fr);
    }

    
}

@media (max-width: 992px) {
    .accordion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-group {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .accordion-grid {
        grid-template-columns: 1fr;
    }

    .main-grid {
        grid-template-columns: 1fr
    }


    #myChart {
        width: auto !important;
        height: 100% !important;
    }


    .card-group {
        grid-template-columns: repeat(1, 1fr);
    }
}