/* Container */
#penis-diagram-container {
    background-color: #050b14;
    border: 1px solid #1e3a5f;
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    font-family: 'Titillium Web', sans-serif;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 10px;
}

/* Grid */
.digital-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(to right, #1e3a5f 1px, transparent 1px),
        linear-gradient(to bottom, #1e3a5f 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 1;
}

/* SVG Container */
#penis-svg {
    z-index: 2;
    width: 100%;
    height: 100%;
    /* Removed the global drop-shadow here so text stays crisp */
}

/* The Penis Shape Glow */
.glow-effect {
    filter: drop-shadow(0 0 5px #00e5ff);
}

/* Measurement Line */
.measure-line {
    stroke: #ffffff;
    stroke-width: 0.5; /* Thinner line */
    opacity: 0.8;
}

/* Text Styles */

/* Reference Markers (Background) */
.ref-line {
    stroke: #00e5ff;
    stroke-width: 0.5;
    opacity: 0.3; /* Visible but subtle */
    stroke-dasharray: 2, 2; /* Optional: dashed look for "technical" feel */
}

.ref-label {
    position: absolute;
    top: 10px; /* Distance from top */
    transform: translateX(-50%); /* Centers text on its own coordinate */
    color: #00e5ff;
    font-family: 'Titillium Web', sans-serif;
    font-size: 10px;
    opacity: 0.6;
    pointer-events: none; /* Let clicks pass through */
}

.measure-value-label {
    position: absolute;
    bottom: 4px; /* CHANGED: Was 15px. Lower value moves it down. */
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Titillium Web', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 0 #000;
    pointer-events: none;
}