.failure-title {
    font-size: 1.4em;
    font-weight: 700;

    margin: 0;
}

.char-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.char-item {
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #009cc1;
    border-right: 1px solid #009cc1;
    border-top: 1px solid #009cc1;
    border-bottom: 1px solid #009cc1;
}
.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.control-group {
    display: flex;
    flex-direction: column;
}
.control-group label {
    font-weight: 600;

    margin-bottom: 8px;
}
.control-group select, .control-group input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
.control-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}
.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2a5298;
    border-radius: 50%;
    cursor: pointer;
}
.freq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.freq-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}
.view-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #009cc1;
}

.toggle-btn.active {
    background: #009cc1;
    color: white;
}
.chart-title {

    text-align: center;
}

.chart-wrapper {
    position: relative;
    height: 400px;
    background: #fff;
    border-radius: 10px;;
}
.form-select {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url(../img/download.svg);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.border-left-0{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.border-right-0{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
hr{
    color: #009cc1 !important;
}


/* Vibration ISO vib  */

.form-group {
    display: flex;
    flex-direction: column;
}

#chart-container {
    position: relative;
    height: 100px;
    width: 100%;
    border-radius: 8px;
    margin-top: 50px; /* Corrected to prevent overlap */
    padding-bottom: 40px;
}

.iso-zone {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: absolute;
    top: 0;
    bottom: 40px;
    box-sizing: border-box;
    padding: 0 10px;
}

.zone-A {
    background-color: #28a74530;
    border-color: #28a745 !important;
    left: 0;
}

.zone-B {
    background-color: #ffc10730;
    border-color: #ffc107 !important;
}

.zone-C {
    background-color: #fd7e1430;
    border-color: #fd7e14 !important;
}

.zone-D {
    background-color: #dc354530;
    border-color: #dc3545 !important;
    right: 0;
}

.zone-boundary-label {
    position: absolute;
    bottom: -20px;
    font-size: 0.9em;
    white-space: nowrap;
    transform: translateX(-50%);
    color: #555;
    font-weight: bold;
}



#user-value-line {
    position: absolute;
    height: calc(100% - -5px);
    top: -5px;
    width: 2px;
    background-color: #000;
    box-sizing: border-box;
    z-index: 10;
}

#user-value-label {
    position: absolute;
    top: -35px;
    left: 0px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: bold;
    color: #000;
    background: #fff;
    border-radius: 5px;
    padding: 3px 5px;
}

#result-text {
    margin-top: 40px;
    font-size: 1.1em;
    text-align: center;
}

#explanation {
    margin-top: 40px;
}

.zone-explanation {
    border-left: 5px solid;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #009cc1;
    margin-bottom: 20px;
}

.zone-A .zone-explanation {
    border-color: #28a745;
    border-color: #28a745;
}

.zone-B .zone-explanation {
    border-color: #ffc107;
}

.zone-C .zone-explanation {
    border-color: #fd7e14;
}

.zone-D .zone-explanation {
    border-color: #dc3545;
}
.border-box{
    border-radius: 20px !important;
    border: 1px solid #eaeaeb;
}
@media (max-width: 600px) {
    .container {
        margin: 20px 10px;
        padding: 20px;
    }

    button {
        width: 100%;
    }

    .iso-zone {
        font-size: 0.8em;
        padding: 0 5px;
    }
}


/*Vibratinon diagnostics*/
.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px solid transparent;
}
.severity-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.low {
    background-color: #4CAF50;
}

.medium {
    background-color: #FF9800;
}

.high {
    background-color: #F44336;
}

.critical {
    background-color: #9C27B0;
}
.severity-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-low {
    background-color: #E8F5E8;
    color: #2E7D32;
}

.severity-medium {
    background-color: #FFF3E0;
    color: #F57C00;
}

.severity-high {
    background-color: #FFEBEE;
    color: #C62828;
}

.severity-critical {
    background-color: #F3E5F5;
    color: #7B1FA2;
}
.failure-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}
.char-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.symptoms {
    background: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #FFC107;
}
.symptoms ul {
    list-style: none;
    padding: 0;
}

.symptoms li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: #666;
}

.symptoms li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #FF9800;
    font-weight: bold;
}


.freq-formula {
    background: rgba(42, 82, 152, 0.1);
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}