/* ==========================================================================
   PEPTIDE CALCULATOR - COMPLETE CSS FILE
   Professional, clean code with working syringe visual
   ========================================================================== */

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.calculator-hero, .guide-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.calculator-hero::before, .guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.calculator-hero h2, .guide-hero h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.calculator-hero p, .guide-hero p {
    margin: 0 0 20px 0;
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */

.calculator-main-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* ==========================================================================
   INPUT SECTIONS
   ========================================================================== */

.input-section-box, .calculator-inputs-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
}

.section-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.section-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-badge {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   INPUT GROUPS
   ========================================================================== */

.input-group-enhanced {
    margin-bottom: 25px;
}

.input-group-enhanced label {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-with-unit:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.calc-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.calc-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.unit-label {
    background: #4a90e2;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
}

.calc-select, .unit-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.calc-select:focus, .unit-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

.dose-input-enhanced {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dose-input-enhanced:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.dose-input-enhanced input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.dose-input-enhanced select {
    background: #4a90e2;
    border: none;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 600;
    outline: none;
}

/* ==========================================================================
   QUICK SELECT BUTTONS
   ========================================================================== */

.quick-select-enhanced, .dose-examples-enhanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-label, .example-label {
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-buttons, .example-doses {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-btn-enhanced, .example-dose-btn {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid #4a90e2;
    color: #4a90e2;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-btn-enhanced:hover, .example-dose-btn:hover {
    background: #4a90e2;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* ==========================================================================
   RESULTS SECTION
   ========================================================================== */

.calculator-results-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #17a2b8;
}

.results-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* ==========================================================================
   RESULT CARDS
   ========================================================================== */

.result-card-enhanced {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4a90e2;
    transition: all 0.3s ease;
}

.result-card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.result-card-enhanced.primary {
    background: rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
}

.result-card-enhanced.primary::before {
    background: #4a90e2;
    width: 6px;
}

.result-card-enhanced.concentration-card::before {
    background: #28a745;
}

.result-card-enhanced.volume-card::before {
    background: #17a2b8;
}

.result-card-enhanced.doses-card::before {
    background: #ffc107;
}

.result-card-enhanced.dose-card::before {
    background: #4a90e2;
}

.result-icon {
    font-size: 24px;
    opacity: 0.8;
}

.result-content {
    flex: 1;
}

.result-label {
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.result-value {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.result-value.large {
    font-size: 24px;
    color: #4a90e2;
}

.result-subtext {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   VISUAL SYRINGE GUIDE - WORKING VERSION
   ========================================================================== */

.syringe-visual-enhanced {
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    margin-top: 20px;
}

.syringe-visual-enhanced h4 {
    color: #4a90e2;
    text-align: center;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
}

.syringe-container-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.syringe-display {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    position: relative;
    width: 100%;
}

/* Syringe barrel - realistic medical appearance */
.syringe-barrel {
    position: relative;
    width: 320px;
    height: 70px;
    background: linear-gradient(to bottom, 
        #ffffff 0%, 
        #f8f9fa 10%, 
        #e9ecef 30%, 
        #dee2e6 50%, 
        #ced4da 70%, 
        #adb5bd 90%,
        #95a0a8 100%);
    border: 3px solid #495057;
    border-radius: 12px;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Syringe tip/luer connector */
.syringe-barrel::before {
    content: '';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 32px;
    background: linear-gradient(to right, #adb5bd, #868e96, #6c757d);
    border: 3px solid #495057;
    border-radius: 0 8px 8px 0;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Volume markings container */
.syringe-scale {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* Minor unit markings - every 5 units */
.scale-marks {
    position: absolute;
    left: 20px;
    top: 12px;
    width: calc(100% - 40px);
    height: calc(100% - 24px);
    background-image: repeating-linear-gradient(
        to right,
        transparent 0px,
        transparent 13px,
        #343a40 13px,
        #343a40 15px,
        transparent 15px,
        transparent 26px
    );
}

/* Major unit markings - every 10 units */
.scale-marks::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 100%;
    height: calc(100% + 6px);
    background-image: repeating-linear-gradient(
        to right,
        transparent 0px,
        transparent 26px,
        #212529 26px,
        #212529 30px,
        transparent 30px,
        transparent 52px
    );
}

/* Scale numbers - positioned above the barrel */
.scale-marks::after {
    content: '0    10    20    30    40    50    60    70    80    90   100';
    position: absolute;
    top: -30px;
    left: -2px;
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 800;
    color: #212529;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* WORKING SYRINGE PLUNGER - horizontal fill indicator */
.syringe-plunger {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 0%;
    height: calc(100% - 16px);
    background: linear-gradient(to right, 
        #4a90e2 0%, 
        #5ba0e8 30%, 
        #6bb0ee 70%, 
        #7bc0f4 100%);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
    box-shadow: 
        0 0 12px rgba(74, 144, 226, 0.8),
        inset 0 3px 6px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(74, 144, 226, 1);
    opacity: 1;
    display: block;
    visibility: visible;
}

/* Plunger handle */
.syringe-plunger::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 32px;
    background: linear-gradient(to right, #495057, #343a40, #212529);
    border: 3px solid #000000;
    border-radius: 4px;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    z-index: 6;
}

/* Plunger rubber tip */
.syringe-plunger::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 90%;
    background: #343a40;
    border-radius: 0 3px 3px 0;
    border: 1px solid #212529;
    z-index: 6;
}

/* Syringe needle - realistic medical needle */
.syringe-needle {
    width: 140px;
    height: 4px;
    background: linear-gradient(to right, #868e96, #6c757d, #495057, #343a40);
    border: 1px solid #212529;
    border-radius: 0 2px 2px 0;
    margin-left: 6px;
    position: relative;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

/* Needle bevel/tip */
.syringe-needle::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #343a40;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* Needle hub connection */
.syringe-needle::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(to right, #6c757d, #495057);
    border-radius: 3px;
    border: 2px solid #343a40;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced instructions styling */
.syringe-instructions-enhanced {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(74, 144, 226, 0.06));
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    padding: 18px 24px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Color states for different dose levels */
.syringe-plunger.normal {
    background: linear-gradient(to right, 
        #4a90e2 0%, 
        #5ba0e8 30%, 
        #6bb0ee 70%, 
        #7bc0f4 100%);
    border-color: rgba(74, 144, 226, 1);
    box-shadow: 
        0 0 12px rgba(74, 144, 226, 0.8),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

.syringe-plunger.warning {
    background: linear-gradient(to right, 
        #ffc107 0%, 
        #ffcd38 30%, 
        #ffd96b 70%, 
        #ffe69c 100%);
    border-color: rgba(255, 193, 7, 1);
    box-shadow: 
        0 0 12px rgba(255, 193, 7, 0.8),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

.syringe-plunger.error {
    background: linear-gradient(to right, 
        #dc3545 0%, 
        #e85a6b 30%, 
        #f07a8a 70%, 
        #f89aa8 100%);
    border-color: rgba(220, 53, 69, 1);
    box-shadow: 
        0 0 12px rgba(220, 53, 69, 0.8),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   DISCLAIMER SECTION
   ========================================================================== */

.calculator-disclaimer-enhanced {
    margin-top: 40px;
}

.disclaimer-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-radius: 12px;
    padding: 25px;
    border-left: 6px solid #ffc107;
    border-right: 1px solid rgba(255, 193, 7, 0.3);
    border-top: 1px solid rgba(255, 193, 7, 0.3);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.disclaimer-header .disclaimer-icon {
    font-size: 24px;
    color: #ffc107;
}

.disclaimer-header h3 {
    color: #ffc107;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disclaimer-box p {
    color: #e0e0e0;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.disclaimer-box strong {
    color: #ffffff;
    background: rgba(255, 193, 7, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* ==========================================================================
   GUIDE CONTENT BOXES
   ========================================================================== */

.guide-content-box, .administration-content-enhanced {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.overview-box, .injection-process-box, .injection-sites-box, .safety-rotation-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.overview-box h3, .injection-process-box h3, .injection-sites-box h3 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

.overview-box p {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   GUIDE STEPS
   ========================================================================== */

.guide-steps-enhanced, .process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-step-enhanced, .process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid #4a90e2;
    transition: all 0.3s ease;
    position: relative;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-tabs {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.nav-tab:hover {
    background: rgba(74, 144, 226, 0.2);
    color: #ffffff;
    border-color: #4a90e2;
}

.nav-tab.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #ffffff;
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* ==========================================================================
   INPUT STATES
   ========================================================================== */

.input-with-unit.focused, .dose-input-enhanced.focused {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.input-with-unit.error, .dose-input-enhanced.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.input-with-unit.warning, .dose-input-enhanced.warning {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.result-value.error-state {
    color: #dc3545;
    animation: pulse-error 1s ease-in-out;
}

@keyframes pulse-error {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .calculator-main-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .syringe-barrel {
        width: 280px;
        height: 60px;
    }
    
    .syringe-needle {
        width: 100px;
        height: 3px;
    }
    
    .scale-marks::after {
        font-size: 11px;
        top: -25px;
        content: '0   10   20   30   40   50   60   70   80   90  100';
    }
    
    .syringe-display {
        height: 120px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-buttons, .example-doses {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .syringe-barrel {
        width: 240px;
        height: 50px;
    }
    
    .syringe-needle {
        width: 80px;
        height: 3px;
    }
    
    .syringe-display {
        height: 100px;
    }
    
    .scale-marks::after {
        font-size: 10px;
        top: -22px;
        content: '0  10  20  30  40  50  60  70  80  90 100';
        letter-spacing: 0.2px;
    }
    
    .calc-input, .calc-select, .unit-select {
        font-size: 16px;
        padding: 12px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .result-value {
        font-size: 16px;
    }
    
    .result-value.large {
        font-size: 20px;
    }
    
    .syringe-instructions-enhanced {
        font-size: 12px;
        padding: 12px 16px;
    }
}