/**
 * Vet Fluid Calculator - Professional Medical Dashboard Styles
 * All classes prefixed with 'vetdir-' to avoid conflicts
 */

/* CSS Reset for calculator scope */
.vetdir-calculator-wrapper,
.vetdir-calculator-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main wrapper */
.vetdir-calculator-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Calculator container */
.vetdir-calculator {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(145deg, #1a2332 0%, #0d1520 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Header section */
.vetdir-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vetdir-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.vetdir-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.vetdir-subtitle {
    color: #8b9cb8;
    font-size: 14px;
    font-weight: 400;
}

/* Form styles */
.vetdir-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vetdir-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vetdir-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c9d4e8;
    font-size: 14px;
    font-weight: 600;
}

.vetdir-label-icon {
    font-size: 16px;
}

/* Input and Select styles */
.vetdir-input,
.vetdir-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.vetdir-input:focus,
.vetdir-select:focus {
    outline: none;
    border-color: #4f8cff;
    background: rgba(79, 140, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.15);
}

.vetdir-input::placeholder {
    color: #5a6a80;
}

.vetdir-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9cb8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.vetdir-select option {
    background: #1a2332;
    color: #ffffff;
    padding: 12px;
}

/* Radio group styles */
.vetdir-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.vetdir-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.vetdir-radio-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.vetdir-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vetdir-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #5a6a80;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vetdir-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: #4f8cff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vetdir-radio:checked+.vetdir-radio-custom {
    border-color: #4f8cff;
}

.vetdir-radio:checked+.vetdir-radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.vetdir-radio:checked~.vetdir-radio-text {
    color: #ffffff;
}

.vetdir-radio-text {
    color: #8b9cb8;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Button styles */
.vetdir-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4f8cff 0%, #3366cc 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 140, 255, 0.3);
    margin-top: 8px;
}

.vetdir-button:hover {
    background: linear-gradient(135deg, #5a9aff 0%, #4477dd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.4);
}

.vetdir-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(79, 140, 255, 0.3);
}

.vetdir-button-icon {
    font-size: 18px;
}

/* Results section */
.vetdir-results {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: vetdir-fadeIn 0.5s ease;
}

@keyframes vetdir-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vetdir-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.vetdir-results-icon {
    font-size: 20px;
}

.vetdir-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.vetdir-result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.vetdir-result-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.vetdir-result-primary {
    background: linear-gradient(145deg, rgba(79, 140, 255, 0.2) 0%, rgba(79, 140, 255, 0.1) 100%);
    border-color: rgba(79, 140, 255, 0.3);
}

.vetdir-result-value {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.vetdir-result-primary .vetdir-result-value {
    color: #4f8cff;
}

.vetdir-result-label {
    color: #8b9cb8;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vetdir-result-unit {
    color: #5a6a80;
    font-size: 11px;
    margin-top: 4px;
}

/* Results details */
.vetdir-results-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px 20px;
}

.vetdir-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vetdir-detail-row:last-child {
    border-bottom: none;
}

.vetdir-detail-label {
    color: #8b9cb8;
    font-size: 13px;
}

.vetdir-detail-value {
    color: #c9d4e8;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 480px) {
    .vetdir-calculator {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .vetdir-title {
        font-size: 20px;
    }

    .vetdir-results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vetdir-result-card {
        padding: 16px;
    }

    .vetdir-result-value {
        font-size: 24px;
    }

    .vetdir-radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .vetdir-radio-label {
        min-width: auto;
    }
}

/* Remove number input spinners */
.vetdir-input[type="number"]::-webkit-outer-spin-button,
.vetdir-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vetdir-input[type="number"] {
    -moz-appearance: textfield;
}