/* Global Style */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; outline: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } body { background-color: #2196F3; padding-bottom: 80px; } /* Top Bar */ .top-header { position: fixed; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 3; } .top-header .left-section { display: flex; align-items: center; gap: 15px; } .sidebar-icon { cursor: pointer; color: white; font-size: 28px; } .top-header .website-name { color: white; font-size: 18px; font-weight: 600; } .top-header .notification { display: flex; align-items: center; } .top-header .notification .material-icons { color: white; font-size: 24px; cursor: pointer; } /* Main Container */ .main-container { position: fixed; top: 50px; left: 0; right: 0; bottom: 0; background-color: #F8F8F8; border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 20px; z-index: 2; overflow-y: auto; } /* Verification Banner */ .verification-banner { background-color: #fff3cd; border: 1px solid #ffeeba; border-radius: 8px; padding: 10px; margin-bottom: 10px; font-size: 12px; color: #856404; text-align: center; } .verification-banner a { color: #856404; font-weight: bold; text-decoration: underline; cursor: pointer; } /* Stats Card */ .stats-card { background-color: #ffffff; border-radius: 12px; padding: 16px; margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; } .stats-card .stat-item { padding: 0 8px; border-right: 1px solid #ccc; text-align: center; } .stats-card .stat-item:last-child { border-right: none; } .stats-card .icon-title { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 4px; } .stats-card .icon-title i { font-size: 14px; color: #2196F3; } .stats-card .stat-label { font-size: 10px; color: #555; } .stats-card .stat-value { font-size: 17px; color: #333; font-weight: 600; } /* API Key Card */ .apikey-card { background-color: #ffffff; border-radius: 12px; padding: 16px; margin-bottom: 20px; } .apikey-header { display: flex; justify-content: space-between; align-items: center; } .apikey-header h4 { font-size: 16px; color: #333; } .apikey-controls { display: flex; align-items: center; gap: 10px; } .toggle-icon, .copy-icon { cursor: pointer; font-size: 18px; color: #2196F3; } .copy-icon { display: none; } .apikey-value { margin-top: 8px; font-size: 12px; color: #555; word-break: break-all; } /* News Section */ .news-section { margin-top: 20px; } .news-header { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 10px; } .news-container { background-color: #ffffff; border-radius: 12px; padding: 16px; } .news-item { padding: 8px 0; } .news-item:last-child { padding-bottom: 0; } .news-title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 3px; } .news-time { font-size: 8px; color: #999; margin-bottom: 5px; } .news-content { font-size: 11px; color: #555; } .news-divider { border: 0; border-top: 1px solid #e0e0e0; margin: 8px 0; } /* Sidebar */ .sidebar { position: fixed; top: 0; left: -250px; width: 250px; height: 100%; background-color: #fff; box-shadow: 2px 0 5px rgba(0,0,0,0.3); transition: left 0.3s ease; z-index: 1001; padding: 20px; } .sidebar.active { left: 0; } .sidebar-header { display: flex; align-items: center; margin-bottom: 20px; } .sidebar-header img { width: 40px; height: auto; margin-right: 10px; } .sidebar-header .website-name { font-size: 16px; font-weight: 600; color: #333; } .sidebar ul { list-style: none; padding: 0; margin: 0; } .sidebar ul li { margin-bottom: 10px; } .sidebar ul li a { text-decoration: none; color: #333; font-size: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; transition: background 0.3s ease, color 0.3s ease; } .sidebar ul li a.home { background-color: #2196F3; color: #fff; } .sidebar ul li a:not(.home) { background-color: #f2f2f2; color: #333; } .sidebar ul li a:hover { opacity: 0.9; } /* Overlay */ .overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease; z-index: 1000; } .overlay.active { opacity: 1; visibility: visible; } /* Snackbar */ #snackbar { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 2px; padding: 16px; position: fixed; z-index: 1003; left: 50%; bottom: 30px; transform: translateX(-50%); font-size: 14px; } #snackbar.show { visibility: visible; -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s; animation: fadein 0.5s, fadeout 0.5s 2.5s; } @-webkit-keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} } @keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} } @-webkit-keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} } @keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} } /* Loading Animation */ #loading { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1005; align-items: center; justify-content: center; } #loading .spinner { border: 8px solid #f3f3f3; border-top: 8px solid #3498db; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }