Spaces:
Build error
Build error
Download styles.css from SsemuliJoseph/potato-guard: direct link, hf CLI and curl.
- Browser
- Download file 47 kB
-
https://huggingface.co/spaces/SsemuliJoseph/potato-guard/resolve/main/styles.css
- Command line
-
hf download hf://spaces/SsemuliJoseph/potato-guard/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/SsemuliJoseph/potato-guard/resolve/main/styles.css
47 kB
| /* ================================================================ | |
| PotatoGuard — styles.css | |
| Full production stylesheet | |
| ================================================================ */ | |
| /* ---------------------------------------------------------------- | |
| FONT IMPORT + RESET + VARIABLES | |
| ---------------------------------------------------------------- */ | |
| @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,700;0,900;1,400&family=Outfit:wght@300;400;500;600;700&display=swap'); | |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } | |
| :root { | |
| --green: #1B5E20; | |
| --green-mid: #2E7D32; | |
| --green-light: #66BB6A; | |
| --green-pale: #F1F8E9; | |
| --green-xpale: #E8F5E9; | |
| --purple: #4A148C; | |
| --purple-mid: #7B1FA2; | |
| --purple-pale: #F3E5F5; | |
| --red: #C62828; | |
| --red-pale: #FFEBEE; | |
| --orange: #E65100; | |
| --orange-pale: #FFF3E0; | |
| --yellow: #F9A825; | |
| --text: #1a1a1a; | |
| --text-mid: #444; | |
| --text-light: #888; | |
| --text-xlight: #bbb; | |
| --white: #FFFFFF; | |
| --off-white: #FAFAFA; | |
| --border: #E8E8E8; | |
| --card-bg: #FFFFFF; | |
| --card-shadow: 0 2px 16px rgba(0,0,0,0.08); | |
| --card-shadow-lg: 0 8px 40px rgba(0,0,0,0.14); | |
| --radius: 16px; | |
| --radius-sm: 10px; | |
| --radius-xs: 6px; | |
| --font-display: 'Fraunces', Georgia, serif; | |
| --font-body: 'Outfit', sans-serif; | |
| --sidebar-w: 260px; | |
| --topbar-h: 64px; | |
| --ease: cubic-bezier(.4,0,.2,1); | |
| --spring: cubic-bezier(.175,.885,.32,1.275); | |
| } | |
| /* Dark mode */ | |
| body.dark { | |
| --text: #F0F0F0; | |
| --text-mid: #C8C8C8; | |
| --text-light: #999; | |
| --white: #1E1E1E; | |
| --off-white: #161616; | |
| --border: #333; | |
| --card-bg: #252525; | |
| --card-shadow: 0 2px 16px rgba(0,0,0,0.4); | |
| background: #121212; | |
| } | |
| html { scroll-behavior: smooth; } | |
| body { | |
| font-family: var(--font-body); | |
| color: var(--text); | |
| background: var(--off-white); | |
| -webkit-font-smoothing: antialiased; | |
| overflow-x: hidden; | |
| } | |
| a { text-decoration: none; color: inherit; } | |
| button { cursor: pointer; } | |
| input, select, textarea { font-family: var(--font-body); } | |
| /* ---------------------------------------------------------------- | |
| PAGES | |
| ---------------------------------------------------------------- */ | |
| .page { display: none; } | |
| .page.active { display: block; } | |
| /* ---------------------------------------------------------------- | |
| TOAST | |
| ---------------------------------------------------------------- */ | |
| .toast { | |
| position: fixed; bottom: 28px; left: 50%; | |
| transform: translateX(-50%) translateY(80px); | |
| background: #222; color: #fff; | |
| padding: 12px 24px; border-radius: 40px; | |
| font-size: 14px; font-weight: 500; | |
| opacity: 0; transition: all .3s var(--ease); | |
| pointer-events: none; z-index: 9999; | |
| white-space: nowrap; max-width: 90vw; | |
| box-shadow: 0 4px 20px rgba(0,0,0,0.25); | |
| } | |
| .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } | |
| .toast.success { background: var(--green-mid); } | |
| .toast.error { background: var(--red); } | |
| .toast.warn { background: var(--yellow); color: #000; } | |
| /* ---------------------------------------------------------------- | |
| MODAL | |
| ---------------------------------------------------------------- */ | |
| .modal-overlay { | |
| display: none; position: fixed; inset: 0; | |
| background: rgba(0,0,0,0.5); z-index: 1000; | |
| backdrop-filter: blur(4px); | |
| } | |
| .modal-overlay.active { display: block; } | |
| .modal { | |
| display: none; position: fixed; | |
| top: 50%; left: 50%; | |
| transform: translate(-50%, -46%) scale(.96); | |
| background: var(--white); border-radius: var(--radius); | |
| padding: 36px; width: 90%; max-width: 420px; | |
| z-index: 1001; opacity: 0; | |
| transition: all .3s var(--spring); | |
| box-shadow: var(--card-shadow-lg); | |
| } | |
| .modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); } | |
| .modal-wide { max-width: 660px; } | |
| .modal-close { | |
| position: absolute; top: 16px; right: 16px; | |
| background: none; border: none; font-size: 20px; | |
| color: var(--text-light); line-height: 1; | |
| } | |
| .modal-close:hover { color: var(--text); } | |
| .modal-header { text-align: center; margin-bottom: 24px; } | |
| .modal-logo { font-size: 48px; margin-bottom: 8px; } | |
| .modal-header h2 { font-family: var(--font-display); font-size: 26px; color: var(--green); } | |
| .modal-header p { color: var(--text-light); font-size: 14px; margin-top: 4px; } | |
| .modal-tabs { display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); margin-bottom: 24px; } | |
| .modal-tab { flex: 1; padding: 10px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--text-light); font-family: var(--font-body); } | |
| .modal-tab.active { background: var(--green); color: #fff; } | |
| .auth-hint { font-size: 12px; color: var(--text-xlight); text-align: center; margin-top: 12px; } | |
| /* ---------------------------------------------------------------- | |
| FORM ELEMENTS | |
| ---------------------------------------------------------------- */ | |
| .form-group { margin-bottom: 16px; } | |
| .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; } | |
| .form-group input, .form-group select, .form-group textarea { | |
| width: 100%; padding: 12px 14px; | |
| border: 1.5px solid var(--border); | |
| border-radius: var(--radius-sm); | |
| font-size: 14px; color: var(--text); | |
| background: var(--white); | |
| transition: border-color .2s; | |
| } | |
| .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--green); } | |
| .form-row { display: flex; gap: 12px; } | |
| /* ---------------------------------------------------------------- | |
| BUTTONS | |
| ---------------------------------------------------------------- */ | |
| .btn { | |
| display: inline-flex; align-items: center; justify-content: center; gap: 8px; | |
| padding: 13px 24px; border: none; border-radius: 40px; | |
| font-family: var(--font-body); font-size: 15px; font-weight: 600; | |
| cursor: pointer; letter-spacing: 0.2px; | |
| transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; | |
| } | |
| .btn:active { transform: scale(.97); } | |
| .btn.full-width { width: 100%; } | |
| .btn.large-btn { padding: 17px; font-size: 16px; } | |
| .btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 16px rgba(27,94,32,.3); } | |
| .btn-green:hover { box-shadow: 0 6px 24px rgba(27,94,32,.45); } | |
| .btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); box-shadow: none; } | |
| .btn-outline:hover { background: var(--green-xpale); } | |
| .btn-danger { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(198,40,40,.25); } | |
| .btn:disabled { opacity: .4; cursor: not-allowed; transform: none ; box-shadow: none ; } | |
| /* Small variants for nav */ | |
| .btn-green-sm { background: var(--green); color: #fff; padding: 8px 18px; border-radius: 30px; border: none; font-family: var(--font-body); font-size: 14px; font-weight: 600; } | |
| .btn-outline-sm{ background: transparent; color: var(--green); border: 2px solid var(--green); padding: 7px 17px; border-radius: 30px; font-family: var(--font-body); font-size: 14px; font-weight: 600; } | |
| .link-btn { background: none; border: none; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; } | |
| .link-btn:hover { text-decoration: underline; } | |
| /* ---------------------------------------------------------------- | |
| SPINNER | |
| ---------------------------------------------------------------- */ | |
| .spinner { | |
| width: 20px; height: 20px; | |
| border: 3px solid rgba(255,255,255,.35); | |
| border-top-color: #fff; border-radius: 50%; | |
| animation: spin .7s linear infinite; display: none; | |
| } | |
| .spinner.visible { display: block; } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| /* ================================================================ | |
| LANDING PAGE | |
| ================================================================ */ | |
| /* NAV */ | |
| .landing-nav { | |
| position: sticky; top: 0; z-index: 200; | |
| display: flex; align-items: center; gap: 20px; | |
| padding: 0 48px; height: 68px; | |
| background: rgba(255,255,255,.92); | |
| backdrop-filter: blur(16px); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .nav-brand { display: flex; align-items: center; gap: 10px; } | |
| .nav-logo { font-size: 28px; } | |
| .nav-name { font-family: var(--font-display); font-size: 22px; color: var(--green); font-weight: 700; } | |
| .nav-links { display: flex; gap: 28px; margin-left: 32px; flex: 1; } | |
| .nav-links a { font-size: 14px; font-weight: 500; color: var(--text-mid); transition: color .2s; } | |
| .nav-links a:hover { color: var(--green); } | |
| .nav-actions { display: flex; gap: 10px; } | |
| .hamburger { display: none; background: none; border: none; font-size: 24px; color: var(--text); } | |
| .mobile-menu { | |
| display: none; flex-direction: column; gap: 8px; | |
| padding: 20px; background: var(--white); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .mobile-menu.open { display: flex; } | |
| .mobile-menu a { padding: 12px; font-size: 15px; font-weight: 500; color: var(--text-mid); border-radius: var(--radius-sm); } | |
| .mobile-menu a:hover { background: var(--green-xpale); color: var(--green); } | |
| /* HERO */ | |
| .hero { | |
| min-height: calc(100vh - 68px); | |
| display: flex; align-items: center; justify-content: center; | |
| gap: 60px; padding: 60px 48px; | |
| position: relative; overflow: hidden; | |
| background: linear-gradient(135deg, #F1F8E9 0%, #FFFFFF 50%, #EDE7F6 100%); | |
| } | |
| .hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; } | |
| .shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; } | |
| .shape-1 { width: 500px; height: 500px; background: #A5D6A7; top: -150px; left: -100px; animation: drift 8s ease-in-out infinite; } | |
| .shape-2 { width: 400px; height: 400px; background: #CE93D8; bottom: -100px; right: -80px; animation: drift 11s ease-in-out infinite reverse; } | |
| .shape-3 { width: 300px; height: 300px; background: #FFF59D; top: 40%; left: 40%; animation: drift 9s ease-in-out infinite 2s; } | |
| @keyframes drift { | |
| 0%,100% { transform: translate(0,0) scale(1); } | |
| 50% { transform: translate(30px,-20px) scale(1.08); } | |
| } | |
| .hero-content { max-width: 560px; } | |
| .hero-badge { | |
| display: inline-block; background: var(--green-xpale); color: var(--green); | |
| border: 1.5px solid var(--green-light); border-radius: 30px; | |
| padding: 6px 16px; font-size: 13px; font-weight: 600; | |
| margin-bottom: 20px; animation: fadeUp .6s var(--ease) both; | |
| } | |
| .hero-title { | |
| font-family: var(--font-display); font-size: clamp(36px,5vw,58px); | |
| line-height: 1.1; color: var(--text); margin-bottom: 20px; | |
| animation: fadeUp .6s var(--ease) .1s both; | |
| } | |
| .hero-title em { color: var(--green); font-style: italic; } | |
| .hero-subtitle { | |
| font-size: 17px; color: var(--text-mid); line-height: 1.7; | |
| margin-bottom: 32px; animation: fadeUp .6s var(--ease) .2s both; | |
| } | |
| .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; animation: fadeUp .6s var(--ease) .3s both; } | |
| .btn-hero-primary { background: var(--green); color: #fff; padding: 16px 32px; border: none; border-radius: 40px; font-size: 16px; font-weight: 700; font-family: var(--font-body); box-shadow: 0 8px 32px rgba(27,94,32,.35); } | |
| .btn-hero-secondary{ background: rgba(255,255,255,.7); color: var(--text); padding: 16px 28px; border: 1.5px solid var(--border); border-radius: 40px; font-size: 16px; font-weight: 600; font-family: var(--font-body); backdrop-filter: blur(8px); } | |
| .btn-hero-primary:hover { box-shadow: 0 12px 40px rgba(27,94,32,.5); transform: translateY(-2px); } | |
| .btn-hero-secondary:hover{ background: rgba(255,255,255,.9); transform: translateY(-2px); } | |
| .hero-stats { | |
| display: flex; gap: 0; align-items: center; flex-wrap: wrap; | |
| background: rgba(255,255,255,.7); backdrop-filter: blur(8px); | |
| border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; | |
| animation: fadeUp .6s var(--ease) .4s both; | |
| } | |
| .hstat { text-align: center; flex: 1; padding: 0 8px; } | |
| .hstat-num { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--green); } | |
| .hstat-label { font-size: 11px; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; } | |
| .hstat-divider { width: 1px; height: 36px; background: var(--border); } | |
| @keyframes fadeUp { | |
| from { opacity: 0; transform: translateY(20px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* PHONE MOCKUP */ | |
| .hero-image { flex-shrink: 0; } | |
| .phone-mockup { | |
| width: 260px; background: #111; border-radius: 40px; | |
| padding: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.1); | |
| animation: floatPhone 4s ease-in-out infinite; | |
| } | |
| @keyframes floatPhone { | |
| 0%,100% { transform: translateY(0) rotate(-1deg); } | |
| 50% { transform: translateY(-16px) rotate(1deg); } | |
| } | |
| .phone-screen { | |
| background: #1a1a2e; border-radius: 30px; padding: 16px; | |
| min-height: 480px; display: flex; flex-direction: column; gap: 12px; | |
| } | |
| .phone-app-bar { | |
| background: var(--green); color: #fff; text-align: center; | |
| padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700; | |
| } | |
| .phone-scan-area { | |
| flex: 1; display: flex; align-items: center; justify-content: center; | |
| } | |
| .scan-frame { | |
| width: 160px; height: 160px; position: relative; | |
| display: flex; align-items: center; justify-content: center; | |
| } | |
| .scan-corner { | |
| position: absolute; width: 20px; height: 20px; | |
| border-color: #66BB6A; border-style: solid; | |
| } | |
| .scan-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; } | |
| .scan-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; } | |
| .scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; } | |
| .scan-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; } | |
| .scan-line { | |
| position: absolute; width: 100%; height: 2px; | |
| background: linear-gradient(90deg, transparent, #66BB6A, transparent); | |
| animation: scanMove 2s ease-in-out infinite; | |
| } | |
| @keyframes scanMove { | |
| 0%,100% { top: 10%; } | |
| 50% { top: 85%; } | |
| } | |
| .leaf-display { font-size: 64px; filter: drop-shadow(0 0 12px rgba(102,187,106,.6)); } | |
| .phone-result-chip { | |
| padding: 10px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; | |
| } | |
| .phone-result-chip.healthy { background: rgba(46,125,50,.3); color: #81C784; } | |
| .phone-treat-chip { background: rgba(255,255,255,.08); color: #aaa; font-size: 11px; text-align: center; padding: 8px 12px; border-radius: 8px; } | |
| /* SECTIONS */ | |
| .section { padding: 90px 48px; } | |
| .section-dark { background: #1B2820; } | |
| .section-pale { background: var(--green-pale); } | |
| .section-inner { max-width: 1100px; margin: 0 auto; } | |
| .section-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-light); margin-bottom: 12px; } | |
| .section-title { font-family: var(--font-display); font-size: clamp(28px,3.5vw,42px); color: var(--text); margin-bottom: 48px; line-height: 1.2; } | |
| .section-title.light { color: #fff; } | |
| /* FEATURES GRID */ | |
| .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; } | |
| .feature-card { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 28px; border: 1px solid var(--border); | |
| box-shadow: var(--card-shadow); | |
| transition: transform .25s var(--ease), box-shadow .25s; | |
| } | |
| .feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-lg); } | |
| .feature-icon { font-size: 36px; margin-bottom: 14px; } | |
| .feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; } | |
| .feature-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; } | |
| /* DISEASES GRID */ | |
| .diseases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; } | |
| .disease-info-card { | |
| border-radius: var(--radius); padding: 24px; | |
| cursor: pointer; transition: transform .25s, box-shadow .25s; | |
| } | |
| .disease-info-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.25); } | |
| .healthy-card { background: #1B3A1E; border: 1px solid rgba(102,187,106,.3); } | |
| .late-card { background: #3A1B1B; border: 1px solid rgba(229,57,53,.3); } | |
| .early-card { background: #3A2A1B; border: 1px solid rgba(239,108,0,.3); } | |
| .wilt-card { background: #2B1B3A; border: 1px solid rgba(149,117,205,.3); } | |
| .dic-emoji { font-size: 40px; margin-bottom: 12px; } | |
| .dic-status { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; } | |
| .disease-info-card p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 14px; } | |
| .dic-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); letter-spacing: .5px; text-transform: uppercase; } | |
| /* STEPS ROW */ | |
| .steps-row { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; } | |
| .step-card { flex: 1; min-width: 180px; text-align: center; padding: 24px 16px; } | |
| .step-num { font-family: var(--font-display); font-size: 48px; font-weight: 900; color: var(--green-pale); line-height: 1; margin-bottom: 8px; } | |
| .step-icon { font-size: 36px; margin-bottom: 12px; } | |
| .step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; } | |
| .step-card p { font-size: 13px; color: var(--text-mid); line-height: 1.6; } | |
| .step-arrow { font-size: 28px; color: var(--green-light); padding-top: 60px; flex-shrink: 0; } | |
| /* TECH GRID */ | |
| .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; } | |
| .tech-card { | |
| background: var(--card-bg); border-radius: var(--radius-sm); | |
| padding: 20px; text-align: center; border: 1px solid var(--border); | |
| transition: transform .2s; | |
| } | |
| .tech-card:hover { transform: translateY(-3px); } | |
| .tech-icon { font-size: 28px; margin-bottom: 8px; } | |
| .tech-name { font-size: 13px; font-weight: 700; } | |
| .tech-desc { font-size: 11px; color: var(--text-light); margin-top: 2px; } | |
| /* TEAM GRID */ | |
| .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; } | |
| .team-card { | |
| background: var(--card-bg); border-radius: var(--radius); padding: 28px; | |
| text-align: center; border: 1px solid var(--border); box-shadow: var(--card-shadow); | |
| transition: transform .25s; | |
| } | |
| .team-card:hover { transform: translateY(-4px); } | |
| .lead-card { border: 2px solid var(--green-light); } | |
| .team-avatar { | |
| width: 60px; height: 60px; border-radius: 50%; background: var(--green); | |
| color: #fff; font-size: 22px; font-weight: 700; display: flex; | |
| align-items: center; justify-content: center; margin: 0 auto 14px; | |
| } | |
| .team-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; } | |
| .team-id { font-size: 11px; color: var(--text-light); margin-bottom: 8px; } | |
| .team-role { font-size: 13px; color: var(--text-mid); margin-bottom: 8px; } | |
| .lead-role { color: var(--green); font-weight: 600; } | |
| .team-branch{ font-size: 11px; background: var(--green-xpale); color: var(--green); padding: 3px 10px; border-radius: 20px; display: inline-block; font-weight: 600; } | |
| /* FOOTER */ | |
| .landing-footer { background: #0F1F11; padding: 48px; text-align: center; } | |
| .footer-inner { max-width: 600px; margin: 0 auto; } | |
| .footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; } | |
| .footer-logo { font-size: 32px; } | |
| .footer-name { font-family: var(--font-display); font-size: 24px; color: #fff; } | |
| .footer-tagline{ font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 12px; } | |
| .footer-copy { font-size: 12px; color: rgba(255,255,255,.3); } | |
| /* ================================================================ | |
| APP SHELL | |
| ================================================================ */ | |
| .app-shell { display: flex; height: 100vh; overflow: hidden; } | |
| /* SIDEBAR */ | |
| .sidebar { | |
| width: var(--sidebar-w); min-width: var(--sidebar-w); | |
| background: var(--green); display: flex; flex-direction: column; | |
| height: 100vh; overflow-y: auto; overflow-x: hidden; | |
| transition: transform .3s var(--ease); | |
| z-index: 300; | |
| } | |
| .sidebar-header { | |
| display: flex; align-items: center; gap: 10px; | |
| padding: 20px 16px 16px; | |
| border-bottom: 1px solid rgba(255,255,255,.12); | |
| } | |
| .sb-logo { font-size: 28px; } | |
| .sb-brand { font-family: var(--font-display); font-size: 20px; color: #fff; font-weight: 700; flex: 1; } | |
| .sb-close { display: none; background: none; border: none; color: rgba(255,255,255,.7); font-size: 20px; } | |
| .sb-user { | |
| display: flex; align-items: center; gap: 12px; | |
| padding: 16px; margin: 8px 10px; | |
| background: rgba(255,255,255,.08); border-radius: var(--radius-sm); | |
| } | |
| .sb-avatar { | |
| width: 40px; height: 40px; border-radius: 50%; | |
| background: rgba(255,255,255,.2); color: #fff; | |
| font-size: 16px; font-weight: 700; | |
| display: flex; align-items: center; justify-content: center; | |
| } | |
| .sb-uname { font-size: 14px; font-weight: 600; color: #fff; } | |
| .sb-uid { font-size: 11px; color: rgba(255,255,255,.6); } | |
| .sb-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 2px; } | |
| .sb-link { | |
| display: flex; align-items: center; gap: 12px; | |
| padding: 12px 14px; border-radius: var(--radius-sm); | |
| color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; | |
| transition: background .2s, color .2s; cursor: pointer; | |
| } | |
| .sb-link:hover, .sb-link.active { | |
| background: rgba(255,255,255,.15); color: #fff; | |
| } | |
| .sb-icon { font-size: 18px; width: 24px; text-align: center; } | |
| .sb-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.12); } | |
| .sb-logout { | |
| width: 100%; padding: 10px; background: rgba(255,255,255,.08); | |
| border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); | |
| color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600; | |
| font-family: var(--font-body); cursor: pointer; transition: background .2s; | |
| } | |
| .sb-logout:hover { background: rgba(255,255,255,.18); } | |
| /* MAIN CONTENT */ | |
| .app-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; } | |
| .app-topbar { | |
| height: var(--topbar-h); background: var(--card-bg); | |
| border-bottom: 1px solid var(--border); | |
| display: flex; align-items: center; gap: 16px; | |
| padding: 0 24px; flex-shrink: 0; | |
| box-shadow: 0 1px 4px rgba(0,0,0,.05); | |
| } | |
| .topbar-menu { background: none; border: none; font-size: 22px; color: var(--text-mid); display: none; } | |
| .topbar-title { font-family: var(--font-display); font-size: 20px; color: var(--text); flex: 1; } | |
| .topbar-right { display: flex; align-items: center; gap: 14px; } | |
| .notif-bell { font-size: 20px; cursor: pointer; } | |
| .topbar-avatar { | |
| width: 36px; height: 36px; border-radius: 50%; | |
| background: var(--green); color: #fff; font-size: 14px; font-weight: 700; | |
| display: flex; align-items: center; justify-content: center; cursor: pointer; | |
| } | |
| /* APP PAGES */ | |
| .app-page { display: none; flex: 1; overflow-y: auto; padding: 28px; animation: fadeUp .3s var(--ease) both; } | |
| .app-page.active { display: block; } | |
| .page-header { | |
| display: flex; justify-content: space-between; align-items: flex-start; | |
| margin-bottom: 28px; gap: 16px; flex-wrap: wrap; | |
| } | |
| .page-title { font-family: var(--font-display); font-size: 28px; color: var(--text); } | |
| .page-subtitle { font-size: 14px; color: var(--text-light); margin-top: 4px; } | |
| /* ---------------------------------------------------------------- | |
| DASHBOARD | |
| ---------------------------------------------------------------- */ | |
| .stats-grid { | |
| display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; | |
| margin-bottom: 24px; | |
| } | |
| .stat-card { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 20px 24px; border: 1px solid var(--border); | |
| box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 8px; | |
| } | |
| .stat-total { border-left: 4px solid var(--green); } | |
| .stat-healthy { border-left: 4px solid #66BB6A; } | |
| .stat-diseased{ border-left: 4px solid var(--orange); } | |
| .stat-rate { border-left: 4px solid var(--purple); } | |
| .stat-icon { font-size: 28px; } | |
| .stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--text); } | |
| .stat-label { font-size: 13px; color: var(--text-light); font-weight: 500; } | |
| .dash-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; } | |
| .dash-card { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 22px; border: 1px solid var(--border); box-shadow: var(--card-shadow); | |
| } | |
| .dash-card.full-width { grid-column: 1/-1; } | |
| .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; } | |
| .card-header h3 { font-size: 16px; font-weight: 700; } | |
| .card-badge { font-size: 11px; background: var(--green-xpale); color: var(--green); padding: 3px 10px; border-radius: 20px; font-weight: 600; } | |
| .chart-bars { display: flex; flex-direction: column; gap: 14px; } | |
| .chart-bar-row { display: flex; align-items: center; gap: 10px; } | |
| .chart-label { font-size: 12px; color: var(--text-mid); width: 80px; flex-shrink: 0; } | |
| .chart-track { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; } | |
| .chart-fill { height: 100%; border-radius: 5px; transition: width 1s var(--ease); } | |
| .fill-healthy{ background: var(--green-light); } | |
| .fill-late { background: var(--red); } | |
| .fill-early { background: var(--orange); } | |
| .fill-wilt { background: var(--purple-mid); } | |
| .chart-pct { font-size: 12px; font-weight: 700; color: var(--text-mid); width: 36px; text-align: right; } | |
| .quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } | |
| .qa-btn { | |
| display: flex; align-items: center; gap: 8px; | |
| padding: 10px 12px; background: var(--off-white); | |
| border: 1px solid var(--border); border-radius: var(--radius-sm); | |
| font-size: 13px; font-weight: 500; font-family: var(--font-body); color: var(--text); | |
| cursor: pointer; transition: background .2s, transform .2s; | |
| } | |
| .qa-btn:hover { background: var(--green-xpale); color: var(--green); transform: translateX(3px); } | |
| .qa-btn span { font-size: 18px; } | |
| /* WEATHER */ | |
| .weather-card {} | |
| .weather-main { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; } | |
| .weather-icon { font-size: 40px; } | |
| .weather-temp { font-family: var(--font-display); font-size: 42px; font-weight: 900; color: var(--text); } | |
| .weather-desc { font-size: 13px; color: var(--text-mid); margin-bottom: 14px; } | |
| .weather-row { display: flex; gap: 16px; font-size: 13px; margin-bottom: 14px; } | |
| .w-item { display: flex; align-items: center; gap: 4px; color: var(--text-mid); } | |
| .disease-risk-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-mid); } | |
| .risk-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; } | |
| .risk-fill{ height: 100%; background: var(--orange); border-radius: 4px; } | |
| .recent-list { display: flex; flex-direction: column; gap: 10px; } | |
| .recent-item { | |
| display: flex; align-items: center; justify-content: space-between; | |
| padding: 12px 16px; background: var(--off-white); | |
| border-radius: var(--radius-sm); border-left: 4px solid #ccc; | |
| } | |
| .ri-left { display: flex; align-items: center; gap: 12px; } | |
| .ri-emoji { font-size: 22px; } | |
| .ri-disease{ font-size: 14px; font-weight: 700; } | |
| .ri-date { font-size: 11px; color: var(--text-light); } | |
| .ri-pct { font-size: 14px; font-weight: 700; } | |
| .empty-state-small { font-size: 14px; color: var(--text-light); padding: 20px 0; text-align: center; } | |
| .alert-banner { | |
| display: flex; align-items: center; gap: 16px; | |
| padding: 16px 20px; background: #FFF3E0; border-radius: var(--radius); | |
| border-left: 4px solid var(--orange); margin-top: 8px; | |
| } | |
| .alert-icon { font-size: 24px; } | |
| .alert-text { flex: 1; font-size: 14px; font-weight: 500; color: var(--orange); } | |
| .alert-action{ background: var(--orange); color: #fff; border: none; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; font-family: var(--font-body); cursor: pointer; } | |
| /* ---------------------------------------------------------------- | |
| SCAN PAGE | |
| ---------------------------------------------------------------- */ | |
| .scan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } | |
| .scan-panel { display: flex; flex-direction: column; gap: 16px; } | |
| .upload-zone { | |
| border: 2.5px dashed var(--green-light); border-radius: var(--radius); | |
| background: var(--green-pale); min-height: 300px; | |
| display: flex; flex-direction: column; align-items: center; justify-content: center; | |
| cursor: pointer; position: relative; overflow: hidden; | |
| transition: border-color .2s, background .2s; | |
| } | |
| .upload-zone:hover { border-color: var(--green); background: var(--green-xpale); } | |
| .upload-zone.drag-over { border-color: var(--green); background: #C8E6C9; border-style: solid; } | |
| .uz-icon { font-size: 52px; margin-bottom: 12px; } | |
| .uz-title { font-size: 16px; font-weight: 600; color: var(--text-mid); } | |
| .uz-sub { font-size: 13px; color: var(--text-light); margin-top: 4px; } | |
| .upload-zone img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; } | |
| .remove-btn { | |
| position: absolute; top: 12px; right: 12px; | |
| background: rgba(0,0,0,.5); color: #fff; border: none; | |
| width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; | |
| display: flex; align-items: center; justify-content: center; cursor: pointer; | |
| } | |
| .scan-source-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } | |
| .source-btn { | |
| display: flex; align-items: center; justify-content: center; gap: 8px; | |
| padding: 14px; background: var(--card-bg); border: 2px solid var(--green); | |
| border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--green); | |
| font-family: var(--font-body); cursor: pointer; transition: background .2s; | |
| } | |
| .source-btn:hover { background: var(--green-xpale); } | |
| .source-btn span { font-size: 22px; } | |
| .scan-tips-panel { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 24px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; | |
| } | |
| .scan-tips-panel h3 { font-size: 17px; font-weight: 700; color: var(--text); } | |
| .tip-item { display: flex; gap: 12px; align-items: flex-start; } | |
| .tip-num { | |
| width: 26px; height: 26px; border-radius: 50%; background: var(--green); | |
| color: #fff; font-size: 12px; font-weight: 700; | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| } | |
| .tip-item div { font-size: 13px; color: var(--text-mid); line-height: 1.6; } | |
| .tip-item strong { color: var(--text); } | |
| .supported-diseases { margin-top: 8px; } | |
| .supported-diseases h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text-mid); } | |
| .sd-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin: 3px; } | |
| .healthy-pill { background: var(--green-xpale); color: var(--green); } | |
| .late-pill { background: var(--red-pale); color: var(--red); } | |
| .early-pill { background: var(--orange-pale); color: var(--orange); } | |
| .wilt-pill { background: var(--purple-pale); color: var(--purple); } | |
| /* ---------------------------------------------------------------- | |
| RESULT PAGE | |
| ---------------------------------------------------------------- */ | |
| .result-layout { display: flex; flex-direction: column; gap: 20px; max-width: 700px; } | |
| .result-main-card { | |
| border-radius: var(--radius); padding: 28px; | |
| box-shadow: var(--card-shadow-lg); color: #fff; | |
| } | |
| .result-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; } | |
| .result-big-emoji { font-size: 56px; animation: popIn .4s var(--spring) both; } | |
| @keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } } | |
| .result-heading h2 { font-family: var(--font-display); font-size: 32px; color: #fff; } | |
| .result-scientific { font-size: 14px; color: rgba(255,255,255,.7); font-style: italic; margin-top: 4px; } | |
| .conf-label-row { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 8px; } | |
| .conf-pct { font-weight: 700; font-size: 15px; } | |
| .conf-track { height: 10px; background: rgba(255,255,255,.2); border-radius: 5px; overflow: hidden; } | |
| .conf-fill { height: 100%; background: rgba(255,255,255,.8); border-radius: 5px; transition: width 1s var(--ease); } | |
| .result-severity { display: flex; align-items: center; gap: 10px; margin-top: 16px; } | |
| .sev-label { font-size: 13px; color: rgba(255,255,255,.7); } | |
| .sev-dots { display: flex; gap: 5px; } | |
| .sev-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.2); } | |
| .sev-dot.active { background: #fff; } | |
| .sev-text { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); } | |
| .result-section-card { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 24px; border: 1px solid var(--border); box-shadow: var(--card-shadow); | |
| } | |
| .section-card-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--text); } | |
| .treatment-full-text { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; } | |
| .treatment-steps { display: flex; flex-direction: column; gap: 10px; } | |
| .treatment-step { | |
| display: flex; align-items: flex-start; gap: 12px; | |
| padding: 12px 14px; background: var(--off-white); border-radius: var(--radius-sm); | |
| font-size: 13px; color: var(--text-mid); line-height: 1.6; | |
| } | |
| .ts-num { | |
| width: 24px; height: 24px; border-radius: 50%; background: var(--green); | |
| color: #fff; font-size: 12px; font-weight: 700; | |
| display: flex; align-items: center; justify-content: center; flex-shrink: 0; | |
| } | |
| .prev-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; } | |
| .prev-list li { font-size: 14px; color: var(--text-mid); line-height: 1.6; } | |
| .disease-about { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 12px; } | |
| .result-actions-row { display: flex; gap: 12px; flex-wrap: wrap; } | |
| /* ---------------------------------------------------------------- | |
| HISTORY PAGE | |
| ---------------------------------------------------------------- */ | |
| .history-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; } | |
| .hs-chip { | |
| background: var(--card-bg); border: 1px solid var(--border); | |
| border-radius: var(--radius-sm); padding: 10px 16px; | |
| font-size: 13px; font-weight: 600; color: var(--text-mid); | |
| display: flex; align-items: center; gap: 6px; | |
| } | |
| .hs-chip strong { color: var(--text); font-size: 18px; } | |
| .history-filters { | |
| display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; | |
| } | |
| .filter-search { | |
| flex: 1; min-width: 200px; padding: 10px 14px; | |
| border: 1.5px solid var(--border); border-radius: var(--radius-sm); | |
| font-size: 14px; font-family: var(--font-body); | |
| } | |
| .filter-search:focus { outline: none; border-color: var(--green); } | |
| .filter-select { | |
| padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); | |
| font-size: 14px; font-family: var(--font-body); background: var(--card-bg); color: var(--text); | |
| } | |
| .history-table-wrap { overflow-x: auto; } | |
| .history-table { | |
| width: 100%; border-collapse: collapse; background: var(--card-bg); | |
| border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); | |
| } | |
| .history-table thead { background: var(--green); color: #fff; } | |
| .history-table th { padding: 14px 16px; font-size: 13px; font-weight: 700; text-align: left; } | |
| .history-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); } | |
| .history-table tbody tr:hover { background: var(--off-white); } | |
| .history-table tbody tr:last-child td { border-bottom: none; } | |
| .disease-tag { | |
| display: inline-flex; align-items: center; gap: 6px; | |
| padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; | |
| } | |
| .tag-healthy { background: var(--green-xpale); color: var(--green); } | |
| .tag-late { background: var(--red-pale); color: var(--red); } | |
| .tag-early { background: var(--orange-pale); color: var(--orange); } | |
| .tag-wilt { background: var(--purple-pale); color: var(--purple); } | |
| .sev-mini { display: flex; gap: 3px; } | |
| .sev-mini span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); } | |
| .sev-mini span.on { background: var(--orange); } | |
| .row-actions { display: flex; gap: 8px; } | |
| .row-btn { background: none; border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: var(--font-body); transition: background .2s; } | |
| .row-btn:hover { background: var(--off-white); } | |
| .row-btn.del:hover { background: var(--red-pale); color: var(--red); border-color: var(--red); } | |
| .empty-state { text-align: center; padding: 60px 20px; } | |
| .es-icon { font-size: 56px; margin-bottom: 12px; } | |
| .es-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; } | |
| .es-sub { font-size: 14px; color: var(--text-light); margin-bottom: 20px; } | |
| /* ---------------------------------------------------------------- | |
| DISEASE LIBRARY | |
| ---------------------------------------------------------------- */ | |
| .library-grid { display: flex; flex-direction: column; gap: 28px; } | |
| .lib-card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--card-shadow); overflow: hidden; } | |
| .lib-card-header { display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--border); } | |
| .lib-healthy .lib-card-header { background: linear-gradient(135deg, #E8F5E9, #F1F8E9); } | |
| .lib-late .lib-card-header { background: linear-gradient(135deg, #FFEBEE, #FFF8F8); } | |
| .lib-early .lib-card-header { background: linear-gradient(135deg, #FFF3E0, #FFFBF5); } | |
| .lib-wilt .lib-card-header { background: linear-gradient(135deg, #F3E5F5, #FAF5FF); } | |
| .lib-emoji { font-size: 40px; } | |
| .lib-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 2px; } | |
| .lib-sci { font-size: 14px; color: var(--text-light); font-style: italic; } | |
| .lib-badge { margin-left: auto; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; } | |
| .lb-healthy { background: var(--green-xpale); color: var(--green); } | |
| .lb-late { background: var(--red-pale); color: var(--red); } | |
| .lb-early { background: var(--orange-pale); color: var(--orange); } | |
| .lb-wilt { background: var(--purple-pale); color: var(--purple); } | |
| .lib-body { padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } | |
| .lib-section h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; } | |
| .lib-section p { font-size: 13px; color: var(--text-mid); line-height: 1.7; } | |
| .lib-section ul { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; } | |
| .lib-section li { font-size: 13px; color: var(--text-mid); line-height: 1.6; } | |
| .lib-section strong { color: var(--text); } | |
| .lib-red { background: var(--red-pale); border-radius: var(--radius-sm); padding: 16px; } | |
| .lib-orange { background: var(--orange-pale); border-radius: var(--radius-sm); padding: 16px; } | |
| .lib-purple { background: var(--purple-pale); border-radius: var(--radius-sm); padding: 16px; } | |
| /* ---------------------------------------------------------------- | |
| TIPS PAGE | |
| ---------------------------------------------------------------- */ | |
| .tips-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; } | |
| .tips-tab { | |
| padding: 8px 18px; background: var(--card-bg); border: 1.5px solid var(--border); | |
| border-radius: 30px; font-size: 13px; font-weight: 600; | |
| font-family: var(--font-body); color: var(--text-mid); cursor: pointer; transition: all .2s; | |
| } | |
| .tips-tab.active { background: var(--green); color: #fff; border-color: var(--green); } | |
| .tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; } | |
| .tip-card { | |
| background: var(--card-bg); border-radius: var(--radius); padding: 22px; | |
| border: 1px solid var(--border); box-shadow: var(--card-shadow); | |
| transition: transform .2s; cursor: default; | |
| } | |
| .tip-card:hover { transform: translateY(-3px); } | |
| .tc-emoji { font-size: 32px; margin-bottom: 12px; } | |
| .tc-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; } | |
| .tc-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; } | |
| .tc-body { font-size: 13px; color: var(--text-mid); line-height: 1.7; } | |
| /* ---------------------------------------------------------------- | |
| REPORTS PAGE | |
| ---------------------------------------------------------------- */ | |
| .reports-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; } | |
| .reports-list { display: flex; flex-direction: column; gap: 14px; } | |
| .report-item { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 18px 20px; border: 1px solid var(--border); | |
| display: flex; align-items: center; gap: 16px; box-shadow: var(--card-shadow); | |
| } | |
| .report-icon { font-size: 28px; } | |
| .report-info { flex: 1; } | |
| .report-title { font-size: 15px; font-weight: 700; } | |
| .report-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; } | |
| .reports-summary { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 20px; border: 1px solid var(--border); height: fit-content; box-shadow: var(--card-shadow); | |
| } | |
| .reports-summary h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; } | |
| .summary-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; } | |
| .summary-item:last-child { border-bottom: none; } | |
| .summary-content { } | |
| /* ---------------------------------------------------------------- | |
| PROFILE PAGE | |
| ---------------------------------------------------------------- */ | |
| .profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; } | |
| .profile-card { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 28px; text-align: center; border: 1px solid var(--border); | |
| box-shadow: var(--card-shadow); height: fit-content; | |
| } | |
| .profile-avatar-big { | |
| width: 80px; height: 80px; border-radius: 50%; | |
| background: var(--green); color: #fff; font-size: 28px; font-weight: 700; | |
| display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; | |
| } | |
| .profile-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 6px; } | |
| .profile-id-badge { display: inline-block; background: var(--green-xpale); color: var(--green); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; } | |
| .profile-location { font-size: 13px; color: var(--text-light); margin-bottom: 20px; } | |
| .profile-form-card, .settings-card { | |
| background: var(--card-bg); border-radius: var(--radius); | |
| padding: 24px; border: 1px solid var(--border); box-shadow: var(--card-shadow); | |
| height: fit-content; | |
| } | |
| .profile-form-card h3, .settings-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; } | |
| .setting-row { | |
| display: flex; justify-content: space-between; align-items: center; | |
| padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; | |
| } | |
| .setting-row:last-of-type { border-bottom: none; } | |
| .setting-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font-body); font-size: 13px; } | |
| /* Toggle switch */ | |
| .toggle { position: relative; display: inline-block; width: 46px; height: 26px; } | |
| .toggle input { opacity: 0; width: 0; height: 0; } | |
| .slider { | |
| position: absolute; inset: 0; background: var(--border); border-radius: 26px; | |
| cursor: pointer; transition: .3s; | |
| } | |
| .slider::before { | |
| content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; | |
| background: #fff; left: 3px; top: 3px; transition: .3s; box-shadow: 0 1px 4px rgba(0,0,0,.2); | |
| } | |
| .toggle input:checked + .slider { background: var(--green); } | |
| .toggle input:checked + .slider::before { transform: translateX(20px); } | |
| /* ---------------------------------------------------------------- | |
| ABOUT PAGE | |
| ---------------------------------------------------------------- */ | |
| .about-layout { display: flex; flex-direction: column; gap: 20px; max-width: 700px; } | |
| .about-hero-card { | |
| background: var(--green); border-radius: var(--radius); padding: 40px; | |
| text-align: center; color: #fff; | |
| } | |
| .about-logo { font-size: 56px; margin-bottom: 12px; } | |
| .about-hero-card h2 { font-family: var(--font-display); font-size: 32px; margin-bottom: 8px; } | |
| .about-hero-card p { font-size: 15px; color: rgba(255,255,255,.8); } | |
| .about-version { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.5); } | |
| .about-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--card-shadow); } | |
| .about-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; } | |
| .about-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 8px; } | |
| .about-link { display: inline-block; background: var(--green-xpale); color: var(--green); padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: underline; } | |
| .about-team { display: flex; flex-direction: column; gap: 10px; } | |
| .at-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; } | |
| .at-row:last-child { border-bottom: none; } | |
| .at-row strong { font-weight: 700; } | |
| .at-row span { color: var(--text-light); font-size: 12px; } | |
| /* ================================================================ | |
| RESPONSIVE | |
| ================================================================ */ | |
| @media (max-width: 1100px) { | |
| .dash-row { grid-template-columns: 1fr 1fr; } | |
| .dash-row .weather-card { grid-column: 1/-1; } | |
| .lib-body { grid-template-columns: 1fr; } | |
| } | |
| @media (max-width: 900px) { | |
| .scan-layout { grid-template-columns: 1fr; } | |
| .profile-layout { grid-template-columns: 1fr; } | |
| .reports-layout { grid-template-columns: 1fr; } | |
| .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); } | |
| .sidebar.open { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,.3); } | |
| .sb-close { display: block; } | |
| .topbar-menu { display: block; } | |
| .hero { flex-direction: column; padding: 40px 24px; min-height: auto; gap: 40px; text-align: center; } | |
| .hero-stats { justify-content: center; } | |
| .landing-nav { padding: 0 24px; } | |
| .nav-links, .nav-actions { display: none; } | |
| .hamburger { display: block; margin-left: auto; } | |
| .section { padding: 60px 24px; } | |
| .steps-row { flex-direction: column; } | |
| .step-arrow { display: none; } | |
| } | |
| @media (max-width: 600px) { | |
| .stats-grid { grid-template-columns: 1fr 1fr; } | |
| .dash-row { grid-template-columns: 1fr; } | |
| .quick-actions { grid-template-columns: 1fr 1fr; } | |
| .diseases-grid { grid-template-columns: 1fr; } | |
| .features-grid { grid-template-columns: 1fr; } | |
| .team-grid { grid-template-columns: 1fr 1fr; } | |
| .tech-grid { grid-template-columns: repeat(4, 1fr); } | |
| .app-page { padding: 16px; } | |
| } | |
| /* Print Styles */ | |
| @media print { | |
| .sidebar, .app-topbar, .result-actions-row { display: none ; } | |
| .app-main { overflow: visible; } | |
| .app-page { overflow: visible; } | |
| body { background: #fff; } | |
| } | |