﻿html, body {
    animation: fadeInAnimation ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}
/* Headings */
.heading-bg {
    min-height: 53.6px;
    font-family: 'Sen', sans-serif !important;
}

/*CONTAINER Driver Style*/
.container {
    border: unset;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: unset;
    padding: unset;
    background-color: #fff;
    overflow-x: auto;
    width: 100%;
    animation: fadeInAnimation ease 0.75s;
    animation-iteration-count: 1;
   /* animation-fill-mode: forwards;*/ /*This causes my modals to bork*/
    max-width: 100%;
}

.global-parameter-container {
    height: fit-content;
}

.page{
    min-height: 100vh;
    height: unset;
}

.toolbar-button {
    padding: 0.5rem 1.2rem !important;
/*  for e-custom button override*/
}

/* BUTTON */
.e-btn.e-custom {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.e-btn:disabled{
    background-color:grey;
}

.e-btn:disabled:hover {
    background-color: grey;
    box-shadow:none;
}

/* SPINNER */
.custom-spinner-overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255,255,255,0.15);
    z-index: 3;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease-in-out;
}

.spinner-circle {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: inline-block;
}
.spinner-circle-small {
    width: 1rem;
    height: 1rem;
}

/* TextBox */
.custom-textbox:disabled {
    background-color: lightgrey;
} 

.label-container {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

@media (max-width:1400px) {
    .label-container {
        font-size: 1rem;
    }
}

.label-container-table {
    display: none;
}

/* Tutorials */

.tutorial-overlay {
    position: relative;
    filter: blur(10px) brightness(80%);
    pointer-events: none;
}

.tutorial-reduce {
    position: relative;
    background: lightgrey ;
}

.tutorial-highlight {
    position: relative;
    pointer-events: none;
    box-shadow: 0 0 10px 3px rgba(0,123,255,0.8);
    background: white ;
}

.tutorial-container {
    background-color: rgb(69, 69, 69);
    animation:none;
    transition: none;
    width: 75%;
    color: white;
    text-align: center;
    padding: 1rem;
    align-content: center;
}

.vh-container{
    min-height: 96vh;
}


/*DropDown*/
input[type="text"], select, .e-input-group.e-control-wrapper {
    width: 100%;
    padding: 8px 10px;
    margin: 4px 0;
    height: 48px;
    box-sizing: border-box;
    border: 2px solid darkgray; /* Ensure custom border color */
    border-radius: 6px;
/*    font-size: 14px;*/
    outline-color: darkgray;
}

/*Analysis run button*/
.run-bg{
    background: #00173B;
    background: linear-gradient(90deg,rgba(0, 23, 59, 1) 0%, rgba(9, 9, 121, 1) 50%, rgba(0, 157, 189, 1) 100%);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.run-bg:hover {
    background: linear-gradient(90deg,rgba(0, 23, 59, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 157, 189, 1) 100%);
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.7);
}

.run-bg:disabled{
    background: linear-gradient(90deg,rgba(0, 23, 59, 1) 0%, rgba(9, 9, 121, 1) 50%, rgba(0, 157, 189, 1) 100%);
    background-size: 600% 600%;
    animation: gradientShift 1.5s linear infinite;
}

/*Modal*/
.modal-attr {
    display: block;
    align-content: center;
    backdrop-filter: blur(5px);
}

.modal-header-background {
    background-color: #00173b;
    color: white;
}

.modal-title-attr {
    margin: 0 0 1rem 0;
    height: 2.5rem;
    padding-left: .5rem;
}

.modal-title-attr:focus {
    outline: 2px solid #00173b;
}

.modal-dropdown-attr {
    margin: 0;
    text-align: initial;
    height: 2.5rem;
    padding-left: .5rem;
}

.modal-description-attr {
    margin: 0;
    text-align: initial;
    height: 5rem;
    padding-left: .5rem;
}

.modal-description-attr:focus {
    outline: 2px solid #00173b;
}

/*Checkbox*/
.form-check-input:checked {
    border-color: #00173b;
    background-color: #00173b;
}
.form-check-input:focus {
    border-color: #00173b;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(0,23,59,.25);
}

/* table */
.table-container-50{
    overflow-y: auto;
    max-height: 50vh;
}

/*fatigue table*/
.fatigue-table {}


.fatigue-table th:nth-child(1),
.fatigue-table td:nth-child(1) {
    width: 15rem;
    min-width: 12rem;
}
.fatigue-table th:nth-child(2),
.fatigue-table td:nth-child(2),
.fatigue-table th:nth-child(4),
.fatigue-table td:nth-child(4) {
    width: 8.5rem;
    min-width: 7.5rem;
}
.fatigue-table th:nth-child(3),
.fatigue-table td:nth-child(3) {
    width: 13rem;
    min-width: 12.5rem;
}

.fatigue-table th:nth-child(5),
.fatigue-table td:nth-child(5) {
    width: 20rem;
    min-width: 15rem;
}
.fatigue-summary-table th:nth-child(2),
.fatigue-summary-table td:nth-child(2),
.fatigue-summary-table th:nth-child(4),
.fatigue-summary-table td:nth-child(4) {
    width: 10%;
}
.fatigue-summary-table th:nth-child(1),
.fatigue-summary-table td:nth-child(1)
{
    width: 15%;
}
.fatigue-summary-table th:nth-child(3),
.fatigue-summary-table td:nth-child(3){
    width: 30%;
}
.fatigue-summary-table th:nth-child(5),
.fatigue-summary-table td:nth-child(5) {
    width: 35%;
}

/*Fatigue result textbox*/
.fatigue-textbox{
    border-color: #00173b;
    
}
.fatigue-textbox:disabled{
    background-color: white;
    color:black;
}

/* Splice Table*/
.splice-table th:nth-child(1),
.splice-table td:nth-child(1) {
    width: 17%;
}


/* Hammer Table */
.hammer-table-cell{
    cursor: pointer;
    
}
.hammer-table-cell-selected{
    background-color: lightgray !important;
    cursor: pointer;
}
.hammer-table-cell-selected:hover{
    background-color: lightgray !important;
}

.bounded-header{
    z-index: 1;
    position: sticky;
    top: 0;
    background-color: white;
}
.hammer-header{
    cursor: pointer;
}
.hammer-table th:nth-child(1),
.hammer-table td:nth-child(1) {
    width: 15%;
}
.hammer-table th:nth-child(2),
.hammer-table td:nth-child(2) {
    width: 20%;
}
.hammer-table th:nth-child(3),
.hammer-table td:nth-child(3) {
    width: 20%;
}
.hammer-table th:nth-child(4),
.hammer-table td:nth-child(4) {
    width: 20%;
}
.hammer-table th:nth-child(5),
.hammer-table td:nth-child(5) {
    width: 15%;
}

.hammer-table th:nth-child(6),
.hammer-table td:nth-child(6) {
    width: 10%;
}

/* Results Table/list */
.results-container {
    max-height: 35vh; overflow-y: auto;
}
.results-table:hover{
    cursor: pointer;
}
.results-table-cell-selected{
    background-color: #00173b !important;
    color: white;
}
.results-table-cell-selected:hover{
    background-color: #00173b !important;
    cursor: pointer;
}

.apexcharts-canvas, .apexcharts-inner, .apexcharts-grid, .apexcharts-graphical {
    margin: 0 !important;
    padding: 0 !important;
}

/* Select */
.select-attr{
    cursor: pointer;
}

/* Custom Toast */
.custom-toast.success {
    border-color: #c3e6cb;
    background-color: #a1cc94;
}

.custom-toast-header {
    padding: 6px 0;
}
.cancel-button {
    margin-left: auto;
}