:root { --main-color: #17cbb3; --main-color-dark: #14b09e; --main-color-light: #e8f8f6; --main-gradient: #17cbb3; --shadow: 0 10px 30px rgba(0, 0, 0, 0.08); --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.07); --border: 1px solid rgba(23, 203, 179, 0.2); --radius: 16px; --transition: all 0.3s ease; } body { font-family: 'Poppins', Arial, sans-serif; background: #f9fafb; margin: 0; padding-top: 70px; min-height: 100vh; color: #2c3e50; line-height: 1.6; overflow-y: auto; /* Bisa di-scroll, tapi scrollbar tetap hilang */ } body::-webkit-scrollbar, html::-webkit-scrollbar { display: none; } html { scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE/Edge */ } /* Hilangkan box biru saat tap di mobile */ button, .btn, input, .form-input, a, .navbar-link, .navbar-toggle, .close-faq { -webkit-tap-highlight-color: transparent; } .navbar { position: fixed; top: 0; left: 0; width: 100%; background: var(--main-color); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); z-index: 1000; height: 65px; box-sizing: border-box; transition: var(--transition); } .navbar-brand { font-weight: 700; font-size: 1.4em; color: white; letter-spacing: -0.5px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .navbar-menu { display: flex; list-style: none; margin: 0; padding: 0; margin-left: auto; margin-right: 15px; gap: 18px; /* Tambahkan gap agar jarak antar menu konsisten */ } .navbar-item { margin: 0; /* Hapus margin, gunakan gap saja */ } .navbar-link { text-decoration: none; color: white; font-size: 0.95em; padding: 8px 16px; border-radius: 30px; transition: var(--transition); font-weight: 500; letter-spacing: 0.3px; position: relative; } .navbar-link:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); } .navbar-toggle { display: none; flex-direction: column; cursor: pointer; } .bar { width: 26px; height: 3px; background-color: #fff; margin: 2.5px 0; border-radius: 5px; transition: var(--transition); } /* --- Animasi garis navbar menjadi X saat aktif (mobile) --- */ .navbar-toggle.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); } .navbar-toggle.active .bar:nth-child(2) { opacity: 0; } .navbar-toggle.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); } @media (max-width: 600px) { .navbar-menu { display: none; position: absolute; top: 65px; left: 0; width: 100%; background: var(--main-color); flex-direction: column; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 10px 0; z-index: 1000; gap: 18px; /* Samakan gap di mobile */ opacity: 0; transform: translateY(-24px); transition: opacity 0.3s cubic-bezier(.42,0,.58,1), transform 0.3s cubic-bezier(.42,0,.58,1); pointer-events: none; } .navbar-menu.active { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; } .navbar-item { margin: 0; /* Hapus margin, gunakan gap saja */ } .navbar-toggle { display: flex; transition: transform 0.3s; } .navbar-toggle.active { transform: rotate(90deg); } .navbar-toggle.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); } .navbar-toggle.active .bar:nth-child(2) { opacity: 0; } .navbar-toggle.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); } } .login-container { max-width: 480px; width: 100%; box-sizing: border-box; margin: 40px auto 60px auto; background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--card-shadow); transition: var(--transition); border: var(--border); animation: fadeIn 0.5s ease-out; } .login-container:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); transform: translateY(-3px); } .login-header { text-align: center; margin-bottom: 30px; } .login-header h1 { color: #2c3e50; font-size: 1.8em; font-weight: 700; margin-bottom: 10px; } .login-logo { width: 80px; height: 80px; border-radius: 50%; background: var(--main-color); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; color: white; font-size: 2.5em; box-shadow: 0 5px 15px rgba(23, 203, 179, 0.3); position: relative; overflow: hidden; } .login-logo::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%); border-radius: 50%; } .form-group { margin-bottom: 22px; } .form-label { display: block; margin-bottom: 8px; font-weight: 600; color: #34495e; font-size: 0.95em; letter-spacing: 0.3px; } .form-input { width: 100%; padding: 12px 16px; border: 1px solid rgba(26, 188, 156, 0.2); border-radius: 12px; font-size: 1em; font-family: 'Poppins', Arial, sans-serif; background: #fff; transition: var(--transition); color: #2c3e50; box-shadow: 0 1px 3px rgba(0,0,0,0.03) inset; box-sizing: border-box; } .form-input:focus { border-color: var(--main-color); outline: none; box-shadow: 0 0 0 3px rgba(23, 203, 179, 0.1); } .btn { display: block; width: 100%; padding: 14px; background: var(--main-color); color: #fff; border: none; border-radius: 12px; text-align: center; text-decoration: none; font-size: 1.1em; font-weight: 600; transition: var(--transition); font-family: 'Poppins', Arial, sans-serif; box-shadow: 0 4px 10px rgba(23, 203, 179, 0.2); letter-spacing: 0.3px; cursor: pointer; margin-top: 10px; } .btn:hover { transform: translateY(-2px); box-shadow: 0 7px 15px rgba(23, 203, 179, 0.3); } .btn:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(23, 203, 179, 0.2); } .alert { color: #e74c3c; background: #fdeaea; border-radius: 12px; border: 1px solid rgba(231, 76, 60, 0.2); padding: 12px 16px; margin-bottom: 20px; text-align: center; font-weight: 500; font-size: 0.95em; box-shadow: 0 2px 5px rgba(231, 76, 60, 0.08); display: flex; align-items: center; justify-content: center; } .alert i { margin-right: 8px; font-size: 1.1em; } .text-center { text-align: center; } .link { color: var(--main-color); text-decoration: none; transition: var(--transition); font-weight: 500; } .link:hover { color: var(--main-color-dark); text-decoration: underline; } .forgot-password { text-align: right; margin-top: 8px; font-size: 0.9em; } .register-link { margin-top: 30px; font-size: 0.95em; color: #7f8c8d; } /* Custom checkbox for 'Ingat saya' */ .remember-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.97em; user-select: none; -webkit-tap-highlight-color: transparent !important; tap-highlight-color: transparent !important; outline: none !important; box-shadow: none !important; } .remember-checkbox { appearance: none; width: 20px; height: 20px; border: 2px solid var(--main-color); border-radius: 6px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; position: relative; outline: none; cursor: pointer; } .remember-checkbox:checked { background: var(--main-color); border-color: var(--main-color-dark); } .remember-checkbox:checked::after { content: '\2713'; color: #fff; font-size: 1.1em; position: absolute; left: 3px; top: 0px; } .remember-checkbox:focus, .remember-checkbox:active, .remember-checkbox:focus-visible, .remember-checkbox:target { outline: none !important; box-shadow: none !important; } .remember-checkbox::-webkit-focus-inner, .remember-checkbox::-moz-focus-inner, .remember-checkbox::-ms-input { outline: none !important; box-shadow: none !important; border: 0 !important; } @media (max-width: 600px) { .remember-checkbox-label { font-size: 0.95em; } .remember-checkbox { width: 18px; height: 18px; } } @media (max-width: 600px) { .login-container { max-width: 92%; padding: 30px 20px; border-radius: 14px; margin: 20px auto 40px auto; } .login-logo { width: 70px; height: 70px; font-size: 2em; } .login-header h1 { font-size: 1.5em; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .login-logo i { animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } /* CS Popup Styles */ .cs-popup { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100vw; height: 100vh; overflow: auto; background: rgba(44, 62, 80, 0.25); animation: fadeIn 0.2s; } .cs-popup-content { background: #fff; margin: 80px auto; padding: 32px 28px 24px 28px; border-radius: 16px; max-width: 350px; box-shadow: 0 8px 32px rgba(44,62,80,0.13); position: relative; animation: fadeIn 0.3s; } .cs-popup-close { position: absolute; top: 12px; right: 18px; font-size: 1.5em; color: #888; cursor: pointer; font-weight: bold; transition: color 0.2s; } .cs-popup-close:hover { color: #e74c3c; } .cs-popup h2 { margin-top: 0; margin-bottom: 10px; font-size: 1.3em; color: #17cbb3; font-weight: 700; } .cs-popup ul { padding-left: 18px; margin: 0; } .cs-popup ul li { margin-bottom: 10px; font-size: 1em; } .cs-popup ul li i { margin-right: 7px; color: #17cbb3; } @media (max-width: 600px) { .cs-popup-content { max-width: 92vw; padding: 22px 10px 16px 10px; } } /* FAQ Popup Styles */ .faq-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 12000; justify-content: center; align-items: center; } .faq-modal[style*="display: flex"] { display: flex !important; } .faq-content { position: relative; background: #fff; border-radius: var(--radius); max-width: 95vw; width: 420px; padding: 35px 30px; box-shadow: var(--card-shadow); text-align: left; color: #2c3e50; font-family: 'Poppins', sans-serif; animation: popupIn 0.4s cubic-bezier(.42,0,.58,1); max-height: 80vh; overflow-y: auto; border: var(--border); } .faq-content h2 { margin-top: 0; color: var(--main-color); font-size: 1.5em; margin-bottom: 16px; text-align: center; } .close-faq { position: absolute; right: 20px; top: 20px; cursor: pointer; font-size: 24px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--main-color); z-index: 1; transition: var(--transition); } .close-faq:hover { transform: rotate(90deg); color: var(--main-color-dark); } @keyframes popupIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } } @media (max-width: 600px) { .faq-content { padding: 25px 12px; border-radius: 14px; width: 95vw; } } /* Chat Support Styles */ .chat-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 11500; pointer-events: none; overflow: hidden; /* Prevent scrolling */ } .chat-container { position: fixed; background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); border: var(--border); display: flex; flex-direction: column; overflow: hidden; pointer-events: auto; animation: chatSlideIn 0.3s ease-out; } .chat-header { background: var(--main-color); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius) var(--radius) 0 0; } .chat-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1em; } .close-chat { cursor: pointer; font-size: 20px; width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); } .close-chat:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); } .chat-body { flex: 1; padding: 20px; background: #f8f9fa; overflow-y: auto; overflow-x: hidden; /* Prevent horizontal scrolling */ max-height: 100%; } .chat-messages { min-height: 100px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; overflow-anchor: none; /* Prevent auto-scroll jumping */ } .chat-footer { padding: 15px 20px; background: white; border-top: 1px solid rgba(0,0,0,0.05); border-radius: 0 0 var(--radius) var(--radius); } .chat-input-container { display: flex; gap: 8px; align-items: center; width: 100%; } .chat-input { flex: 1; min-width: 0; padding: 10px 15px; border: 1px solid rgba(23, 203, 179, 0.2); border-radius: 25px; font-size: 0.95em; font-family: 'Poppins', Arial, sans-serif; background: #fff; transition: var(--transition); outline: none; } .chat-input:focus { border-color: var(--main-color); box-shadow: 0 0 0 3px rgba(23, 203, 179, 0.1); } .chat-send-btn { background: var(--main-color); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; min-width: 40px; max-width: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); font-size: 0.9em; flex-shrink: 0; flex-grow: 0; } .chat-send-btn:hover { background: var(--main-color-dark); transform: translateY(-1px); } .chat-menu-options { display: flex; flex-direction: column; gap: 8px; } .chat-menu-btn { background: var(--main-color-light); color: var(--main-color-dark); border: 1px solid rgba(23, 203, 179, 0.3); border-radius: 8px; padding: 8px 12px; font-size: 0.9em; font-weight: 500; cursor: pointer; transition: var(--transition); text-align: left; font-family: 'Poppins', Arial, sans-serif; } .chat-menu-btn:hover { background: var(--main-color); color: white; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(23, 203, 179, 0.2); } .typing-dots { display: flex; align-items: center; gap: 4px; } .typing-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--main-color); animation: typingBounce 1.4s infinite ease-in-out; } .typing-dot:nth-child(1) { animation-delay: -0.32s; } .typing-dot:nth-child(2) { animation-delay: -0.16s; } .typing-dot:nth-child(3) { animation-delay: 0s; } @keyframes typingBounce { 0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; } 40% { transform: scale(1.2); opacity: 1; } } @keyframes chatSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* Desktop styles */ @media (min-width: 769px) { .chat-container { bottom: 20px; right: 20px; width: 350px; height: 450px; max-height: calc(100vh - 40px); } } /* Mobile styles */ @media (max-width: 768px) { .chat-modal { background: rgba(0,0,0,0.3); pointer-events: auto; overflow: hidden; /* Prevent background scrolling on mobile */ touch-action: none; /* Prevent touch scrolling on background */ } .chat-container { bottom: 15px; left: 15px; right: 15px; width: auto; height: 70vh; max-height: 500px; touch-action: auto; /* Allow touch scrolling within chat */ } .chat-body { padding: 15px; -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */ } .chat-send-btn { width: 36px; height: 36px; min-width: 36px; max-width: 36px; font-size: 0.85em; } } @media (max-width: 480px) { .chat-container { height: 65vh; max-height: 450px; bottom: 10px; left: 10px; right: 10px; } .chat-footer { padding: 10px 15px; } .chat-input-container { gap: 5px; } .chat-input { padding: 8px 10px; font-size: 16px; } .chat-send-btn { width: 32px; height: 32px; min-width: 32px; max-width: 32px; font-size: 0.8em; } } @media (max-width: 360px) { .chat-container { bottom: 8px; left: 8px; right: 8px; height: 60vh; max-height: 400px; } .chat-footer { padding: 8px 12px; } .chat-input-container { gap: 4px; } .chat-input { padding: 6px 8px; font-size: 14px; } .chat-send-btn { width: 28px; height: 28px; min-width: 28px; max-width: 28px; font-size: 0.75em; } } /* Chat Support Button Positioning */ .faq-icon-top { position: fixed; bottom: 24px; right: 24px; background: var(--main-color); color: #fff; padding: 12px 18px; border-radius: 25px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 4px 10px rgba(23, 203, 179, 0.2); z-index: 11000; transition: var(--transition); font-size: 0.95em; font-weight: 600; letter-spacing: 0.3px; border: none; font-family: 'Poppins', Arial, sans-serif; white-space: nowrap; } .faq-icon-top:hover { transform: translateY(-2px); box-shadow: 0 7px 15px rgba(23, 203, 179, 0.3); } .faq-icon-top i { font-size: 1.1em; } .faq-icon-top span { display: inline-block; } @media (max-width: 600px) { .faq-icon-top { padding: 10px 14px; bottom: 16px; right: 16px; font-size: 0.9em; gap: 6px; } .faq-icon-top i { font-size: 1em; } .faq-icon-top span { display: inline-block; } } @media (max-width: 480px) { .faq-icon-top { padding: 8px 12px; font-size: 0.85em; gap: 5px; } }