← Kapat
bmi-style.css
/* BMI Calculator Specific Styles */
.bmi-calculator-card {
position: relative;
padding: 1px;
border-radius: 0.75rem;
background-color: #18181b;
margin-bottom: 2rem;
}
.bmi-calculator-card::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: 0.75rem;
background: linear-gradient(135deg, #ff8c00, #f97316, #ea580c);
filter: blur(8px);
opacity: 0.3;
}
.bmi-card-wrapper {
position: relative;
padding: 1.5rem;
border-radius: 0.75rem;
border: 1px solid rgba(255, 140, 0, 0.2);
background: rgba(24, 24, 27, 0.9);
backdrop-filter: blur(4px);
}
.bmi-card-content {
padding: 1rem;
}
.gender-selection {
display: flex;
justify-content: center;
gap: 1rem;
margin-bottom: 2rem;
}
.input-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin-bottom: 3rem;
}
@media (min-width: 768px) {
.input-grid {
grid-template-columns: 1fr 1fr;
}
}
.input-section {
display: flex;
flex-direction: column;
}
.label-content {
display: flex;
align-items: center;
gap: 0.5rem;
}
.label-icon {
width: 1.25rem;
height: 1.25rem;
fill: none;
stroke: currentColor;
stroke-width: 2;
color: #ff8c00;
}
.gauge-container {
position: relative;
width: 100%;
max-width: 100%;
margin: 0 auto;
background: rgba(39, 39, 42, 0.3);
border-radius: 0.75rem;
padding: 0.5rem;
border: 1px solid rgba(255, 140, 0, 0.1);
overflow: hidden;
}
@media (min-width: 480px) {
.gauge-container {
padding: 1rem;
max-width: 32rem;
}
}
@media (min-width: 640px) {
.gauge-container {
padding: 1.5rem;
}
}
.gauge-wrapper {
position: relative;
}
.gauge-wrapper canvas {
display: block;
margin: 0 auto;
max-width: 100%;
height: auto;
}
@media (max-width: 480px) {
.gauge-wrapper canvas {
width: 100% !important;
max-width: 380px;
height: auto !important;
transform: translateY(-10px);
}
}
.gauge-labels {
display: flex;
justify-content: space-between;
padding: 0 1rem;
}
@media (min-width: 480px) {
.gauge-labels {
padding: 0 2rem;
}
}
@media (min-width: 640px) {
.gauge-labels {
padding: 0 3rem;
}
}
.gauge-label {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.25rem;
opacity: 0.6;
transform: scale(1);
transition: all 0.3s ease;
}
.gauge-label.active {
opacity: 1;
transform: scale(1.1);
}
.gauge-dot {
width: 0.75rem;
height: 0.75rem;
border-radius: 50%;
background-color: #3b82f6;
box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
border: 2px solid rgba(59, 130, 246, 0.2);
}
.gauge-label[data-category="normal"] .gauge-dot {
background-color: #22c55e;
box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
border: 2px solid rgba(34, 197, 94, 0.2);
}
.gauge-label[data-category="overweight"] .gauge-dot {
background-color: #eab308;
box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
border: 2px solid rgba(234, 179, 8, 0.2);
}
.gauge-label[data-category="obese"] .gauge-dot {
background-color: #ef4444;
box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
border: 2px solid rgba(239, 68, 68, 0.2);
}
.gauge-label span {
font-size: 0.625rem;
font-weight: 500;
color: #d1d5db;
text-align: center;
}
@media (min-width: 480px) {
.gauge-label span {
font-size: 0.75rem;
}
}
.stats-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (min-width: 640px) {
.stats-grid {
grid-template-columns: 1fr 1fr;
}
}
.bmi-stat-card {
background-color: rgba(39, 39, 42, 0.5);
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid #3f3f46;
min-width: 0;
overflow: hidden;
}
@media (min-width: 640px) {
.bmi-stat-card {
padding: 1.5rem;
}
}
.stat-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 1rem;
color: #ffffff;
}
.stat-icon {
width: 1.25rem;
height: 1.25rem;
fill: none;
stroke: currentColor;
stroke-width: 2;
color: #ff8c00;
}
.stat-value {
font-size: 1.5rem;
font-weight: 700;
color: #ff8c00;
margin-bottom: 0.5rem;
word-wrap: break-word;
}
@media (min-width: 640px) {
.stat-value {
font-size: 1.875rem;
}
}
.stat-unit {
font-size: 1rem;
color: #9ca3af;
}
.stat-description {
font-size: 0.875rem;
color: #9ca3af;
}
.health-score {
display: flex;
flex-direction: column;
gap: 1rem;
}
.progress-bar {
height: 1.25rem;
background-color: rgba(63, 63, 70, 0.8);
border-radius: 9999px;
overflow: hidden;
position: relative;
border: 1px solid rgba(255, 140, 0, 0.1);
}
@media (min-width: 640px) {
.progress-bar {
height: 1.5rem;
}
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #ff8c00, #ffa500);
transition: width 0.3s ease;
box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}
.progress-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 0.875rem;
font-weight: 600;
color: #ffffff;
white-space: nowrap;
z-index: 10;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.health-status {
font-size: 0.875rem;
color: #9ca3af;
}
.info-cards {
margin-top: 2rem;
width: 100%;
box-sizing: border-box;
}
.info-card {
background-color: rgba(39, 39, 42, 0.5);
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid #3f3f46;
min-width: 0;
overflow: hidden;
}
@media (min-width: 640px) {
.info-card {
padding: 1.5rem;
}
}
.info-icon {
width: 1.25rem;
height: 1.25rem;
fill: none;
stroke: currentColor;
stroke-width: 2;
color: #ff8c00;
}
.info-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.info-item {
display: flex;
align-items: flex-start;
gap: 0.5rem;
}
.info-dot {
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
background-color: #ff8c00;
margin-top: 0.5rem;
flex-shrink: 0;
}
.info-item p {
font-size: 0.875rem;
color: #d1d5db;
}
.target-section {
display: flex;
flex-direction: column;
gap: 1rem;
}
.target-input {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.target-label {
font-size: 0.875rem;
color: #9ca3af;
}
.target-slider-group {
display: flex;
align-items: center;
gap: 0.5rem;
min-width: 0;
}
@media (min-width: 480px) {
.target-slider-group {
gap: 1rem;
}
}
.target-slider {
flex: 1;
height: 8px;
border-radius: 4px;
background: linear-gradient(to right, #ff8c00 53.8%, #3f3f46 53.8%);
outline: none;
-webkit-appearance: none;
appearance: none;
}
.target-slider::-webkit-slider-thumb {
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: #ff8c00;
border: 2px solid #ffffff;
cursor: pointer;
}
.target-slider::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: #ff8c00;
border: 2px solid #ffffff;
cursor: pointer;
}
.target-value {
color: #ff8c00;
font-weight: 700;
font-size: 0.875rem;
flex-shrink: 0;
min-width: 2.5rem;
text-align: center;
}
@media (min-width: 480px) {
.target-value {
font-size: 1rem;
min-width: 3rem;
}
}
.target-results {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
@media (min-width: 480px) {
.target-results {
gap: 1rem;
}
}
.target-result {
background-color: rgba(63, 63, 70, 0.5);
padding: 0.5rem;
border-radius: 0.5rem;
min-width: 0;
overflow: hidden;
}
@media (min-width: 480px) {
.target-result {
padding: 0.75rem;
}
}
.target-result-label {
font-size: 0.875rem;
color: #9ca3af;
}
.target-result-value {
font-size: 1rem;
font-weight: 700;
color: #ff8c00;
word-break: break-word;
}
@media (min-width: 480px) {
.target-result-value {
font-size: 1.125rem;
}
}
.target-result-value.success {
color: #22c55e;
}
.target-timeline {
font-size: 0.875rem;
color: #9ca3af;
}
.target-time {
color: #ff8c00;
font-weight: 700;
}
.target-note {
font-size: 0.75rem;
}
.bmi-categories {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 2rem;
}
.bmi-category {
padding: 1rem;
border-radius: 0.5rem;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
background-color: rgba(59, 130, 246, 0.063);
border-color: rgba(59, 130, 246, 0.2);
width: 20%;
}
.bmi-category:hover {
scale: 1.05;
}
.bmi-category.active {
border-color: #22c55e;
background-color: rgba(34, 197, 94, 0.063);
box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.1);
}
.bmi-category[data-category="underweight"] {
border-color: rgba(59, 130, 246, 0.2);
background-color: rgba(59, 130, 246, 0.063);
}
.bmi-category[data-category="normal"] {
border-color: rgba(34, 197, 94, 0.2);
background-color: rgba(34, 197, 94, 0.063);
}
.bmi-category[data-category="overweight"] {
border-color: rgba(234, 179, 8, 0.2);
background-color: rgba(234, 179, 8, 0.063);
}
.bmi-category[data-category="obese"] {
border-color: rgba(249, 115, 22, 0.2);
background-color: rgba(249, 115, 22, 0.063);
}
.category-title {
font-weight: 600;
margin-bottom: 0.5rem;
color: #3b82f6;
}
.bmi-category[data-category="normal"] .category-title {
color: #22c55e;
}
.bmi-category[data-category="overweight"] .category-title {
color: #eab308;
}
.bmi-category[data-category="obese"] .category-title {
color: #f97316;
}
.category-range {
font-size: 0.875rem;
color: #d1d5db;
}
@media (max-width: 768px) {
.bmi-category {
width: 45%;
}
}