/* Health Parameters Dashboard Styles */
.health-dashboard {
    padding: 2rem 0;
}

.search-container {
    margin-bottom: 2rem;
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    background: var(--card-background);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.parameters-list {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    max-height: 600px;
    overflow-y: auto;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.parameters-list::-webkit-scrollbar {
    width: 6px;
}

.parameters-list::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 3px;
}

.parameters-list::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::before {
    content: "📊";
    font-size: 1.5rem;
    -webkit-text-fill-color: initial;
}

.parameters-summary {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.summary-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-text::before {
    content: "💡";
    font-size: 1rem;
}

.parameters-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parameter-item {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-left: 4px solid transparent;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.parameter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.3s ease;
}

.parameter-item:hover::before {
    left: 100%;
}

.parameter-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(8px) translateY(-1px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
}

.parameter-item.active {
    background: var(--primary-gradient);
    color: white;
    border-left-color: white;
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.parameter-item.active::before {
    display: none;
}

.parameter-details {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
    min-height: 500px;
}

.details-content {
    min-height: 400px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.empty-state-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 500px;
    width: 100%;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-item span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.parameter-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.info-card.average {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.info-card.median {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-color: rgba(79, 172, 254, 0.2);
}

.info-card.range {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
    border-color: rgba(250, 112, 154, 0.2);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.info-card p {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.parameter-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.parameter-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parameter-description h3::before {
    content: "📝";
    font-size: 1.25rem;
}

.parameter-description p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.disclaimer {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-top: 1.5rem;
    border: 1px solid rgba(250, 112, 154, 0.2);
    position: relative;
}

.disclaimer::before {
    content: "⚠️";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.disclaimer p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 500;
}

/* User value input styles */
.parameter-user-input {
    margin: 2rem 0 1.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(79, 172, 254, 0.1);
    position: relative;
    overflow: hidden;
}

.parameter-user-input::before {
    content: "🔍";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.parameter-user-input h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parameter-user-input h3::before {
    content: "💡";
    font-size: 1.25rem;
}

.gender-selection {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--border-color);
    background: var(--card-background);
}

.gender-option:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.gender-option input[type="radio"] {
    accent-color: var(--primary-color);
}

.gender-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.user-value-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    background: var(--card-background);
}

.user-value-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.unit-display {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    min-width: 80px;
    text-align: left;
    padding: 0.875rem 0;
}

#checkValueBtn {
    padding: 0.875rem 1.75rem;
    background: var(--success-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#checkValueBtn::before {
    content: "🔍";
    font-size: 1rem;
}

#checkValueBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.user-value-result {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 1rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    line-height: 1.6;
}

.user-value-result strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .parameters-list {
        margin-bottom: 1rem;
        position: static;
        max-height: 300px;
    }

    .parameter-info {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .empty-state-features {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .parameter-info {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .user-value-input {
        min-width: auto;
    }

    .gender-selection {
        flex-direction: column;
        align-items: stretch;
    }

    .gender-option {
        justify-content: center;
    }

    .empty-state-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animations for parameter items */
.parameter-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.parameter-item:nth-child(1) { animation-delay: 0.1s; }
.parameter-item:nth-child(2) { animation-delay: 0.2s; }
.parameter-item:nth-child(3) { animation-delay: 0.3s; }
.parameter-item:nth-child(4) { animation-delay: 0.4s; }
.parameter-item:nth-child(5) { animation-delay: 0.5s; }
.parameter-item:nth-child(6) { animation-delay: 0.6s; }
.parameter-item:nth-child(7) { animation-delay: 0.7s; }
.parameter-item:nth-child(8) { animation-delay: 0.8s; }
.parameter-item:nth-child(9) { animation-delay: 0.9s; }
.parameter-item:nth-child(10) { animation-delay: 1.0s; }

/* Loading animation for search */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
} 