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 signature */

.signature-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

    .signature-wrapper canvas {
        width: 100%; /* visually scale */
        height: auto; /* maintain aspect ratio */
        touch-action: none; /* allows smooth drawing on mobile */
        display: block;
        border: 1px solid #ccc;
    }

/*#endregion */

/*#region Graph */

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #f8f8f8;
}

.graph-section {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h3 {
    margin-bottom: 15px;
}

/*#region Horizontal Bar */

/*.bar-container {
    width: 100%;
    background: #eee;
    height: 30px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-container label {
        position: absolute;
        top: -22px;
        font-size: 14px;
        font-weight: bold;
    }

.bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
}*/


/*#endregion */

/*#region Vertical Bras with icon */
:root {
    --bar-width: 100px;
    --bar-height: 300px;
    --radius: 8px;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

.wrapper-bars {
    background: #f0f2f7;
    padding: 40px;
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-end;
}

.bar-card {
    width: var(--bar-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bar-legend {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.bar-legend .swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.bar-wrapper {
    position: relative;
    width: 100%;
    height: var(--bar-height);
    background: #e3e8ef;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse; /* fill from bottom */
}

.bar-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #4facfe, #00f2fe);
    transition: height 1s ease-in-out;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* icon sticks near top of fill */
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: visible;
}

.bar-icon {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.bar-value {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.85);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.small-label {
    margin-top: 6px;
    font-size: 12px;
    color: #555;
}

/* Optional: shadow card around each bar */
.bar-card-inner {
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*#endregion */


.circle-wrapper {
    display: inline-block;
    text-align: center;
    margin-right: 30px;
}

.circle {
    transform: rotate(-90deg);
    display: block;
}

circle {
    fill: none;
    stroke-width: 10;
}

.bg {
    stroke: #ddd;
}

.progress {
    stroke-dasharray: 314; 
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s ease-in-out;
}

.circle-wrapper label {
    display: block;
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
}


/*#endregion */