
        :root {
            --primary-color: #10b981;
            --secondary-color: #3b82f6;
            --primary-light: #d1fae5;
            --secondary-light: #dbeafe;
            --dark-text: #1f2937;
            --light-text: #f9fafb;
        }
        
        body {
            background-color: #f8fafc;
            color: var(--dark-text);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 0;
            margin: 0;
            position: relative;
            overflow-x: hidden;
        }
        
        .bg-pattern {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.03;
            z-index: -1;
            pointer-events: none;
        }
        
        .card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .card:hover {
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
            transform: translateY(-5px);
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .btn-primary:hover {
            background-color: #0ea572;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
        }
        
        .btn-secondary {
            background-color: var(--secondary-color);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .btn-secondary:hover {
            background-color: #2563eb;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
        }
        
        .input-field {
            padding: 12px 16px;
            border-radius: 8px;
            border: 2px solid #e5e7eb;
            font-size: 16px;
            transition: all 0.2s ease;
            width: 100%;
        }
        
        .input-field:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
        }
        
        .input-label {
            font-weight: 600;
            color: #4b5563;
            margin-bottom: 8px;
            display: block;
        }
        
        .result-card {
            border-left: 5px solid var(--primary-color);
            background-color: var(--primary-light);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 16px;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }
        
        .chart-container {
            width: 100%;
            height: 300px;
            margin: 30px 0;
            opacity: 0;
            transform: scale(0.95);
            transition: all 0.5s ease;
        }
        
        .macros-chart {
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
        }
        
        .info-box {
            background-color: var(--secondary-light);
            border-left: 5px solid var(--secondary-color);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        
        .header-animation {
            opacity: 0;
            transform: translateY(-20px);
        }
        
        .animated-icon {
            position: absolute;
            opacity: 0;
            transition: all 0.5s ease;
        }
        
        .card-animated {
            opacity: 0;
            transform: translateY(30px);
        }
        
        .tab-active {
            background-color: var(--primary-color);
            color: white;
        }
        
        .tab {
            cursor: pointer;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .tab:hover {
            background-color: var(--primary-light);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s ease forwards;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .nutrition-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        
        .nutrition-table th, .nutrition-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .nutrition-table th {
            background-color: var(--primary-light);
            font-weight: 600;
        }
        
        .nutrition-table tr:hover {
            background-color: #f9fafb;
        }
        
        .vector-icon {
            opacity: 0;
            transform: translateY(20px) scale(0.9);
            transition: all 0.6s ease;
        }
        
        /* Progress Bar Styles */
        .progress-bar {
            width: 100%;
            height: 10px;
            background-color: #e5e7eb;
            border-radius: 5px;
            margin: 10px 0;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            width: 0;
            background-color: var(--primary-color);
            border-radius: 5px;
            transition: width 1s ease;
        }
        
        /* Formula Selection Styles */
        .formula-selector {
            display: flex;
            background-color: #f3f4f6;
            border-radius: 10px;
            padding: 5px;
            margin-bottom: 20px;
        }
        
        .formula-option {
            flex: 1;
            text-align: center;
            padding: 10px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .formula-option.active {
            background-color: var(--primary-color);
            color: white;
            box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
        }
        
        /* Radio and Checkbox Custom Styling */
        .radio-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .radio-option {
            display: inline-flex;
            align-items: center;
            background-color: #f3f4f6;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .radio-option.selected {
            background-color: var(--primary-light);
            border: 2px solid var(--primary-color);
        }
        
        .radio-option input {
            position: absolute;
            opacity: 0;
        }
        
        /* For print/PDF - optimize layout */
        @media print {
            body {
                width: 100%;
                margin: 0;
                padding: 15px;
                background-color: white;
            }
            
            .card {
                box-shadow: none;
                margin-bottom: 30px;
            }
            
            .page-break {
                page-break-before: avoid;
            }
            
            .bg-pattern {
                display: none;
            }
        }