﻿html {
    font-size: 14px;
}

@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;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*#region Vertical Bars */
:root {
    --bar-width: 80px;
    --bar-wrapper-height: 300px;
    --radius: 10px;
    --transition-duration: 1.2s;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
    --bg: #f0f3f9;
}

.wrapper-bars {
    margin: 0;
    padding: 40px;
    /*background: var(--bg);*/
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-end;
}

.bars-row {
    display: flex;
    gap: 30px;
    align-items: stretch;
    flex-wrap: wrap;
}

.bar-card {
    width: var(--bar-width);
    display: flex;
    flex-direction: column;
}

.bar-card-inner {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    /*padding: 12px;*/
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 40px -12px rgba(0,0,0,0.08);
    width: 100%;
}

.bar-value-top {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.bar-legend {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    text-align: center;
}

.bar-wrapper {
    position: relative;
    width: 100%;
    height: var(--bar-wrapper-height);
    /*background: #e6ecf5;*/
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    margin: 4px 0;
}

.bar-fill {
    width: 100%;
    height: 0%;
    transition: height var(--transition-duration) ease-in-out;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: visible;
}

.bar-icon {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.unit-label {
    font-size: 11px;
    color: #555;
    margin-top: 4px;
}
.bar-icon svg path {
    fill: white;
}
    /*#endregion */