/* Modern CSS with White and Purple Theme */

:root {
    --primary-purple: #8b5cf6;
    --primary-purple-dark: #7c3aed;
    --primary-purple-light: #c4b5fd;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    
    /* Category Colors */
    --underweight: #3498db;
    --normal: #2ecc71;
    --overweight: #f39c12;
    --obese: #e74c3c;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Container */
.wco-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

/* Main Card */
.wco-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.wco-title {
    text-align: center;
    color: var(--primary-purple-dark);
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.wco-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-purple-dark));
    border-radius: 2px;
}

/* Form Styles */
.wco-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wco-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wco-input-group label {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wco-input-group input[type="text"],
.wco-input-group input[type="number"] {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.wco-input-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: var(--white);
}

/* Gender Options */
.wco-gender-options {
    display: flex;
    gap: 20px;
    padding: 8px 0;
}

.wco-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
}

.wco-radio-label input[type="radio"] {
    accent-color: var(--primary-purple);
    width: 18px;
    height: 18px;
}

/* Toggle Buttons */
.wco-toggle-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.wco-toggle-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 10px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wco-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: var(--white);
    border-color: transparent;
}

.wco-toggle-btn:hover {
    border-color: var(--primary-purple);
}

/* Feet/Inches Group */
.wco-feet-group {
    display: flex;
    gap: 10px;
}

.wco-feet-group input {
    flex: 1;
}

/* Submit Button */
.wco-submit-btn {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.wco-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.wco-submit-btn:active {
    transform: translateY(0);
}

.wco-submit-btn span {
    position: relative;
    z-index: 1;
}

.wco-submit-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wco-submit-btn:hover:before {
    width: 300px;
    height: 300px;
}

/* Results Section */
.wco-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px dashed var(--gray-200);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wco-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.wco-greeting {
    color: var(--primary-purple-dark);
    font-size: 1.4em;
    font-weight: 600;
}

/* BMI Display */
.wco-bmi-display {
    text-align: center;
    margin-bottom: 30px;
}

.wco-bmi-value {
    display: inline-block;
    position: relative;
}

.wco-bmi-number {
    font-size: 4em;
    font-weight: 800;
    color: var(--primary-purple-dark);
    line-height: 1;
}

.wco-bmi-label {
    position: absolute;
    bottom: 10px;
    right: -30px;
    font-size: 1em;
    color: var(--gray-600);
    font-weight: 500;
}

.wco-bmi-category {
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 10px;
}

/* Progress Bar */
.wco-progress-container {
    margin: 30px 0;
}

.wco-progress-bar {
    height: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.wco-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.wco-progress-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--gray-600);
    position: relative;
}

.marker {
    position: relative;
}

.marker:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: var(--gray-400);
}

/* Ideal Weight */
.wco-ideal-weight {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 16px;
}

.wco-ideal-weight h4 {
    color: var(--gray-800);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.wco-range {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-purple-dark);
}

/* Health Message */
.wco-health-message {
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 16px;
    margin: 25px 0;
    text-align: center;
    font-size: 1.1em;
    color: var(--gray-800);
    border-left: 4px solid var(--primary-purple);
}

/* Health Tips */
.wco-health-tips h4 {
    color: var(--gray-800);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.wco-tips-list {
    list-style: none;
    padding: 0;
}

.wco-tips-list li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-600);
    position: relative;
    padding-left: 40px;
    transition: all 0.3s ease;
}

.wco-tips-list li:hover {
    transform: translateX(5px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-md);
}

.wco-tips-list li:before {
    content: '✓';
    position: absolute;
    left: 15px;
    color: var(--primary-purple);
    font-weight: 700;
}

/* Share Buttons */
.wco-share-buttons {
    margin: 30px 0;
    text-align: center;
}

.wco-share-buttons h4 {
    color: var(--gray-800);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.wco-share-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.copy-link {
    background: var(--gray-600);
}

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

/* Print Button */
.wco-print-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--white);
    border: 2px solid var(--primary-purple);
    border-radius: 50px;
    color: var(--primary-purple);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.wco-print-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wco-print-btn:hover {
    background: var(--primary-purple);
    color: var(--white);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wco-card {
        background: var(--gray-800);
        color: var(--white);
    }
    
    .wco-title {
        color: var(--primary-purple-light);
    }
    
    .wco-input-group label {
        color: var(--gray-200);
    }
    
    .wco-input-group input {
        background: var(--gray-600);
        border-color: var(--gray-600);
        color: var(--white);
    }
    
    .wco-ideal-weight {
        background: var(--gray-700);
    }
    
    .wco-health-message {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
        color: var(--white);
    }
    
    .wco-tips-list li {
        background: var(--gray-700);
        border-color: var(--gray-600);
        color: var(--gray-200);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wco-container {
        margin: 20px;
        padding: 10px;
    }
    
    .wco-card {
        padding: 25px;
    }
    
    .wco-title {
        font-size: 1.8em;
    }
    
    .wco-bmi-number {
        font-size: 3em;
    }
    
    .wco-share-icons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wco-gender-options {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .wco-card {
        padding: 20px;
    }
    
    .wco-title {
        font-size: 1.5em;
    }
    
    .wco-feet-group {
        flex-direction: column;
    }
}