/* Peptide Dosage Calculator - WordPress Plugin Styles */

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

.pdc-calculator-wrapper {
    --primary-color: #4099ff;
    --primary-hover: #17489c;
    --secondary-color: #f1f5f9;
    --accent-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #f8fafc;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.pdc-calculator-wrapper header {
    text-align: center;
    margin-bottom: 2rem;
}

.pdc-calculator-wrapper header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pdc-calculator-wrapper header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.pdc-calculator-card {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pdc-section {
    padding: 1.5rem;
}

.pdc-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.pdc-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.pdc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.5rem;
    margin: -1.5rem;
    margin-bottom: 0;
    transition: background-color 0.2s;
}

.pdc-section-header:hover {
    background-color: var(--secondary-color);
}

.pdc-section-header h2 {
    margin-bottom: 0;
}

.pdc-toggle-icon {
    color: var(--text-secondary);
    transition: transform 0.3s;
    font-size: 0.875rem;
}

.pdc-toggle-icon.rotated {
    transform: rotate(180deg);
}

.pdc-section-content {
    padding-top: 1.5rem;
}

.pdc-section-content.collapsed {
    display: none;
}

.pdc-input-group {
    margin-bottom: 1rem;
}

.pdc-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pdc-input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.pdc-input-with-unit input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pdc-input-with-unit input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 153, 255, 0.1);
}

.pdc-input-with-unit select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--secondary-color);
    cursor: pointer;
    min-width: 80px;
    transition: border-color 0.2s;
}

.pdc-input-with-unit select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.pdc-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
}

.pdc-checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.pdc-checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 0;
}

.pdc-body-weight-inputs {
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pdc-body-weight-inputs .pdc-input-group:last-child {
    margin-bottom: 0;
}

.pdc-result-group {
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pdc-result-group:last-child {
    margin-bottom: 0;
}

.pdc-result-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.pdc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pdc-result-group.highlight {
    background: linear-gradient(135deg, #4099ff 0%, #17489c 100%);
    color: white;
}

.pdc-result-group.highlight label {
    color: rgba(255, 255, 255, 0.8);
}

.pdc-result-group.highlight .pdc-result-value {
    color: white;
}

.pdc-result-group.highlight .pdc-result-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.pdc-info-card {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pdc-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pdc-info-card.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.pdc-info-card.warning h3 {
    color: #92400e;
}

.pdc-info-card.warning p {
    color: #78350f;
    font-size: 0.875rem;
}

.pdc-calculator-wrapper footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Number Line Visual Styles */
.pdc-number-line-visual {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.pdc-number-line-container {
    padding: 0;
}

.pdc-number-line-svg {
    width: 100%;
    height: auto;
    display: block;
}

.pdc-number-line-label {
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.pdc-number-line-label span {
    color: #3b82f6;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 640px) {
    .pdc-calculator-wrapper {
        padding: 1rem;
        margin: 1rem auto;
    }

    .pdc-calculator-wrapper header h1 {
        font-size: 1.5rem;
    }

    .pdc-section {
        padding: 1.25rem;
    }

    .pdc-section-header {
        padding: 1.25rem;
        margin: -1.25rem;
    }

    .pdc-result-value {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes pdcFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdc-calculator-card,
.pdc-info-card {
    animation: pdcFadeIn 0.3s ease-out;
}

/* Number input arrows */
.pdc-input-with-unit input[type="number"]::-webkit-inner-spin-button,
.pdc-input-with-unit input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}
