html, body {
    overflow: hidden;
    height: 100%;
}

body {
    background: #0f0f0f;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.app {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1em;
    opacity: 0.7;
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 12px;
    width: 80%;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    background: #1e1e1e;
    color: #fff;
}

button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #1e1e1e;
    border: 2px solid #333;
    color: #fff;
    font-size: 1.1em;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;

}

button:hover {
    background: #292929;
    border-color: #00c6ff;
}

h2 {
    margin-top: 30px;
    font-size: 1.5em;
    color: #ccc;
}

#log-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #222 #181818;
    padding-right: 14px; /* Add space for scrollbar */
}
#log-list::-webkit-scrollbar {
    width: 8px;
    background: #181818;
    border-radius: 8px;
}
#log-list::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 8px;
    min-height: 40px;
}
#log-list::-webkit-scrollbar-thumb:hover {
    background: #333;
}
#log-list::-webkit-scrollbar-corner {
    background: #181818;
}
#log-list::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

#log-list li {
    background: #1a1a1a;
    margin: 12px 0px 0px 10px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95em;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#log-list li.new {
    transform: scale(1.05);
    opacity: 1;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.8s cubic-bezier(0.77,0,0.18,1), opacity 0.8s cubic-bezier(0.77,0,0.18,1);
    opacity: 1;
}
#preloader.preloader-fade {
    background: transparent;
    opacity: 0;
    pointer-events: none;
}
.preloader-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
}
.preloader-favicon {
    width: 80px;
    height: 80px;
    animation: preloader-phase 5s cubic-bezier(0.77,0,0.18,1) 1 forwards;
    filter: drop-shadow(0 0 16px #00c6ff88);
    opacity: 0.7;
}
@keyframes preloader-phase {
    0% { opacity: 0.7; filter: drop-shadow(0 0 16px #00c6ff88); }
    20% { opacity: 1; filter: drop-shadow(0 0 32px #00c6ffcc); }
    50% { opacity: 0.85; filter: drop-shadow(0 0 40px #0072ffcc); }
    80% { opacity: 1; filter: drop-shadow(0 0 32px #00c6ffcc); }
    90% { opacity: 0.7; filter: drop-shadow(0 0 16px #00c6ff88); }
    100% { opacity: 0; filter: drop-shadow(0 0 0px #00c6ff00); }
}
.preloader-text {
    font-family: 'Inter', sans-serif;
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-top: 0.5em;
    animation: preloader-text-phase 5s cubic-bezier(0.77,0,0.18,1) 1 forwards;
    opacity: 0.7;
}
@keyframes preloader-text-phase {
    0% { opacity: 0.7; }
    20% { opacity: 1; }
    50% { opacity: 0.85; }
    80% { opacity: 1; }
    90% { opacity: 0.7; }
    100% { opacity: 0; }
}
/* End Preloader Styles */

