/* Peptide Calculator Styles */
.peptide-calculator-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.peptide-calculator-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 12px 24px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.calculator-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Calculator Steps */
.calc-step {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.calc-step:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Tooltip Styles */
.tooltip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin-left: 8px;
}

.tooltip-icon svg {
    transition: transform 0.2s ease;
}

.tooltip-icon:hover svg {
    transform: scale(1.1);
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #2c3e50;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    width: 320px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 400;
    text-align: left;
}

.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 8px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.tooltip-icon:hover::after,
.tooltip-icon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-icon:hover::before {
    transform: translateX(-50%) translateY(1px);
}

/* Syringe Options */
.syringe-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.syringe-option {
    cursor: pointer;
}

.syringe-option input[type="radio"] {
    display: none;
}

.syringe-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.syringe-option input[type="radio"]:checked + .syringe-card {
    border-color: #4A90E2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(46, 92, 138, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.syringe-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.syringe-option:hover .syringe-image {
    transform: scale(1.05);
}

.syringe-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Button Groups */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #f5f5f5;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.option-btn:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

.option-btn.active {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
    color: white;
    border-color: #4A90E2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Custom Input */
.custom-input-wrapper {
    margin-top: 15px;
    position: relative;
    max-width: 300px;
}

.custom-input-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.custom-input-wrapper input:focus {
    border-color: #4A90E2;
}

.input-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
}

/* Calculate Button */
.calc-action {
    text-align: center;
    margin-top: 30px;
}

.calculate-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.calculate-button:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.calculate-button:hover .btn-icon {
    transform: translateX(5px);
}

/* Results Section */
.results-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Two Column Layout */
.results-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.results-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-right-column {
    display: flex;
    flex-direction: column;
}

.result-card {
    background: linear-gradient(135deg, #4A90E2 0%, #2E5C8A 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    text-align: center;
}

.result-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.result-icon svg {
    width: 100%;
    height: 100%;
}

.result-label {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 10px 0;
}

.result-dose {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.result-action {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 10px 0;
}

.result-amount {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.result-detail {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
}

/* Syringe Visualization */
.syringe-visualization {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.syringe-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    min-height: 300px;
}

.syringe-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.calibrated-syringe-img {
    max-width: 130px;
    width: 100%;
    height: auto;
    display: block;
}

.syringe-fill-overlay {
    position: absolute;
    width: 44%;
	bottom: 25.5%;
    left: 27%;
    right: 0;
    background: linear-gradient(to top, rgba(74, 144, 226, 0.6), rgba(46, 92, 138, 0.6));
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    mix-blend-mode: multiply;
    border-radius: 0 0 4px 4px;
    height: 0;
    max-height: 74.5%;
}

.syringe-note {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Recalculate Button */
.recalculate-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #4A90E2;
    background: white;
    border: 2px solid #4A90E2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recalculate-btn:hover {
    background: #4A90E2;
    color: white;
}

/* Disclaimer */
.calculator-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.calculator-disclaimer p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .peptide-calculator-container {
        padding: 25px;
    }
    
    .calculator-header h2 {
        font-size: 26px;
    }
    
    .step-header h3 {
        font-size: 18px;
    }
    
    /* Tooltip adjustments for mobile */
    .tooltip-icon::after {
        width: 280px;
        font-size: 13px;
        left: auto;
        right: 0;
        transform: translateX(0) translateY(-10px);
    }
    
    .tooltip-icon:hover::after {
        transform: translateX(0) translateY(-5px);
    }
    
    .tooltip-icon::before {
        left: auto;
        right: 10px;
        transform: translateX(0) translateY(6px);
    }
    
    .tooltip-icon:hover::before {
        transform: translateX(0) translateY(1px);
    }
    
    .syringe-options {
        grid-template-columns: 1fr;
    }
    
    .syringe-image {
        height: 100px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
    }
    
    .result-amount {
        font-size: 28px;
    }
    
    /* Stack columns on mobile */
    .results-two-column {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .calibrated-syringe-img {
        max-width: 100%;
		width: 130px;
    }
    
    .syringe-display {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .peptide-calculator-wrapper {
        padding: 0 10px;
    }
    
    .peptide-calculator-container {
        padding: 20px;
    }
    
    .calculator-header h2 {
        font-size: 22px;
    }
    
    .result-dose {
        font-size: 28px;
    }
    
    .result-amount {
        font-size: 24px;
    }
    
    .syringe-image {
        height: 80px;
    }
    
    .calibrated-syringe-img {
        max-width: 130px;
    }
}
