* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}
body {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    background: #f0f2f5;
    line-height: 1.5;
    direction: rtl;
}
h1 {
    text-align: center;
    color: #1a73e8;
    margin: 10px 0;
}
.card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 10px 0;
    padding: 5px;
    justify-content: center;
}
.tab {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}
.tab.active {
    background: #1557b0;
}
input, select, .result {
    width: 100%;
    padding: 8px;
    margin: 5px 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}
.result {
    display: none;
    background: linear-gradient(45deg, #1a73e8, #1557b0);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.result.show {
    display: block;
    animation: fadeIn 0.3s ease;
}
.converter {
    display: none;
}
.converter.active {
    display: block;
}
.convert-btn, .copy-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    margin-top: 10px;
    transition: background 0.3s;
}
.convert-btn:hover, .copy-btn:hover {
    background: #45a049;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .tabs {
        flex-wrap: wrap;
    }
}
.bmi-scale {
    position: relative;
    height: 30px;
    margin-top: 15px;
    background: linear-gradient(to right, blue, green, orange, red);
    border-radius: 5px;
}
.scale {
    position: relative;
    height: 100%;
}
.marker {
    position: absolute;
    width: 12px;
    height: 30px;
    background: white;
    border: 2px solid black;
    border-radius: 5px;
    transition: left 0.3s;
    top: -5px;
}
.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8em;
    color: white;
    font-weight: bold;
} 
