/* Google Font */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    font-weight: 600;
}

/* BMI Calculator Form */
#bmi-form .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#bmi-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* BMI Result */
#result {
    animation: fadeIn 0.5s ease;
}

.bmi-value-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* BMI Chart */
.bmi-chart {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.progress {
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

/* Tips Section */
.tips-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.tip-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.tip-card i {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #212529;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #0dcaf0 !important;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #0d6efd;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate__animated {
    animation-duration: 1s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bmi-value-circle {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

/* Ad Container */
.ad-container {
    margin: 20px 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: white;
        color: black;
    }
    
    #result {
        display: block !important;
    }
}