: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; scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE/Edge */ } body::-webkit-scrollbar, html::-webkit-scrollbar { display: none; } /* Hilangkan box biru saat tap di mobile */ button, .btn-tosca, .edit-btn, input, a, .navbar-link, .navbar-toggle, .close-faq, .profile-icon { -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); } .profile-icon { font-size: 1.5em; color: white; cursor: pointer; padding: 8px; border-radius: 50%; transition: var(--transition); display: flex; align-items: center; justify-content: center; } .profile-icon:hover, .profile-icon.active { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); } .profile-dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; right: 0; background-color: #fff; min-width: 180px; box-shadow: var(--shadow); z-index: 1; border-radius: var(--radius); overflow: hidden; transform: translateY(10px); opacity: 0; transition: transform 0.3s, opacity 0.2s; border: var(--border); } .dropdown-content.show { display: block; transform: translateY(0); opacity: 1; } .dropdown-content a { color: var(--main-color-dark); padding: 14px 20px; text-decoration: none; display: block; font-size: 0.95em; font-weight: 500; transition: var(--transition); border-bottom: 1px solid rgba(0,0,0,0.03); } .dropdown-content a:last-child { border-bottom: none; } .dropdown-content a:hover { background-color: var(--main-color-light); padding-left: 24px; } .dropdown-content a i { margin-right: 10px; color: var(--main-color); } .container-profile { max-width: 480px; width: 100%; box-sizing: border-box; margin: 30px auto 60px auto; background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--card-shadow); transition: var(--transition); border: var(--border); } .container-profile:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); transform: translateY(-3px); } .profile-header { text-align: center; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid rgba(0,0,0,0.05); } .profile-avatar { width: 95px; height: 95px; border-radius: 50%; background: var(--main-color); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px auto; font-size: 2.7em; color: #fff; box-shadow: 0 5px 15px rgba(23, 203, 179, 0.3); position: relative; overflow: hidden; } .profile-avatar::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%; } .profile-header h2 { color: #2c3e50; margin: 0 0 6px 0; font-size: 1.55em; letter-spacing: 0.5px; font-weight: 700; } .user-role span { background: var(--main-color); color: #fff; padding: 5px 20px; border-radius: 30px; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; display: inline-block; box-shadow: 0 4px 8px rgba(23, 203, 179, 0.2); } .msg-success { color: #17cbb3; background: #eafaf1; border-radius: 12px; border: 1px solid rgba(23, 203, 179, 0.2); padding: 12px 16px; margin-bottom: 20px; text-align: center; font-weight: 500; font-size: 0.95em; box-shadow: 0 2px 5px rgba(23, 203, 179, 0.08); } .msg-error { 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); } .profile-info label { font-weight: 600; color: #34495e; margin-bottom: 6px; display: block; font-size: 0.95em; letter-spacing: 0.3px; } .profile-info input[type="text"] { width: 70%; padding: 12px 16px; border: 1px solid rgba(23, 203, 179, 0.2); border-radius: 12px; margin-right: 8px; margin-bottom: 16px; font-size: 0.95em; 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; } .profile-info input[type="text"]:focus { border-color: var(--main-color); outline: none; box-shadow: 0 0 0 3px rgba(23, 203, 179, 0.1); } .profile-info span { display: block; margin-bottom: 20px; color: #2c3e50; font-size: 0.95em; padding: 12px 16px; background: #f8f9fa; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); } .btn-tosca { background: var(--main-color); color: #fff; border: none; border-radius: 12px; padding: 12px 24px; font-size: 0.95em; cursor: pointer; transition: var(--transition); font-family: 'Poppins', Arial, sans-serif; font-weight: 600; box-shadow: 0 4px 10px rgba(23, 203, 179, 0.2); letter-spacing: 0.3px; } .btn-tosca:hover { transform: translateY(-2px); box-shadow: 0 7px 15px rgba(23, 203, 179, 0.3); } .btn-tosca:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(23, 203, 179, 0.2); } .btn-tosca:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; } .edit-btn { display: block; width: 100%; margin-top: 24px; padding: 14px; background: var(--main-color); color: #fff; border: none; border-radius: 12px; text-align: center; text-decoration: none; font-size: 1.08em; 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; } .edit-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 15px rgba(23, 203, 179, 0.3); } .section-title { color: #34495e; font-size: 1.15em; margin: 30px 0 16px 0; font-weight: 700; letter-spacing: 0.5px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.05); position: relative; } .section-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 60px; height: 3px; background: var(--main-color); border-radius: 3px; } .password-form input[type="password"] { width: 70%; padding: 12px 16px; border: 1px solid rgba(23, 203, 179, 0.2); border-radius: 12px; margin-right: 8px; margin-bottom: 16px; font-size: 0.95em; 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; } .password-form input[type="password"]:focus { border-color: var(--main-color); outline: none; box-shadow: 0 0 0 3px rgba(23, 203, 179, 0.1); } .password-form button { width: 100%; margin-top: 5px; } .search-icon { display: inline-block; vertical-align: middle; margin-left: 6px; color: #17cbb3; cursor: pointer; font-size: 1.15em; transition: color 0.2s; } .search-icon:hover { color: #14b09e; } @media (max-width: 600px) { .container-profile { max-width: 92%; padding: 30px 20px; border-radius: 14px; } .profile-info input[type="text"] { width: calc(100% - 32px); margin-right: 0; } .btn-tosca { width: 100%; margin-top: 5px; margin-bottom: 10px; } .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); } /* Tambahan agar input password responsif juga */ .password-form input[type="password"] { width: calc(100% - 32px); margin-right: 0; } } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .container-profile { animation: fadeIn 0.5s ease-out; } .profile-avatar i { animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } /* --- Tambahan: CSS Modal FAQ/CS agar popup tampil di tengah --- */ .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; } } .profile-links-wrapper { display: flex; flex-direction: row; justify-content: center; gap: 12px; margin-top: 28px; margin-bottom: 18px; flex-wrap: wrap; } .profile-link-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f5f7fa; color: #17cbb3; border: 1px solid #e0e7ef; border-radius: 12px; padding: 14px 18px; font-size: 0.95em; font-weight: 600; text-decoration: none; box-shadow: 0 3px 10px rgba(23,203,179,0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); min-width: 160px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .profile-link-btn:hover { background: linear-gradient(135deg, #e8f8f6 0%, #f0fbf9 100%); color: #14b09e; transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(23,203,179,0.15); border-color: rgba(23, 203, 179, 0.3); } .profile-link-btn:active { transform: translateY(-1px) scale(1.01); box-shadow: 0 4px 15px rgba(23,203,179,0.12); } .logout-btn-wrapper { display: flex; justify-content: center; margin-top: 24px; } .logout-btn { display: inline-block; min-width: 200px; padding: 14px 20px; background: #e74c3c; color: #fff; border: none; border-radius: 12px; text-align: center; text-decoration: none; font-size: 1.08em; font-weight: 600; transition: var(--transition); font-family: 'Poppins', Arial, sans-serif; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2); letter-spacing: 0.3px; } .logout-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 15px rgba(231, 76, 60, 0.3); background: #c0392b; } @media (max-width: 600px) { .profile-links-wrapper { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; margin-bottom: 16px; } .profile-link-btn { width: auto; min-width: 200px; max-width: 280px; padding: 16px 20px; font-size: 1em; white-space: normal; text-overflow: initial; overflow: visible; } .logout-btn { min-width: 200px; max-width: 280px; } } @media (min-width: 601px) and (max-width: 768px) { .profile-links-wrapper { justify-content: center; gap: 10px; } .profile-link-btn { padding: 13px 16px; font-size: 0.9em; min-width: 150px; } } @media (max-width: 480px) { .container-profile { max-width: 95%; padding: 25px 16px; margin: 20px auto 50px auto; } .profile-link-btn { padding: 18px 20px; font-size: 1.02em; border-radius: 14px; min-width: 180px; max-width: 260px; } .profile-links-wrapper { margin-top: 20px; margin-bottom: 14px; } .logout-btn { min-width: 180px; max-width: 260px; } } /* --- Tambahan: CSS Modal FAQ/CS agar popup tampil di tengah --- */ .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; } .chat-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 11500; pointer-events: none; overflow: hidden; } .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; max-height: 100%; } .chat-messages { min-height: 100px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; overflow-anchor: none; } .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; touch-action: none; } .chat-container { bottom: 15px; left: 15px; right: 15px; width: auto; height: 70vh; max-height: 500px; touch-action: auto; } .chat-body { padding: 15px; -webkit-overflow-scrolling: touch; } .chat-send-btn { width: 36px; height: 36px; min-width: 36px; max-width: 36px; font-size: 0.85em; } .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) { .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; } .faq-icon-top { padding: 8px 12px; font-size: 0.85em; gap: 5px; } }