.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-description {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

.tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calculator-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #2563eb;
}

.input-with-unit select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    min-width: 80px;
}

.height-feet-inches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e1e5e9;
    color: #374151;
}

.btn-outline:hover {
    background: #f3f4f6;
}

.result-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.bmi-result {
    text-align: center;
    margin-bottom: 2rem;
}

.bmi-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.bmi-category {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
}

.bmi-visual {
    margin: 2rem 0;
}

.bmi-scale {
    position: relative;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(to right, #3b82f6, #10b981, #f59e0b, #ef4444);
    margin-bottom: 1rem;
}

.bmi-marker {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 60px;
    background: #1f2937;
    border-radius: 2px;
    transition: left 0.3s ease;
}

.bmi-ranges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.range {
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.range.underweight { background: #3b82f6; }
.range.normal { background: #10b981; }
.range.overweight { background: #f59e0b; }
.range.obese { background: #ef4444; }

.health-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.health-info h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.health-tips {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.history-section {
    grid-column: 1 / -1;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.history-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.history-item:last-child {
    border-bottom: none;
}

.no-history {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

.tool-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.info-section h4 {
    margin: 1.5rem 0 0.5rem 0;
    color: #374151;
}

.info-section ul {
    margin-left: 1.5rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .tool-content {
        grid-template-columns: 1fr;
    }
    
    .height-feet-inches {
        grid-template-columns: 1fr;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .history-controls {
        flex-direction: column;
    }
}
