/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #64b5f6;
    --accent-color: #2979ff;
    --text-color: #333;
    --text-light: #666;
    --background-color: #f8f9fa;
    --background-light: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --info-color: #03a9f4;
    --warning-color: #ff9800;
    --error-color: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.logo a {
    color: white;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: var(--primary-dark);
}

nav ul li.active a {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.lang-selector select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 10px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.lang-selector select option {
    background-color: var(--primary-color);
    color: white;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 40px 0;
}

.calculator-section {
    margin-bottom: 40px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

#page-description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 18px;
}

.calculator-container {
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

/* ===== CALCULATOR GRID ===== */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.column {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
}

input, select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

input[type="number"] {
    width: 120px;
    margin: 0 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-option:hover {
    background-color: #f0f7ff;
}

.radio-option img {
    height: 60px;
    margin-left: 10px;
    transition: transform 0.2s;
}

.radio-option:hover img {
    transform: scale(1.05);
}

.option-container {
    margin-bottom: 25px;
    padding: 5px;
    border-radius: 6px;
}

.vial-img, .syringe-img {
    max-width: 100px;
    display: block;
    margin: 15px auto;
    transition: transform 0.3s;
}

.vial-img:hover, .syringe-img:hover {
    transform: scale(1.1);
}

.button-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

button {
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#calculate-btn {
    background-color: var(--primary-color);
    color: white;
    flex: 1;
}

#calculate-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#reset-btn {
    background-color: #f0f0f0;
    color: var(--text-color);
}

#reset-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== RESULT STYLES ===== */
.result-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
}

.result-content {
    font-size: 14px;
}

.result-highlight {
    font-size: 14px;
    padding: 8px;
}

.result-container.hidden {
    display: none;
}

.result-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.result-content span {
    font-weight: 700;
    color: var(--primary-color);
}

.syringe-indicator {
    width: 100%;
    height: 50px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    margin: 25px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.syringe-fill {
    height: 100%;
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    width: 0;
    transition: width 0.5s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.syringe-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.syringe-markers span {
    font-size: 12px;
    position: relative;
    top: 50px;
    color: #666;
    font-weight: 500;
}

/* ===== INFO SECTION ===== */
.info-section {
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.info-container h4 {
    color: var(--primary-dark);
    margin: 25px 0 15px;
    font-size: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.formula {
    background-color: #f5f5f5;
    padding: 18px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.8;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.definitions dt {
    font-weight: 700;
    margin-top: 15px;
    color: var(--text-color);
}

.definitions dd {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    padding: 5px 0;
}

.tips-list {
    list-style-position: inside;
    margin-left: 20px;
}

.tips-list li {
    margin-bottom: 12px;
    color: var(--text-light);
    padding: 5px 0;
}

/* ===== TABLE STYLES ===== */
.mw-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.mw-table th, .mw-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.mw-table th {
    background-color: #f0f7ff;
    font-weight: 600;
    color: var(--primary-dark);
}

.mw-table tr:nth-child(even) {
    background-color: #fafafa;
}

.mw-table tr:hover {
    background-color: #f0f7ff;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

footer p {
    margin-bottom: 10px;
    text-align: center;
}

#disclaimer {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .calculator-container, .info-section {
        padding: 20px 15px;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    #page-description {
        font-size: 16px;
    }
    
    .radio-option {
        flex-wrap: wrap;
    }
    
    .radio-option img {
        margin-top: 10px;
        margin-left: 26px;
    }
    
    input[type="number"], select {
        width: 100%;
        margin: 8px 0;
    }
    
    #custom-dose, #custom-peptide, #custom-water {
        width: 100%;
    }
    
    .result-highlight {
        font-size: 18px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .calculator-container, .info-section {
        padding: 15px 10px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .result-content {
        font-size: 16px;
    }
    
    .result-highlight {
        font-size: 16px;
        padding: 10px;
    }
    
    .syringe-indicators {
        height: 40px;
    }
    
    .syringe-markers span {
        font-size: 10px;
    }
    
    button {
        padding: 12px 20px;
    }
}