@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap'); :root { --primary: #3ba7ff; --primary-dark: #417cb8; --primary-light: #7fb3d5; --secondary: #88c1e0; --dark: #2c3e50; --darker: rgba(26, 26, 26, 0.9); --light: #ffffff; --gray: #7f8c8d; --light-gray: #ecf0f1; --lighter-gray: #f5f9fc; --success: #27ae60; --warning: #f39c12; --danger: #e74c3c; --card-bg: #ffffff; --card-hover: #f5f9fc; --transition-duration: 0.6s; --transition-timing: cubic-bezier(0.4, 0, 0.2, 1); --hover-transition-duration: 0.25s; --hover-transition-timing: ease-out; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --url-font-size: 0.8rem; --url-line-height: 1.4; --fiery-1: #e63946; --fiery-2: #f4a261; --fiery-3: #e76f51; --bg-color: #ffffff; --text-color: var(--dark); --input-text-color: var(--darker); --placeholder-text-color: #95a5a6; --input-bg-color: #ffffff; --input-border-color: #bdc3c7; --bg-gray-100: #f3f4f6; --border-color: #d1d5db; --music-yellow: #facc15; --shadow-color: rgba(0, 0, 0, 0.1); --theme-shadow-light: rgba(100, 116, 139, 0.4); --theme-shadow-dark: rgba(148, 163, 184, 0.4); --border-animation-light: rgba(244, 162, 97, 0.7); --border-animation-dark: rgba(88, 166, 255, 0.6); --current-border-animation: var(--border-animation-light); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', serif; background-color: var(--bg-color); color: var(--text-color); padding: 1.5rem; min-height: 100vh; -webkit-tap-highlight-color: transparent; line-height: 1.5; overflow-x: hidden; transition: background-color var(--transition-duration) var(--transition-timing), color var(--transition-duration) var(--transition-timing); } #loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.8s ease-out, visibility 0.8s ease-out, background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1); visibility: visible; } .loading-spinner-large { border: 4px solid rgba(100, 149, 237, 0.2); border-left-color: #3ba7ff; border-radius: 50%; width: 60px; height: 60px; animation: spin 1.2s cubic-bezier(0.6, 0.1, 0.4, 0.9) infinite; margin-bottom: 15px; transition: border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-left-color 0.6s cubic-bezier(0.4, 0, 0.2, 1); } .loading-text { color: var(--darker); font-size: 1.3rem; margin-top: 10px; text-align: center; font-weight: 500; animation: pulse 1.8s ease-in-out infinite; transition: color var(--transition-duration) var(--transition-timing); } body.dark-theme { --bg-color: #0d1117; --text-color: #c9d1d9; --input-bg-color: #161b22; --input-border-color: #30363d; --input-text-color: #e6edf3; --placeholder-text-color: #8b949e; --bg-gray-100: #374151; --border-color: #4a5568; --shadow-color: rgba(255, 255, 255, 0.05); --darker: #c9d1d9; --gray: #8b949e; --lighter-gray: #161b22; --card-bg: #161b22; --current-border-animation: var(--border-animation-dark); --card-hover: #21262d; } body.dark-theme #loading-screen { background: #0d1117; } body.dark-theme .loading-spinner-large { border: 4px solid rgba(88, 166, 255, 0.2); border-left-color: #58a6ff; } body.dark-theme .loading-text { color: #c9d1d9; } body.dark-theme .hero h2 { color: #58a6ff; text-shadow: none; background: linear-gradient(to right, #58a6ff 30%, #70b8ff 60%, #4a9dec 90%, #58a6ff 120%); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: slideUpFadeIn 0.7s ease-out 0.2s forwards, sweepColor 5s linear infinite 1s; } body.dark-theme .hero p { color: #8b949e; text-shadow: none; } body.dark-theme pre { background-color: #161b22; color: #c9d1d9; border-color: #30363d; } body.dark-theme .modal-dialog { background-color: #161b22; color: #c9d1d9; border-color: #30363d; } body.dark-theme #submitParamBtn { background: #238636; color: white; } body.dark-theme #submitParamBtn:hover { background: #2ea043; } body.dark-theme #apiLinks a { background: #21262d; border-color: #30363d; color: #c9d1d9; } body.dark-theme #apiLinks a:nth-child(2) { background: none; border-color: #30363d; color: #c9d1d9; } body.dark-theme #apiLinks a:hover { background: #30363d; border-color: #8b949e; } body.dark-theme .modal-header h5 { color: #c9d1d9; } body.dark-theme .modal-header span { color: #8b949e; } body.dark-theme .modal-body form input { background-color: var(--input-bg-color); color: var(--input-text-color); border: 1px solid var(--input-border-color); } body.dark-theme .modal-body form input::placeholder { color: var(--placeholder-text-color); } body.dark-theme .search-container input { background-color: var(--input-bg-color); color: var(--input-text-color); border: 1px solid var(--input-border-color); } body.dark-theme .search-container input::placeholder { color: var(--placeholder-text-color); } body.dark-theme .modal-body form input:focus { box-shadow: 0 0 0 3px #1f6feb80; border-color: #1f6feb; } body.dark-theme .search-container input:focus { border-color: #58a6ff; box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3); } body.dark-theme .api-card { background: #161b22; border-color: #30363d; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); } body.dark-theme .api-card:hover { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); border-color: #8b949e; transform: scale(1.03) translateY(-5px); } body.dark-theme .api-info h3 { color: #58a6ff; } body.dark-theme .api-info p { color: #8b949e; } body.dark-theme .play-button { background: #21262d; color: #58a6ff; box-shadow: 0 0 8px rgba(88, 166, 255, 0.3); } body.dark-theme .status { background: rgba(46, 204, 113, 0.1); color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); } body.dark-theme .status.warning { background: rgba(243, 156, 18, 0.1); color: #f39c12; border-color: rgba(243, 156, 18, 0.3); } body.dark-theme .status.danger { background: rgba(231, 76, 60, 0.1); color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); } body.dark-theme .loading-spinner { border-top-color: #c9d1d9; border-color: rgba(201, 209, 217, 0.1); border-left-color: #58a6ff; } body.dark-theme .btn-close { color: #c9d1d9; } body.dark-theme .btn-close:hover { color: var(--danger); background: #30363d; } body.dark-theme #themeToggle { color: #c9d1d9; background-color: var(--bg-gray-100); border: 1px solid var(--border-color); } body.dark-theme #themeToggle:hover { box-shadow: 0 0 10px var(--theme-shadow-dark); } body.dark-theme #themeIcon { animation: rotateMoon 0.6s ease-out; } body.dark-theme .stats div { background: #161b22; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } body.dark-theme .stats div:hover::after { background: #21262d; } body.dark-theme .stats h3 { color: #8b949e; } body.dark-theme .stats p { color: #c9d1d9; } body.dark-theme .copy-section { background-color: #161b22; border-color: #30363d; } body.dark-theme #copyEndpointText { color: #c9d1d9; scrollbar-color: var(--gray) #21262d; } body.dark-theme #copyEndpointText::-webkit-scrollbar { background-color: #21262d; } body.dark-theme #copyEndpointText::-webkit-scrollbar-thumb { background-color: #555; } body.dark-theme .url-display-container::after { background: linear-gradient(to right, transparent 0%, #161b22 60%, #161b22 100%); } body.dark-theme .copy-button { background: #30363d; } body.dark-theme .copy-button:hover { background: #414a54; } body.dark-theme .tabs { background-color: #0d1117; border-bottom: 1px solid #30363d; box-shadow: inset 0 -1px 0 #30363d; } body.dark-theme .tabs>* { color: #58a6ff; } body.dark-theme .tab { color: #8b949e; } body.dark-theme .tab.active { border-bottom: 3px solid #58a6ff; color: #58a6ff; } body.dark-theme .tab:after { background: #58a6ff; } body.dark-theme .tab:hover:not(.active) { color: #58a6ff; } body.dark-theme .tab:hover:not(.active):after { width: 100%; } body.dark-theme .api-list { background-color: transparent; } body.dark-theme .api-card::before { background: linear-gradient(120deg, transparent, rgba(88, 166, 255, 0.15), transparent); opacity: 0; } body.dark-theme .api-card:hover::before { opacity: 1; left: 100%; } body.dark-theme .api-card:hover .play-button { filter: drop-shadow(0 0 6px rgba(88, 166, 255, 0.4)); } body.dark-theme .api-info { color: #c9d1d9; } body.dark-theme .play-button:hover { box-shadow: 0 0 10px rgba(88, 166, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.6); transform: translateY(-2px) scale(1.05); } body.dark-theme .footer { color: #8b949e; border-top: 2px solid #30363d; } body.dark-theme .contact a { color: #8b949e; background: #21262d; } body.dark-theme .contact a:hover { color: #c9d1d9; background: #30363d; } #themeToggle { position: fixed; top: 1rem; right: 1.5rem; background-color: var(--bg-gray-100); border: 1px solid var(--border-color); width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: grid; place-items: center; cursor: pointer; z-index: 1001; color: var(--text-color); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; } #themeToggle:hover { background-color: var(--border-color); transform: scale(1.1); box-shadow: 0 0 10px var(--theme-shadow-light); } #themeToggle svg { width: 1.1rem; height: 1.1rem; } #themeIcon { transition: all 0.5s ease-in-out; } @keyframes rotateMoon { from { transform: rotate(-180deg) scale(0.5); opacity: 0; } to { transform: rotate(0deg) scale(1); opacity: 1; } } @keyframes rotateSun { from { transform: rotate(180deg) scale(0.5); opacity: 0; } to { transform: rotate(0deg) scale(1); opacity: 1; } } .d-none { display: none !important; } .api-card, .stats div, .modal-dialog, pre, input, .search-container input, #submitParamBtn, .play-button, .copy-section, .footer, .tabs, .tab, #apiLinks a, .contact a, .btn-close, .modal-header, #apiResponseContent, .loading-spinner, #loading-screen, .icon-title, header h1, .content h2, .modal-header h5, .modal-header span, .stats h3, .stats p, .api-info h3, .api-info p, .status, #copyEndpointText, .url-display-container::after { transition: background-color var(--transition-duration) var(--transition-timing), color var(--transition-duration) var(--transition-timing), border-color var(--transition-duration) var(--transition-timing), box-shadow var(--transition-duration) var(--transition-timing), opacity var(--transition-duration) var(--transition-timing); } .hero h2, .hero p { transition: color var(--transition-duration) var(--transition-timing), -webkit-text-fill-color var(--transition-duration) var(--transition-timing), opacity var(--transition-duration) var(--transition-timing); } .stats div::before { transition: background var(--transition-duration) var(--transition-timing); } .stats div::after { transition: background-color var(--transition-duration) var(--transition-timing); } #apiLinks a { background: var(--darker); border: 2px solid var(--darker); padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 500; text-decoration: none; color: white; margin-right: 0.6rem; border-radius: 4px; display: inline-block; } #apiLinks a:nth-child(2) { background: none; border: 2px solid var(--darker); color: var(--darker); } #apiLinks a:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-sm); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } pre { white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; background: #f8f9fa; color: rgba(26, 26, 26, 0.8); padding: 1rem; border-radius: 4px; max-height: 400px; font-size: 0.85rem; font-weight: 600; font-family: 'Poppins', serif; border: 1px solid #e9ecef; } .loading-spinner { margin: 2rem auto 0.5rem auto; border: 3px solid rgba(91, 155, 213, 0.1); border-top: 3px solid rgba(26, 26, 26, 0.8); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; } .title-container { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; } .icon-title { font-size: 2.1rem; color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } .modal { position: fixed; top: 0; left: 0; z-index: 100; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); visibility: hidden; } .modal.active { opacity: 1; pointer-events: all; visibility: visible; } .modal-dialog { width: 100%; max-width: 500px; background: #ffffff; border-radius: 8px; padding: 1.5rem; color: var(--dark); overflow: hidden; transform: scale(0.9) translateY(20px); opacity: 0; box-shadow: var(--shadow-lg); border: 1px solid #dfe6e9; } .modal.active .modal-dialog { animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 2px solid #dfe6e9; margin-bottom: 1rem; } .modal-header h5 { font-size: 1.1rem; font-weight: 500; color: var(--darker); } .modal-header span { font-size: 0.90rem; color: var(--gray); display: block; font-weight: 500; } .btn-close { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--darker); padding: 0.1rem; border-radius: 50%; font-weight: 300; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .btn-close:hover { color: var(--danger); background: var(--lighter-gray); transform: rotate(90deg); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } .modal-body { padding: 0.5rem 0; } .modal-body form label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--text-color); font-size: 0.9rem; transition: color var(--transition-duration) var(--transition-timing); } .modal-body form input { width: 100%; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--input-border-color); background: var(--input-bg-color); color: var(--input-text-color); margin-bottom: 1rem; font-size: 0.95rem; font-weight: 600; transition: background-color var(--transition-duration) var(--transition-timing), color var(--transition-duration) var(--transition-timing), border-color var(--transition-duration) var(--transition-timing); } .modal-body form input::placeholder { color: var(--placeholder-text-color); transition: color var(--transition-duration) var(--transition-timing); } .modal-body form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2); border-color: var(--dark); } #submitParamBtn { background: var(--darker); color: white; border: none; padding: 12px 24px; font-size: 0.95rem; border-radius: 4px; cursor: pointer; font-weight: 600; width: 100%; margin-top: 0.5rem; box-shadow: var(--shadow); } #submitParamBtn:hover { background: var(--dark); transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } #submitParamBtn:active { transform: translateY(0); } .copy-section { display: none; align-items: center; background-color: var(--lighter-gray); border: 1px solid #dfe6e9; padding: 0; border-radius: 4px; margin-bottom: 1rem; font-weight: 500; position: relative; } .url-display-container { flex-grow: 1; height: calc((var(--url-line-height) * var(--url-font-size) * 2) + (6px * 2)); overflow: hidden; padding-right: 50px; display: flex; align-items: center; position: relative; } #copyEndpointText { display: block; white-space: nowrap; overflow-x: auto; width: 100%; font-size: var(--url-font-size); line-height: var(--url-line-height); color: var(--darker); padding: 6px 12px; scrollbar-width: thin; scrollbar-color: var(--gray) var(--lighter-gray); } #copyEndpointText::-webkit-scrollbar { height: 4px; background-color: var(--lighter-gray); } #copyEndpointText::-webkit-scrollbar-thumb { background-color: var(--gray); border-radius: 2px; } .copy-section.active { display: flex; animation: fadeIn 0.4s ease-out 0.2s forwards; opacity: 0; } .copy-button { position: absolute; top: 20%; right: 8px; transform: none; /* transform: translateY(-50%); */ background: var(--darker); border: none; color: white; padding: 6px; border-radius: 4px; font-size: 0.9rem; cursor: pointer; min-width: 28px; height: 28px; flex-shrink: 0; z-index: 2; transition: all 0.2s ease; display: inline-flex; /* Untuk menengahkan ikon di dalam tombol */ align-items: center; justify-content: center; } .copy-button:hover { position: absolute; background: var(--dark); transform: none; /* transform: translateY(-50%) scale(1.1); */ } .url-display-container::after { content: ''; position: absolute; top: 0; right: 0; width: 45px; height: 100%; background: linear-gradient(to right, transparent 0%, var(--lighter-gray) 60%, var(--lighter-gray) 100%); pointer-events: none; z-index: 1; border-radius: 0 4px 4px 0; } #apiResponseContent { background-color: #ffffff; padding: 1rem; border-radius: 4px; border: 1px solid #dfe6e9; font-size: 0.9rem; max-height: 400px; overflow-y: auto; margin-top: 15px; white-space: pre-wrap; word-wrap: break-word; opacity: 0; transform: translateY(15px); } #apiResponseContent.show { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; } #apiResponseContent::-webkit-scrollbar { width: 6px; background-color: #f5f5f5; } #apiResponseContent::-webkit-scrollbar-thumb { background-color: var(--gray); border-radius: 3px; } .image-response { max-width: 100%; max-height: 300px; border-radius: 8px; display: block; margin: 10px auto; box-shadow: var(--shadow-md); transition: transform 0.3s ease; } .image-response:hover { transform: scale(1.05); } .video-response, .audio-response { max-width: 100%; height: auto; border-radius: 8px; margin-top: 10px; } .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; } header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; color: var(--darker); } .hero { text-align: left; margin: 2.5rem 0 3rem; max-width: 800px; } .hero h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: -5px; background: linear-gradient(120deg, var(--fiery-1), var(--fiery-2), var(--fiery-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% 200%; animation: gradient 6s ease infinite, slideUpFadeIn 0.7s ease-out 0.2s forwards; opacity: 0; transform: translateY(30px); text-shadow: none; } .hero p { font-size: 0.95rem; color: #4a5568; margin-bottom: 2.5rem; font-weight: 500; font-family: 'Poppins', serif; opacity: 0; transform: translateY(30px); } #apiLinks { opacity: 0; transform: translateY(30px); } .hero.fade-in p { animation: slideUpFadeIn 0.7s ease-out 0.4s forwards; } .hero.fade-in #apiLinks { animation: slideUpFadeIn 0.7s ease-out 0.6s forwards; } .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; } .stats div { background: var(--card-bg); padding: 1.5rem 1rem; border-radius: 12px; text-align: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(25px); animation: cardEntrance 0.6s ease-out forwards; position: relative; overflow: hidden; z-index: 1; } .stats div::before { content: ''; position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; background: conic-gradient(transparent 0%, transparent 85%, var(--current-border-animation) 98%, transparent 100%); animation: rotate-border 4s linear infinite; z-index: -2; transform: translate(-50%, -50%); } .stats div::after { content: ''; position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px; background: var(--card-bg); border-radius: 10px; z-index: -1; transition: background-color var(--hover-transition-duration) var(--hover-transition-timing); } .stats div h3, .stats div p { position: relative; z-index: 2; } .stats div:nth-child(1) { animation-delay: 0.5s; } .stats div:nth-child(2) { animation-delay: 0.65s; } .stats div:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 8px 20px rgba(59, 167, 255, 0.15); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } .stats div:hover::after { background: var(--card-hover); } .stats h3 { font-size: 0.95rem; color: var(--gray); margin-bottom: 0.5rem; font-weight: 500; } .stats p { font-size: 1.5rem; font-weight: 700; color: var(--darker); } .content h2 { font-size: 1.5rem; color: var(--darker); margin-bottom: 1rem; font-weight: 500; } .tabs { display: flex; gap: 1.5rem; overflow-x: auto; margin-bottom: 1.5rem; padding-bottom: 8px; scrollbar-width: none; border-bottom: 1px solid #dfe6e9; } .tabs::-webkit-scrollbar { display: none; height: 0; } .tab { background: none; color: rgba(0, 0, 0, 0.6); border: none; font-weight: 700; border-bottom: 3px solid transparent; padding: 0.5rem 0.25rem; cursor: pointer; font-size: 1rem; white-space: nowrap; position: relative; } .tab.active { border-bottom: 3px solid var(--darker); color: var(--darker); } .tab::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 3px; background: var(--primary); transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); } .tab:hover:not(.active) { color: var(--primary); } .tab:hover:not(.active):after { width: 100%; } .api-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; /* Ditambah */ transition: opacity 0.3s ease, transform 0.3s ease; } /* Ditambah: Tab Transition */ .api-list.fade-out { opacity: 0 !important; transform: translateY(15px); transition: opacity 0.25s ease-out, transform 0.25s ease-out !important; } .api-card { background: var(--card-bg); padding: 1rem; border-radius: 6px; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); display: flex; justify-content: space-between; align-items: center; min-height: 50px; /* Diubah */ opacity: 0; transform: translateY(20px); animation: cardEntrance 0.6s ease-out forwards; position: relative; overflow: hidden; } .api-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); transform: translateY(-4px) scale(1.01); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } .api-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: left 0.6s ease; opacity: 0.6; } .api-card:hover::before { opacity: 1; left: 100%; } .api-info { flex: 1; padding-right: 1rem; } .api-info h3 { font-size: 1rem; color: var(--darker); font-weight: 600; } .api-info p { font-size: 0.80rem; color: var(--gray); font-weight: 500; margin-bottom: 0.7rem; line-height: 1.5; } .status { background: rgba(39, 174, 96, 0.1); padding: 0.35rem 1.6rem; border-radius: 20px; font-size: 0.75rem; color: var(--success); display: inline-block; font-weight: 600; margin-top: 0.5rem; border: 1px solid rgba(39, 174, 96, 0.2); } .status.warning { background: rgba(243, 156, 18, 0.1); color: var(--warning); border-color: rgba(243, 156, 18, 0.2); } .status.danger { background: rgba(231, 76, 60, 0.1); color: var(--danger); border-color: rgba(231, 76, 60, 0.2); } .api-card:hover .status { transform: translateY(-2px) scale(1.05); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } .play-button { background: var(--primary); border: none; border-radius: 4px; padding: 10px 12px; color: white; cursor: pointer; font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); align-self: center; margin-top: 0; white-space: nowrap; flex-shrink: 0; } .play-button:hover { background: var(--primary-dark); transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-md); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } .play-button:active { transform: translateY(0) scale(1); } /* --- TAMBAHAN PENTING UNTUK DISABLED STATE --- */ .play-button[disabled] { background: var(--gray); /* Warna abu-abu untuk disabled */ cursor: not-allowed; /* Kursor "tidak diizinkan" */ opacity: 0.6; /* Sedikit transparan */ transform: none; /* Hilangkan efek transform */ box-shadow: none; /* Hilangkan shadow */ pointer-events: none; /* Ini yang paling penting: Mencegah event klik */ } .play-button[disabled]:hover, .play-button[disabled]:active { background: var(--gray); /* Pastikan tetap abu-abu saat hover/active */ transform: none; /* Pastikan tidak ada transform */ box-shadow: none; /* Pastikan tidak ada shadow */ } /* Gaya khusus Dark Theme untuk tombol Play Button disabled */ body.dark-theme .play-button[disabled] { background: #4a5568; /* Warna abu-abu gelap untuk dark theme disabled */ color: #a0aec0; /* Warna teks sedikit lebih terang */ box-shadow: none; } body.dark-theme .play-button[disabled]:hover, body.dark-theme .play-button[disabled]:active { background: #4a5568; color: #a0aec0; } /* ... (kode CSS lainnya) ... */ .search-container input { width: 100%; max-width: 500px; padding: 0.85rem 1.2rem; font-size: 1rem; border-radius: 25px; border: 1px solid var(--input-border-color); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); outline: none; color: var(--input-text-color); background: var(--input-bg-color); transition: background-color var(--transition-duration) var(--transition-timing), color var(--transition-duration) var(--transition-timing), border-color var(--transition-duration) var(--transition-timing); } .search-container input::placeholder { color: var(--placeholder-text-color); transition: color var(--transition-duration) var(--transition-timing); } .search-container input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 167, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15); transform: scale(1.02); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } .footer { text-align: center; padding: 2rem 0 1rem; color: rgba(0, 0, 0, 0.6); font-weight: 500; border-top: 2px solid #dfe6e9; margin-top: 3rem; } .footer #credits { font-size: 0.75rem; } .contact { margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; } .contact a { color: rgba(0, 0, 0, 0.6); text-decoration: none; font-size: 1rem; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--lighter-gray); box-shadow: var(--shadow-sm); } .contact a:hover { color: white; background: var(--darker); transform: translateY(-4px) scale(1.1); box-shadow: var(--shadow-md); transition-duration: var(--hover-transition-duration); transition-timing-function: var(--hover-transition-timing); } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes pulse { 0%, 100% { opacity: 0.6; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1); } } @keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes modalPopIn { 0% { opacity: 0; transform: scale(0.8) translateY(30px); } 70% { opacity: 1; transform: scale(1.05) translateY(-5px); } 100% { opacity: 1; transform: scale(1) translateY(0); } } @keyframes cardEntrance { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes slideUpFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeInUp 0.8s ease-out forwards; } @keyframes rotate-border { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } } #music-widget { position: fixed; top: 4.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(20px); transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s; } #music-widget.visible { opacity: 1; transform: translateY(0); } #main-music-toggle { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background-color: var(--bg-gray-100); border: 1px solid var(--border-color); color: var(--text-color); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 0 0px transparent; } #main-music-toggle:hover { background-color: var(--border-color); transform: scale(1.1); box-shadow: 0 0 10px var(--theme-shadow-light); } body.dark-theme #main-music-toggle:hover { box-shadow: 0 0 10px var(--theme-shadow-dark); } #main-music-toggle:active { transform: scale(0.95); transition-duration: 0.1s; } #main-music-toggle i { font-size: 1.1rem; color: var(--text-color); transition: color var(--transition-duration) var(--transition-timing), transform 0.2s ease; } body.dark-theme #main-music-toggle i { color: #c9d1d9; } /* Ditambah: Music Icon Pulse */ #main-music-icon.playing { animation: musicPulse 1.8s infinite ease-in-out; } @keyframes musicPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.15); opacity: 1; } } #music-controls { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 0.5rem; transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out; opacity: 1; transform: translateY(0); visibility: visible; } #music-controls.hide-controls { opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none; } .music-control-btn { background-color: var(--bg-gray-100); color: var(--text-color); border: 1px solid var(--border-color); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; font-size: 0.8rem; box-shadow: 0 1px 3px var(--shadow-color); } .music-control-btn:hover { background-color: var(--border-color); transform: scale(1.1); } .music-control-btn.active { background-color: var(--music-yellow); color: #000000; border-color: var(--music-yellow); box-shadow: 0 0 8px var(--music-yellow); } body.dark-theme .music-control-btn { background-color: var(--bg-gray-100); color: var(--text-color); border: 1px solid var(--border-color); } body.dark-theme .music-control-btn:hover { background-color: var(--border-color); } body.dark-theme .music-control-btn.active { background-color: var(--music-yellow); color: #000000; } @media (max-width: 768px) { body { padding: 1rem; } .hero h2 { font-size: 1.8rem; } .hero p { font-size: 0.9rem; } .api-list { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } #themeToggle { right: 1rem; } } @media (max-width: 480px) { body { padding: 0.8rem; } .hero h2#apiTitle { font-size: 1.9rem; } .hero p { font-size: 0.85rem; margin-bottom: 2rem; } #apiLinks a { padding: 0.4rem 0.8rem; font-size: 0.9rem; margin-right: 0.5rem; } .stats { grid-template-columns: 1fr; gap: 1rem; } .stats div { padding: 1rem 0.8rem; } .stats h3 { font-size: 0.85rem; margin-bottom: 0.3rem; } .stats p { font-size: 1.3rem; } .modal-dialog { padding: 1rem; } .tabs { gap: 0.8rem; padding-bottom: 6px; } .tab { font-size: 0.9rem; } .footer #credits { font-size: 0.7rem; } .contact a { width: 32px; height: 32px; font-size: 0.9rem; } #copyEndpointText { scrollbar-width: none; -ms-overflow-style: none; } #copyEndpointText::-webkit-scrollbar { display: none; } .api-card { flex-direction: row; align-items: center; padding: 0.8rem 1rem; } .api-card .api-info { padding-right: 0.5rem; flex: 1; width: auto; } .api-card .api-info h3 { font-size: 0.95rem; } .api-card .api-info p { font-size: 0.75rem; margin-bottom: 0.5rem; } .api-card .api-info .status { font-size: 0.7rem; padding: 0.3rem 1rem; } .api-card .play-button { align-self: center; margin-top: 0; padding: 8px 10px; font-size: 0.8rem; flex-shrink: 0; } .api-card .play-button .fa-play { margin-right: 4px; } #themeToggle { width: 2.1rem; height: 2.1rem; top: 0.8rem; right: 1rem; } #themeToggle svg { width: 0.95rem; height: 0.95rem; } } @media (max-width: 640px) { #music-widget { right: 1rem; top: 3.8rem; } #main-music-toggle { width: 2.1rem; height: 2.1rem; } #main-music-toggle i { font-size: 0.95rem; } #music-controls { gap: 0.4rem; margin-top: 0.4rem; } .music-control-btn { width: 2rem; height: 2rem; font-size: 0.75rem; } } /* ===== AWAL CSS POPUP SELAMAT DATANG (ATLANTIC POPUP) ===== */ /* Gaya Dasar & Struktur Popup (Default ke Light Theme) */ .atlantic-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* Overlay untuk light theme */ display: none; /* Sembunyikan secara default */ justify-content: center; align-items: center; z-index: 10000; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); } .atlantic-popup-content { background-color: #FFFFFF; /* LIGHT THEME: Latar popup putih */ color: #333333; /* LIGHT THEME: Warna teks default gelap */ padding: 30px 35px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); width: 90%; max-width: 480px; text-align: center; position: relative; animation: atlanticPopupFadeIn 0.4s ease-out; border: 1px solid #DEE2E6; /* LIGHT THEME: Border abu-abu terang */ } @keyframes atlanticPopupFadeIn { /* Definisikan hanya sekali */ from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } } .atlantic-popup-header { display: flex; justify-content: flex-end; align-items: center; position: relative; height: 10px; margin-bottom: -10px; } .atlantic-countdown-text { font-size: 20px; font-weight: 500; color: #6C757D; /* LIGHT THEME: Warna countdown abu-abu */ position: absolute; top: 2px; right: 7px; line-height: 1; z-index: 1; } .atlantic-close-button { position: absolute; top: -10px; right: 0px; font-size: 35px; font-weight: 400; color: #6C757D; /* LIGHT THEME: Warna tombol close abu-abu */ background: none; border: none; cursor: pointer; padding: 5px; line-height: 1; transition: color 0.2s ease, transform 0.2s ease; /* display: none; diatur oleh JS awalnya */ } .atlantic-close-button:hover { color: #343A40; /* LIGHT THEME: Warna lebih gelap saat hover */ transform: rotate(90deg); } .atlantic-popup-content h2 { font-family: 'Playfair Display', serif; /* Font elegan */ margin-top: 0px; margin-bottom: 15px; /* Jarak sudah disesuaikan */ font-size: 29px; /* Ukuran font sudah disesuaikan */ font-weight: 700; color: #212529; /* LIGHT THEME: Warna judul */ } .atlantic-logo-container { margin-bottom: 15px; /* Jarak sudah disesuaikan */ background-color: #FFFFFF; /* LIGHT THEME: Latar logo */ padding: 15px; border-radius: 6px; display: inline-block; } .atlantic-logo-container img { max-width: 300px; /* Sesuaikan jika perlu, ini dari versi CSS Anda yang lebih baru */ height: auto; display: block; margin: 0 auto; } .atlantic-popup-content p { font-size: 16px; /* Ukuran font sudah disesuaikan */ line-height: 1.65; margin-bottom: 20px; /* Jarak sudah disesuaikan */ color: #495057; /* LIGHT THEME: Warna teks deskripsi */ } .atlantic-popup-content p strong { color: #212529; /* LIGHT THEME: Teks tebal */ font-weight: 600; } .atlantic-cta-button { background-color: #F39C12; /* LIGHT THEME: Warna tombol oranye */ color: #FFFFFF; border: none; padding: 10px 25px; font-size: 16px; font-weight: 500; border-radius: 5px; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); animation: ctaButtonPulse 2s infinite ease-in-out; /* Animasi tombol */ } .atlantic-cta-button:hover { background-color: #E68A00; /* LIGHT THEME: Oranye lebih gelap saat hover */ transform: translateY(-2px); } .atlantic-cta-button:active { transform: translateY(0px); } /* Styling untuk Dark Theme Popup Selamat Datang */ .atlantic-popup-content.popup-dark-theme { background-color: #2c3e50; color: #ecf0f1; border-color: #3e5062; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); } .atlantic-popup-content.popup-dark-theme .atlantic-countdown-text { color: #bdc3c7; } .atlantic-popup-content.popup-dark-theme .atlantic-close-button { color: #bdc3c7; } .atlantic-popup-content.popup-dark-theme .atlantic-close-button:hover { color: #ffffff; } .atlantic-popup-content.popup-dark-theme h2 { color: #ffffff; } .atlantic-popup-content.popup-dark-theme .atlantic-logo-container { background-color: #34495e; /* Atau #ffffff jika logo lebih baik di atas putih */ } .atlantic-popup-content.popup-dark-theme p { color: #bdc3c7; } .atlantic-popup-content.popup-dark-theme p strong { color: #ffffff; } .atlantic-popup-content.popup-dark-theme .atlantic-cta-button { background-color: #3498db; /* Warna tombol biru untuk dark theme */ color: #ffffff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* animation: ctaButtonPulse 2s infinite ease-in-out; (sudah ada di base .atlantic-cta-button) */ } .atlantic-popup-content.popup-dark-theme .atlantic-cta-button:hover { background-color: #2980b9; } /* Keyframes untuk animasi tombol (definisikan hanya sekali) */ @keyframes ctaButtonPulse { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } } /* Penyesuaian Responsif untuk Popup Selamat Datang (Gabungkan semua di sini) */ @media (max-width: 600px) { .atlantic-popup-content { padding: 20px 20px; margin: 0 15px; max-width: calc(100% - 30px); } .atlantic-logo-container { /* Ini adalah margin-bottom dari logo container, bukan image di dalamnya */ margin-bottom: 15px; /* Sesuaikan dari sebelumnya 10px jika ingin lebih rapat */ } .atlantic-logo-container img { max-width: 160px; /* Dari file CSS Anda yang lebih pendek, ini adalah 280px, yang lebih besar. Sesuaikan. */ /* Saya akan gunakan 160px sebagai contoh awal untuk layar kecil. */ } .atlantic-popup-content h2 { font-size: 22px; /* Lebih kecil dari 28px atau 35px untuk mobile */ } .atlantic-popup-content p { font-size: 14px; margin-bottom: 20px; } .atlantic-cta-button { padding: 10px 18px; font-size: 14px; } .atlantic-popup-header { height: auto; min-height: 20px; margin-bottom: -10px; } .atlantic-countdown-text { font-size: 16px; top: 1px; right: 15px; } .atlantic-close-button { /* Pastikan ini sesuai dengan ID yang digunakan JS */ font-size: 30px; top: -8px; right: 1px; padding: 3px; } } @media (max-width: 400px) { /* Sebelumnya 600px, saya asumsikan ini untuk layar SANGAT kecil */ .atlantic-popup-content { padding: 15px 15px; /* Dari file CSS Anda 12px 12px */ margin: 0 10px; /* Dari file CSS Anda 0 5px */ max-width: calc(100% - 20px); } .atlantic-logo-container img { max-width: 250px; /* Dari file CSS Anda 280px, sangat besar untuk 400px screen. Sesuaikan. */ } .atlantic-popup-content h2 { font-size: 25px; /* Dari file CSS Anda 28px */ } .atlantic-popup-content p { font-size: 13px; /* Dari file CSS Anda 14px */ } .atlantic-cta-button { padding: 9px 16px; font-size: 13px; } } /* ===== AKHIR CSS POPUP SELAMAT DATANG ===== */ .content-action-btn { position: absolute; /* Override posisi dari .copy-button */ /* Diposisikan relatif terhadap responseOuterContainer */ /* (1rem padding dari apiResponseContent adalah sekitar 16px) */ /* Jadi, 22px akan menempatkannya ~6px di dalam area padding konten */ top: 22px; /* Lebih ke bawah dari implementasi sebelumnya (yg mungkin top: 10px) */ right: 22px; /* Sedikit lebih ke kiri dari tepi luar */ transform: none; /* Hapus transform Y dari .copy-button default */ z-index: 5; /* Pastikan di atas konten jika ada overlap */ /* Ukuran (width, height, padding, font-size) akan diwarisi dari .copy-button untuk menjaga konsistensi dengan tombol salin URL. .copy-button sudah diatur ke 28x28px. */ } .content-action-btn.json-mode { top: 24px; right: 26px; } .content-action-btn.image-mode { top: 8px; right: 8px; } /* ... (previous CSS) ... */ .stats { display: grid; /* Two columns for desktop, each taking equal space */ grid-template-columns: repeat(2, 1fr); gap: 1rem; /* Reduced gap between the two main stat boxes */ margin-bottom: 1rem; /* As per provided HTML */ } .stats div { /* Existing card styling: background, padding, border-radius, etc. */ background: var(--card-bg); padding: 0.8rem; /* Further reduced padding for even smaller boxes */ border-radius: 12px; text-align: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(25px); animation: cardEntrance 0.6s ease-out forwards; position: relative; overflow: hidden; z-index: 1; display: flex; /* Use flexbox for internal alignment */ flex-direction: column; /* Stack contents vertically */ justify-content: center; /* Center content vertically */ align-items: center; /* Center content horizontally */ } .stats div h3 { font-size: 0.8rem; /* Even smaller font size for headings */ color: var(--gray); margin-bottom: 0.1rem; /* Further reduced margin below headings */ font-weight: 500; } .stats div p { font-size: 1.2rem; /* Even smaller font size for values */ font-weight: 700; color: var(--darker); margin-bottom: 0.6rem; /* Reduced space below values */ } /* Remove bottom margin from the very last paragraph in each stats box */ .stats div p:last-of-type { margin-bottom: 0; } /* Dark theme specific adjustments for stat box content */ body.dark-theme .stats h3 { color: #8b949e; /* Dark theme color for headings */ } body.dark-theme .stats p { color: #c9d1d9; /* Dark theme color for values */ } @media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; /* Reduce gap on smaller screens */ } .stats div { padding: 0.6rem; /* Further reduced padding on tablets */ } .stats div h3 { font-size: 0.75rem; /* Even smaller headings */ } .stats div p { font-size: 1.1rem; /* Even smaller values */ } } @media (max-width: 480px) { .stats { /* On mobile, stack the two boxes vertically */ grid-template-columns: 1fr; /* Single column */ gap: 0.8rem; /* Consistent gap when stacked */ } .stats div { padding: 0.5rem; /* Minimal padding on mobile */ } .stats div h3 { font-size: 0.7rem; /* Smallest headings */ } .stats div p { font-size: 1rem; /* Smallest values */ } } /* ... (rest of the CSS) ... */