Spaces:
Sleeping
Sleeping
| /* RESET & VARIABLES */ | |
| * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } | |
| :root { | |
| --blue-dark: #001f3f; --blue-main: #0052D4; --blue-light: #4D8BF5; | |
| --yellow-dark: #DAA520; --yellow-main: #FFD700; --yellow-light: #FFFACD; | |
| --white: #ffffff; --text: #333; --danger: #ff4757; --success: #2ed573; | |
| } | |
| body { background-color: var(--blue-dark); color: var(--white); overflow-x: hidden; } | |
| /* BACKGROUND IKLAN PRODUK (SEMBUNYI SAAT AUTH/LOGIN) */ | |
| .ads-container { display: none ; } | |
| /* LOADING SCREEN (POLKADOT) */ | |
| .polka-dot-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--blue-main); background-image: radial-gradient(var(--yellow-main) 20%, transparent 20%), radial-gradient(var(--yellow-main) 20%, transparent 20%); background-position: 0 0, 25px 25px; background-size: 50px 50px; z-index: 1000; display: flex; justify-content: center; align-items: center; } | |
| .loading-content { background: rgba(0, 31, 63, 0.9); padding: 40px; border-radius: 20px; text-align: center; border: 4px solid var(--yellow-main); } | |
| .logo-big { font-size: 60px; margin-bottom: 10px; } | |
| .loader-bar { width: 200px; height: 10px; background: #fff; border-radius: 5px; margin: 20px auto; overflow: hidden; } | |
| .loader-fill { width: 0%; height: 100%; background: var(--yellow-main); animation: load 2s ease-in-out forwards; } | |
| @keyframes load { to { width: 100%; } } | |
| /* AUTH PAGES */ | |
| .page { position: relative; z-index: 1; } | |
| .hidden { display: none ; } | |
| #auth-page { | |
| position: relative; | |
| min-height: 100vh; | |
| width: 100%; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 24px; | |
| background: radial-gradient(circle at center, #0a2e5c 0%, var(--blue-dark) 100%); | |
| overflow-y: auto; | |
| } | |
| .auth-box { | |
| position: relative; | |
| width: 100%; | |
| max-width: 420px; | |
| background: rgba(0, 31, 63, 0.65); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border: 1px solid rgba(255, 215, 0, 0.25); | |
| padding: 40px 32px; | |
| border-radius: 24px; | |
| box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 215, 0, 0.15); | |
| z-index: 5; | |
| transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .auth-box:hover { | |
| transform: translateY(-4px); | |
| box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(255, 215, 0, 0.25); | |
| } | |
| .tabs { | |
| display: flex; | |
| margin-bottom: 24px; | |
| background: rgba(0, 0, 0, 0.4); | |
| border-radius: 14px; | |
| padding: 4px; | |
| border: 1px solid rgba(255, 255, 255, 0.05); | |
| } | |
| .tab-btn { | |
| flex: 1; | |
| padding: 12px; | |
| background: none; | |
| border: none; | |
| color: rgba(255, 255, 255, 0.65); | |
| font-size: 15px; | |
| cursor: pointer; | |
| border-radius: 10px; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| font-weight: 700; | |
| } | |
| .tab-btn.active { | |
| background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-main)); | |
| color: var(--blue-dark); | |
| box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35); | |
| } | |
| .auth-form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .auth-form input { | |
| padding: 14px 16px; | |
| border-radius: 12px; | |
| border: 1px solid rgba(255, 215, 0, 0.15); | |
| background: rgba(0, 0, 0, 0.45); | |
| color: #fff; | |
| font-size: 14px; | |
| outline: none; | |
| transition: all 0.3s ease; | |
| } | |
| .auth-form input:focus { | |
| border-color: var(--yellow-main); | |
| background: rgba(0, 0, 0, 0.6); | |
| box-shadow: 0 0 15px rgba(255, 215, 0, 0.25); | |
| } | |
| .auth-form input::placeholder { | |
| color: rgba(255, 255, 255, 0.35); | |
| } | |
| .btn-primary { | |
| padding: 14px; | |
| background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-main)); | |
| color: var(--blue-dark); | |
| font-weight: 800; | |
| border: none; | |
| border-radius: 12px; | |
| cursor: pointer; | |
| font-size: 16px; | |
| box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25); | |
| transition: all 0.3s ease; | |
| } | |
| .btn-primary:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45); | |
| } | |
| .btn-primary:active { | |
| transform: scale(0.98); | |
| } | |
| .error-text { | |
| color: var(--danger); | |
| font-size: 13px; | |
| text-align: center; | |
| font-weight: 600; | |
| min-height: 20px; | |
| } | |
| /* FLOATING ADS BADGES (ORGANIC SCATTERED PLACEMENT) */ | |
| .auth-float { | |
| position: absolute; | |
| z-index: 1; | |
| padding: 12px 20px; | |
| border-radius: 14px; | |
| background: rgba(0, 82, 212, 0.25); | |
| border: 1px solid rgba(255, 215, 0, 0.35); | |
| box-shadow: 0 8px 32px 0 rgba(0, 82, 212, 0.2), 0 0 15px rgba(255, 215, 0, 0.1); | |
| backdrop-filter: blur(8px); | |
| -webkit-backdrop-filter: blur(8px); | |
| font-size: 13px; | |
| font-weight: bold; | |
| color: var(--white); | |
| white-space: nowrap; | |
| text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); | |
| transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); | |
| animation: authFloat 6s ease-in-out infinite; | |
| } | |
| .auth-float:hover { | |
| transform: translateY(-5px) scale(1.05); | |
| border-color: var(--yellow-main); | |
| box-shadow: 0 10px 40px rgba(255, 215, 0, 0.25); | |
| cursor: pointer; | |
| z-index: 10; | |
| } | |
| /* Specific Center-based offsets for perfect symmetry and vertical distribution */ | |
| #float1 { left: calc(50vw - 480px); top: 18vh; animation-delay: 0s; } | |
| #auth-detected-count { left: calc(50vw - 530px); top: 48vh; animation-delay: 1.2s; } | |
| #auth-accuracy-text { left: calc(50vw - 460px); top: 75vh; animation-delay: 2.4s; } | |
| #float4 { left: calc(50vw + 260px); top: 22vh; animation-delay: 0.6s; } | |
| #float5 { left: calc(50vw + 310px); top: 52vh; animation-delay: 1.8s; } | |
| #float6 { left: calc(50vw + 240px); top: 78vh; animation-delay: 3s; } | |
| @keyframes authFloat { | |
| 0%, 100% { transform: translateY(0) rotate(0deg); } | |
| 50% { transform: translateY(-15px) rotate(1deg); } | |
| } | |
| /* | |
| PREMIUM RESPONSIVE HYBRID DESIGN: | |
| When screen is narrow (< 1150px), instead of hiding or looking ugly, | |
| they gently slide behind the login box as gorgeous glowing digital dust! | |
| */ | |
| @media (max-width: 1150px) { | |
| .auth-float { | |
| z-index: 1; /* Di belakang auth-box transparan */ | |
| opacity: 0.55; /* Lebih cerah agar terbaca jelas */ | |
| backdrop-filter: blur(4px); | |
| -webkit-backdrop-filter: blur(4px); | |
| border-color: rgba(255, 215, 0, 0.2); | |
| } | |
| /* Gunakan koordinat sisi luar agar tidak terpotong tepi layar HP */ | |
| #float1 { left: 4vw; top: 12vh; } | |
| #auth-detected-count { left: 1vw; top: 38vh; } | |
| #auth-accuracy-text { left: 6vw; top: 68vh; } | |
| #float4 { right: 4vw; left: auto; top: 22vh; } | |
| #float5 { right: 1vw; left: auto; top: 52vh; } | |
| #float6 { right: 6vw; left: auto; top: 82vh; } | |
| } | |
| /* MAIN APP LAYOUT */ | |
| #main-app { display: flex; height: 100vh; } | |
| .sidebar { width: 220px; background: var(--blue-main); padding: 20px 0; display: flex; flex-direction: column; border-right: 2px solid var(--yellow-dark); } | |
| .logo-small { font-size: 30px; text-align: center; margin-bottom: 30px; } | |
| .sidebar ul { list-style: none; flex: 1; } | |
| .nav-item { padding: 15px 25px; cursor: pointer; transition: 0.3s; border-left: 4px solid transparent; } | |
| .nav-item:hover, .nav-item.active { background: rgba(255,255,255,0.1); border-left: 4px solid var(--yellow-main); color: var(--yellow-main); } | |
| .btn-logout { margin: 20px; padding: 10px; background: var(--danger); color: white; border: none; border-radius: 8px; cursor: pointer; } | |
| .content { flex: 1; padding: 30px; overflow-y: auto; margin: 0 160px; } /* Margin untuk ruang iklan */ | |
| header { margin-bottom: 30px; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; } | |
| /* SECTIONS */ | |
| .section { display: none; } | |
| .section.active { display: block; animation: fadeIn 0.5s; } | |
| @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } | |
| .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } | |
| .stat-card { padding: 20px; border-radius: 10px; text-align: center; color: var(--blue-dark); } | |
| .stat-card.blue { background: var(--blue-light); } | |
| .stat-card.yellow { background: var(--yellow-main); } | |
| .stat-card h3 { font-size: 28px; margin-bottom: 5px; } | |
| .info-box { background: rgba(255,255,255,0.1); padding: 20px; border-radius: 10px; border-left: 4px solid var(--yellow-main); } | |
| /* UPLOAD & SCAN */ | |
| .upload-container { display: flex; flex-direction: column; align-items: center; gap: 20px; } | |
| .upload-box { width: 100%; max-width: 500px; height: 250px; border: 3px dashed var(--yellow-main); border-radius: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s; background: rgba(0,0,0,0.2); } | |
| .upload-box:hover { background: rgba(255, 215, 0, 0.1); border-color: var(--yellow-light); } | |
| .upload-icon { font-size: 50px; margin-bottom: 10px; } | |
| .btn-scan { padding: 15px 60px; font-size: 18px; background: linear-gradient(45deg, var(--yellow-dark), var(--yellow-main)); color: var(--blue-dark); border: none; border-radius: 50px; font-weight: bold; cursor: pointer; box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4); transition: 0.3s; } | |
| .btn-scan:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6); } | |
| .btn-scan:active { transform: scale(0.95); } | |
| /* RESULTS */ | |
| .result-box { margin-top: 30px; padding: 25px; border-radius: 15px; border: 2px solid; animation: slideIn 0.5s; } | |
| @keyframes slideIn { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } | |
| .result-box.ai { background: rgba(255, 71, 87, 0.1); border-color: var(--danger); } | |
| .result-box.real { background: rgba(46, 213, 115, 0.1); border-color: var(--success); } | |
| .result-title { font-size: 24px; margin-bottom: 15px; display: flex; justify-content: space-between; } | |
| .details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } | |
| .detail-item { background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; } | |
| .detail-label { font-size: 12px; color: rgba(255,255,255,0.6); } | |
| .detail-value { font-size: 16px; font-weight: bold; color: var(--yellow-main); margin-top: 5px; } | |
| /* HISTORY TABLE */ | |
| .history-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: rgba(255,255,255,0.05); } | |
| .history-table th, .history-table td { padding: 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); } | |
| .history-table th { background: var(--blue-main); color: var(--yellow-main); } | |
| .btn-refresh { padding: 10px 20px; background: var(--yellow-main); color: var(--blue-dark); border: none; border-radius: 8px; cursor: pointer; font-weight: bold; margin-bottom: 10px; } | |
| /* PARTIKEL ANIMASI (DIBUAT OLEH JAVASCRIPT) */ | |
| .click-particle { position: fixed; pointer-events: none; border-radius: 50%; z-index: 9999; animation: particleFly 0.8s ease-out forwards; } | |
| @keyframes particleFly { to { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; } } | |
| /* LANDING PAGE SPECIFIC STYLES */ | |
| .landing-header { | |
| width: 100%; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 25px 20px; | |
| position: absolute; | |
| top: 0; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| z-index: 10; | |
| } | |
| .short-text { display: none; } | |
| .landing-logo { | |
| font-size: 26px; | |
| font-weight: 800; | |
| color: var(--yellow-main); | |
| text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); | |
| } | |
| .btn-login-trigger { | |
| padding: 12px 24px; | |
| background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-main)); | |
| color: var(--blue-dark); | |
| font-weight: 800; | |
| border: none; | |
| border-radius: 12px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25); | |
| transition: all 0.3s ease; | |
| } | |
| .btn-login-trigger:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45); | |
| } | |
| .landing-container { | |
| display: grid; | |
| grid-template-columns: 1.1fr 0.9fr; | |
| gap: 40px; | |
| width: 100%; | |
| max-width: 1200px; | |
| margin: 110px auto 40px auto; | |
| padding: 0 20px; | |
| z-index: 5; | |
| align-items: start; | |
| } | |
| .landing-info-card, .landing-scan-card { | |
| background: rgba(0, 31, 63, 0.6); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border: 1px solid rgba(255, 215, 0, 0.2); | |
| padding: 40px; | |
| border-radius: 28px; | |
| box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 82, 212, 0.15); | |
| } | |
| .landing-title { | |
| font-size: 38px; | |
| font-weight: 800; | |
| color: var(--white); | |
| line-height: 1.25; | |
| margin-bottom: 15px; | |
| background: linear-gradient(135deg, #fff 30%, var(--yellow-light) 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .landing-subtitle { | |
| font-size: 15px; | |
| color: rgba(255, 255, 255, 0.7); | |
| line-height: 1.6; | |
| margin-bottom: 35px; | |
| } | |
| .landing-stats-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 16px; | |
| margin-bottom: 35px; | |
| } | |
| .landing-stat-card { | |
| background: rgba(255, 255, 255, 0.03); | |
| border: 1px solid rgba(255, 255, 255, 0.08); | |
| padding: 18px; | |
| border-radius: 18px; | |
| text-align: center; | |
| transition: all 0.3s ease; | |
| } | |
| .landing-stat-card:hover { | |
| background: rgba(255, 215, 0, 0.03); | |
| border-color: rgba(255, 215, 0, 0.15); | |
| } | |
| .landing-stat-card h3 { | |
| font-size: 30px; | |
| font-weight: 800; | |
| color: var(--yellow-main); | |
| margin-bottom: 6px; | |
| text-shadow: 0 0 10px rgba(255, 215, 0, 0.2); | |
| } | |
| .landing-stat-card p { | |
| font-size: 12px; | |
| color: rgba(255, 255, 255, 0.55); | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .landing-features { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 22px; | |
| } | |
| .feature-item { | |
| display: flex; | |
| gap: 18px; | |
| align-items: flex-start; | |
| } | |
| .feature-icon { | |
| font-size: 26px; | |
| background: rgba(255, 215, 0, 0.1); | |
| padding: 8px; | |
| border-radius: 12px; | |
| border: 1px solid rgba(255, 215, 0, 0.2); | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .feature-item h4 { | |
| color: var(--yellow-main); | |
| font-size: 15px; | |
| font-weight: 700; | |
| margin-bottom: 5px; | |
| } | |
| .feature-item p { | |
| font-size: 13px; | |
| color: rgba(255, 255, 255, 0.6); | |
| line-height: 1.5; | |
| } | |
| .scan-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 25px; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.08); | |
| padding-bottom: 15px; | |
| } | |
| .scan-header h3 { | |
| font-size: 20px; | |
| color: var(--white); | |
| } | |
| .quota-badge { | |
| font-size: 12px; | |
| font-weight: 700; | |
| background: rgba(255, 215, 0, 0.15); | |
| color: var(--yellow-main); | |
| padding: 6px 12px; | |
| border-radius: 20px; | |
| border: 1px solid rgba(255, 215, 0, 0.3); | |
| } | |
| .btn-scan-action { | |
| width: 100%; | |
| margin-top: 15px; | |
| padding: 15px; | |
| font-size: 16px; | |
| font-weight: 800; | |
| background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-main)); | |
| color: var(--blue-dark); | |
| border: none; | |
| border-radius: 14px; | |
| cursor: pointer; | |
| box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25); | |
| transition: all 0.3s ease; | |
| } | |
| .btn-scan-action:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45); | |
| } | |
| .btn-scan-action:active { | |
| transform: scale(0.98); | |
| } | |
| /* AUTH MODAL OVERLAY */ | |
| .modal-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 8, 20, 0.85); | |
| backdrop-filter: blur(15px); | |
| -webkit-backdrop-filter: blur(15px); | |
| z-index: 1000; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| opacity: 1; | |
| transition: all 0.3s ease; | |
| } | |
| .modal-overlay.hidden { | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| .close-modal-btn { | |
| position: absolute; | |
| top: 15px; | |
| right: 20px; | |
| font-size: 28px; | |
| font-weight: bold; | |
| color: rgba(255, 255, 255, 0.5); | |
| cursor: pointer; | |
| transition: 0.3s; | |
| } | |
| .close-modal-btn:hover { | |
| color: var(--danger); | |
| } | |
| /* RESPONSIVE LAYOUT FOR LANDING PAGE */ | |
| @media (max-width: 900px) { | |
| .landing-header { | |
| position: relative; | |
| transform: none; | |
| left: 0; | |
| padding: 15px 16px; | |
| width: 100%; | |
| } | |
| .btn-login-trigger { | |
| padding: 7px 12px; | |
| font-size: 12px; | |
| white-space: nowrap; | |
| } | |
| .landing-logo { | |
| font-size: 18px; | |
| gap: 6px; | |
| } | |
| .landing-logo .logo-img { | |
| height: 28px; | |
| } | |
| .full-text { display: none; } | |
| .short-text { display: inline; } | |
| .landing-container { | |
| grid-template-columns: 1fr; | |
| margin-top: 10px; | |
| gap: 20px; | |
| padding: 0 12px 30px 12px; | |
| } | |
| .landing-info-card { padding: 24px 16px; border-radius: 20px; order: 2; } | |
| .landing-scan-card { padding: 24px 16px; border-radius: 20px; order: 1; } | |
| .landing-title { | |
| font-size: 26px; | |
| } | |
| .landing-subtitle { | |
| font-size: 14px; | |
| margin-bottom: 25px; | |
| } | |
| .landing-stats-grid { | |
| grid-template-columns: 1fr 1fr; | |
| gap: 10px; | |
| margin-bottom: 25px; | |
| } | |
| .landing-stat-card { | |
| padding: 12px 8px; | |
| border-radius: 12px; | |
| } | |
| .landing-stat-card h3 { | |
| font-size: 22px; | |
| } | |
| .landing-stat-card p { | |
| font-size: 10px; | |
| } | |
| .feature-icon { | |
| font-size: 20px; | |
| padding: 6px; | |
| } | |
| .feature-item h4 { | |
| font-size: 14px; | |
| } | |
| .feature-item p { | |
| font-size: 12px; | |
| } | |
| .scan-header { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: 10px; | |
| } | |
| .upload-box { | |
| height: 180px; | |
| } | |
| .auth-box { | |
| width: 92%; | |
| padding: 30px 20px; | |
| } | |
| } | |
| /* Very small screens: compact header */ | |
| @media (max-width: 400px) { | |
| .landing-logo span { | |
| display: none; | |
| } | |
| .landing-logo { | |
| font-size: 16px; | |
| } | |
| .btn-login-trigger { | |
| padding: 6px 10px; | |
| font-size: 11px; | |
| } | |
| } | |