*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);min-height:100vh}.app{display:flex;flex-direction:column;min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}.app-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;text-align:center;box-shadow:0 4px 6px #0000001a}.app-header h1{font-size:2.5rem;margin-bottom:.5rem;font-weight:700}.subtitle{font-size:1.1rem;opacity:.95;font-weight:300}.app-nav{background:#fffffff2;padding:1rem 2rem;display:flex;gap:1rem;flex-wrap:wrap;box-shadow:0 2px 4px #0000000d;border-bottom:2px solid rgba(102,126,234,.1)}.nav-btn{padding:.75rem 1.5rem;background:#f0f4f8;border:2px solid #e2e8f0;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .3s ease;color:#333}.nav-btn:hover{background:#667eea;color:#fff;border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.nav-btn.active{background:#667eea;color:#fff;border-color:#667eea;box-shadow:0 4px 12px #667eea4d}.logout-btn{margin-left:auto;background:#ff6b6b;border-color:#ff6b6b;color:#fff}.logout-btn:hover{background:#ff5252;border-color:#ff5252;box-shadow:0 4px 12px #ff6b6b4d}.app-main{flex:1;padding:2rem;max-width:1400px;margin:0 auto;width:100%}.app-footer{background:#0000001a;color:#666;text-align:center;padding:1.5rem;margin-top:auto;font-size:.9rem;border-top:1px solid rgba(0,0,0,.05)}@media (max-width: 768px){.app-header h1{font-size:1.8rem}.app-header{padding:1.5rem}.app-nav{padding:.75rem 1rem;gap:.5rem}.nav-btn{padding:.6rem 1rem;font-size:.9rem}.logout-btn{margin-left:0;margin-top:.5rem;width:100%}.app-main{padding:1rem}}.data-loader{display:flex;justify-content:center;align-items:center;min-height:calc(100vh - 300px);padding:2rem}.loader-container{background:#fff;border-radius:12px;padding:3rem;box-shadow:0 10px 40px #0000001a;max-width:800px;width:100%}.loader-container h2{font-size:2rem;color:#333;margin-bottom:.5rem;text-align:center}.description{text-align:center;color:#666;margin-bottom:2rem;font-size:1.1rem}.method-tabs{display:flex;gap:1rem;margin-bottom:2rem;justify-content:center}.tab-btn{padding:.75rem 1.5rem;border:2px solid #e2e8f0;background:#f5f7fa;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .3s ease;color:#666}.tab-btn:hover{background:#eff0ff;border-color:#667eea;color:#667eea}.tab-btn.active{background:#667eea;border-color:#667eea;color:#fff;box-shadow:0 4px 12px #667eea4d}.loader-content{margin-bottom:2rem;min-height:200px;display:flex;flex-direction:column;justify-content:center}.file-upload-section{text-align:center}.file-input-wrapper{display:inline-block;cursor:pointer}.file-input-label{display:inline-block;padding:1.5rem 3rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;font-size:1.1rem;font-weight:600;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d}.file-input-label:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.file-input:disabled~.file-input-label{opacity:.7;cursor:not-allowed}.file-help{margin-top:1rem;color:#999;font-size:.95rem}.text-input-section{display:flex;flex-direction:column;gap:1rem}.json-textarea{min-height:300px;padding:1rem;border:2px solid #e2e8f0;border-radius:8px;font-family:Courier New,monospace;font-size:.9rem;resize:vertical;transition:all .3s ease}.json-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.json-textarea:disabled{background:#f5f7fa;cursor:not-allowed}.load-btn{padding:1rem 2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d}.load-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.load-btn:disabled{opacity:.7;cursor:not-allowed}.error-message{padding:1rem;background:#ffe0e0;border:1px solid #ff6b6b;border-radius:8px;color:#c92a2a;margin-bottom:2rem;text-align:center;font-weight:500}.examples-section{margin:2rem 0;padding:1.5rem;background:#f5f7fa;border-radius:8px;border:1px solid #e2e8f0}.examples-section h3{color:#333;margin-bottom:.5rem}.examples-section p{color:#666;margin-bottom:1rem;font-size:.95rem}.example-buttons{display:flex;gap:1rem;flex-wrap:wrap}.example-btn{flex:1;min-width:150px;padding:1rem;border:2px solid #e2e8f0;background:#fff;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .3s ease;color:#333}.example-btn:hover:not(:disabled){background:#f0f4f8;border-color:#667eea;color:#667eea;transform:translateY(-2px)}.example-btn.male{border-color:#667eea}.example-btn.male:hover:not(:disabled){background:#eff0ff}.example-btn.female{border-color:#e85d7b}.example-btn.female:hover:not(:disabled){background:#fff0f3;color:#e85d7b}.example-btn:disabled{opacity:.6;cursor:not-allowed}.format-help{margin-top:2rem;padding-top:2rem;border-top:2px solid #e2e8f0}.format-help h3{color:#333;margin-bottom:1rem;font-size:1.1rem}.format-help pre{background:#1e1e1e;color:#d4d4d4;padding:1rem;border-radius:8px;overflow-x:auto;font-size:.85rem;line-height:1.5;max-height:300px;overflow-y:auto}@media (max-width: 768px){.loader-container{padding:1.5rem}.loader-container h2{font-size:1.5rem}.method-tabs{flex-direction:column}.tab-btn{width:100%}.file-input-label{display:block;padding:1rem 1.5rem;font-size:1rem}.example-buttons{flex-direction:column}.example-btn{flex:1;min-width:auto}.json-textarea{min-height:200px}}.dashboard{width:100%}.dashboard-header{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a}.user-info h2{font-size:2rem;color:#333;margin-bottom:.5rem}.user-details{color:#666;font-size:1.1rem}.overall-score-section{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a;text-align:center}.score-description{margin-top:1.5rem;color:#666}.score-description p{font-size:1rem;line-height:1.6}.categories-grid{margin-bottom:2rem}.categories-grid h3{font-size:1.5rem;color:#333;margin-bottom:1.5rem}.categories-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem}.color-legend{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a}.color-legend h3{font-size:1.3rem;color:#333;margin-bottom:1.5rem}.legend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.legend-item{display:flex;gap:1rem;align-items:flex-start;padding:1rem;background:#f5f7fa;border-radius:8px}.legend-color{width:40px;height:40px;border-radius:50%;flex-shrink:0;border:2px solid rgba(0,0,0,.1)}.legend-info{display:flex;flex-direction:column;gap:.25rem}.legend-label{font-weight:600;color:#333}.legend-range{font-size:.9rem;color:#666}.stats-summary{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px #0000001a}.stats-summary h3{font-size:1.3rem;color:#333;margin-bottom:1.5rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.5rem}.stat-card{padding:1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;text-align:center;box-shadow:0 4px 12px #667eea4d}.stat-number{font-size:2.5rem;font-weight:700;margin-bottom:.5rem}.stat-label{font-size:.95rem;opacity:.95}@media (max-width: 768px){.dashboard-header{padding:1.5rem}.user-info h2{font-size:1.5rem}.user-details{font-size:.95rem}.overall-score-section{padding:1.5rem}.categories-container,.legend-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(3,1fr);gap:1rem}.stat-card{padding:1rem}.stat-number{font-size:1.8rem}.stat-label{font-size:.8rem}}.compliance-score{display:flex;justify-content:center;align-items:center;padding:1rem}.score-container{display:flex;align-items:center;gap:2rem}.score-circle{width:180px;height:180px;border-radius:50%;border:8px solid #667eea;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(135deg,#667eea1a,#764ba21a);box-shadow:0 8px 20px #667eea33}.score-value{font-size:3.5rem;font-weight:700;color:#333;line-height:1}.score-percent{font-size:1.5rem;color:#666;margin-top:.5rem}.score-info{display:flex;flex-direction:column;gap:.5rem}.score-title{font-size:1.2rem;color:#666;font-weight:500}.score-status{font-size:1.8rem;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}@media (max-width: 768px){.score-container{flex-direction:column;gap:1.5rem}.score-circle{width:140px;height:140px;border-width:6px}.score-value{font-size:2.5rem}.score-percent{font-size:1.2rem}.score-title{font-size:1rem;text-align:center}.score-status{font-size:1.4rem;text-align:center}}.category-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #0000001a;cursor:pointer;transition:all .3s ease;border:2px solid transparent;display:flex;flex-direction:column;gap:1rem}.category-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px #00000026;border-color:#667eea}.card-header{display:flex;justify-content:space-between;align-items:start;gap:1rem}.card-header h3{font-size:1.3rem;color:#333;margin:0;flex:1}.test-count{background:#f0f4f8;color:#667eea;padding:.3rem .8rem;border-radius:20px;font-size:.8rem;font-weight:600;white-space:nowrap;flex-shrink:0}.card-description{color:#666;font-size:.95rem;line-height:1.5;min-height:2.8rem}.progress-section{display:flex;flex-direction:column;gap:.75rem}.progress-bar{width:100%;height:12px;background:#e2e8f0;border-radius:6px;overflow:hidden;box-shadow:inset 0 2px 4px #0000000d}.progress-fill{height:100%;transition:width .3s ease,background-color .3s ease;border-radius:6px}.progress-label{display:flex;justify-content:space-between;align-items:center;font-size:.9rem}.percentage{font-weight:700;font-size:1.1rem}.of-goal{color:#999;font-size:.85rem}.view-btn{padding:.75rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all .3s ease;margin-top:.5rem}.view-btn:hover{transform:scale(1.02);box-shadow:0 4px 12px #667eea4d}.view-btn:active{transform:scale(.98)}@media (max-width: 768px){.category-card{padding:1rem}.card-header h3{font-size:1.1rem}.card-description{font-size:.85rem;min-height:auto}}.category-page{width:100%}.category-header{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a}.back-btn{padding:.5rem 1rem;background:#f0f4f8;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;font-size:.95rem;font-weight:500;color:#667eea;transition:all .3s ease;margin-bottom:1rem}.back-btn:hover{background:#667eea;color:#fff;transform:translate(-2px)}.category-header h2{font-size:2.5rem;color:#333;margin:1rem 0 .5rem}.category-description{color:#666;font-size:1.1rem;margin:0}.score-card{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a;text-align:center}.tests-container{display:flex;flex-direction:column;gap:2rem}.subcategory-group{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px #0000001a}.subcategory-title{font-size:1.3rem;color:#333;margin:0 0 1.5rem;padding-bottom:.5rem;border-bottom:2px solid #e2e8f0}.tests-list{display:flex;flex-direction:column;gap:1.5rem}.category-notes{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px #0000001a}.category-notes h3{font-size:1.3rem;color:#333;margin:0 0 1.5rem}.summary-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.summary-item{padding:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 4px 12px #667eea4d}.summary-label{font-weight:500;font-size:.95rem}.summary-value{font-size:1.8rem;font-weight:700}@media (max-width: 768px){.category-header{padding:1.5rem}.category-header h2{font-size:1.8rem}.category-description{font-size:.95rem}.subcategory-group{padding:1.5rem}.subcategory-title{font-size:1.1rem}.summary-stats{grid-template-columns:1fr}.summary-item{flex-direction:column;align-items:flex-start;gap:.5rem}}.horizontal-bar-chart{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:#f9fafb;border-radius:8px;border:1px solid #e2e8f0;transition:all .3s ease}.horizontal-bar-chart:hover{background:#f0f4f8;border-color:#667eea}.chart-row{display:grid;grid-template-columns:250px 1fr 150px;gap:1rem;align-items:center}.test-name{font-weight:600;color:#333;font-size:.95rem;word-break:break-word;cursor:default;display:flex;align-items:center;gap:.5rem;transition:color .3s ease}.test-name:hover{color:#667eea}.name-text{flex:1}.video-indicator{font-size:1rem;opacity:.6;transition:opacity .3s ease}.test-name:hover .video-indicator{opacity:1}.chart-area{display:flex;align-items:center}.bar-container{width:100%;height:30px;background:#e2e8f0;border-radius:4px;overflow:hidden;box-shadow:inset 0 2px 4px #0000000d;position:relative}.bar{height:100%;display:flex;align-items:center;justify-content:flex-end;padding-right:8px;transition:all .3s ease;position:relative;border-radius:4px;box-shadow:0 2px 4px #0000001a}.bar-value{color:#fff;font-weight:700;font-size:.85rem;text-shadow:0 1px 2px rgba(0,0,0,.2);white-space:nowrap}.test-details{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;font-size:.85rem}.actual-value{font-weight:600;color:#333}.goal-value{color:#999;font-size:.8rem}.description-tooltip{background:#667eea;color:#fff;padding:.75rem 1rem;border-radius:6px;font-size:.9rem;line-height:1.5;margin-top:.5rem;animation:slideDown .3s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.description-tooltip p{margin:0}.test-notes{font-size:.85rem;color:#666;padding:.5rem .75rem;background:#667eea0d;border-left:3px solid #667eea;border-radius:4px;margin-top:.5rem;display:flex;gap:.5rem}.notes-label{font-weight:600;color:#667eea}.notes-text{color:#666;flex:1}@media (max-width: 1024px){.chart-row{grid-template-columns:200px 1fr 130px;gap:.75rem}.test-name{font-size:.9rem}.test-details{font-size:.8rem}}@media (max-width: 768px){.chart-row{grid-template-columns:1fr;gap:.75rem}.test-name{font-size:.95rem;margin-bottom:.25rem}.bar-container{height:28px}.test-details{align-items:flex-start;padding-left:0;margin-top:.5rem}.chart-area{order:-1}.horizontal-bar-chart{padding:.75rem}}.picture-comparison{width:100%}.comparison-header{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a}.comparison-header h2{font-size:2rem;color:#333;margin:0 0 .5rem}.comparison-header p{color:#666;margin:0;font-size:1.1rem}.clear-all-btn{display:block;margin-bottom:1.5rem;padding:.75rem 1.5rem;background:#ff6b6b;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;transition:all .3s ease}.clear-all-btn:hover{background:#ff5252;transform:translateY(-2px);box-shadow:0 4px 12px #ff6b6b4d}.comparison-container{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}.image-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #0000001a;display:flex;flex-direction:column;gap:1rem}.image-header{display:flex;gap:.75rem;align-items:center}.label-input{flex:1;padding:.6rem 1rem;border:2px solid #e2e8f0;border-radius:6px;font-size:1rem;font-weight:600;color:#333;transition:all .3s ease}.label-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.remove-btn{width:36px;height:36px;background:#ff6b6b;color:#fff;border:none;border-radius:50%;cursor:pointer;font-size:1.2rem;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.remove-btn:hover{background:#ff5252;transform:scale(1.1)}.image-wrapper{flex:1;display:flex;align-items:center;justify-content:center;background:#f5f7fa;border-radius:8px;overflow:hidden;min-height:400px}.comparison-image{max-width:100%;max-height:600px;width:auto;height:auto;object-fit:contain;border-radius:6px}.image-upload-zone{flex:1;min-height:400px;border:2px dashed #e2e8f0;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;background:#f9fafb}.image-upload-zone:hover{border-color:#667eea;background:#f0f4f8}.file-input{display:none}.upload-placeholder{display:flex;flex-direction:column;align-items:center;gap:.75rem;text-align:center}.upload-icon{font-size:3rem;opacity:.7}.upload-placeholder p{font-size:1.1rem;font-weight:600;color:#333;margin:0}.upload-hint{font-size:.85rem;color:#999;display:block}.comparison-tips{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px #0000001a}.comparison-tips h3{font-size:1.3rem;color:#333;margin:0 0 1rem}.comparison-tips ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.comparison-tips li{padding-left:1.5rem;position:relative;color:#666;line-height:1.6}.comparison-tips li:before{content:"✓";position:absolute;left:0;color:#667eea;font-weight:700}@media (max-width: 768px){.comparison-container{grid-template-columns:1fr;gap:1.5rem}.image-wrapper,.image-upload-zone{min-height:300px}.comparison-image{max-height:400px}.comparison-header{padding:1.5rem}.comparison-header h2{font-size:1.5rem}.upload-icon{font-size:2.5rem}.upload-placeholder p{font-size:1rem}}:root{--color-red: #FF6B6B;--color-yellow: #FFD93D;--color-lime: #6BCF7F;--color-green: #00AA00;--color-blue: #4A90E2;--primary: #667eea;--primary-dark: #764ba2;--text: #333;--text-light: #666;--bg-light: #f5f7fa;--border: #e2e8f0;--shadow: 0 4px 6px rgba(0, 0, 0, .1)}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);min-height:100vh}html,body,#root{height:100%}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#667eea;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#764ba2}
