/* --- CSS UTAMA (ORIGINAL) --- */
body { 
    background-color: #0d1117; 
    color: #c9d1d9; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    margin: 0; 
    padding: 15px; 
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
}

.card { 
    background: #161b22; 
    border: 1px solid #30363d; 
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 25px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.5); 
}

h2.main-title { 
    color: #58a6ff; 
    text-align: center; 
    text-transform: uppercase; 
    font-size: 24px; 
    margin-bottom: 30px; 
    letter-spacing: 1px; 
}

h3 { 
    color: #58a6ff; 
    font-size: 15px; 
    margin: 0 0 15px 0; 
    border-left: 4px solid #58a6ff; 
    padding-left: 12px; 
    text-transform: uppercase; 
}

/* --- TEXTAREA: WARNA & FONT --- */
textarea { 
    width: 100% !important; 
    background: #010409 !important; 
    color: #e6edf3 !important; 
    border: 1px solid #30363d !important; 
    border-radius: 8px; 
    padding: 15px; 
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace; 
    font-size: 14px !important; 
    line-height: 1.6;
    box-sizing: border-box; 
    margin-bottom: 15px; 
    min-height: 200px;
    overflow: auto !important; 
    white-space: pre !important; 
    word-wrap: normal !important;
}

/* --- BUTTON STYLE --- */
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
button { 
    cursor: pointer; padding: 10px 18px; border-radius: 6px; font-size: 12px; font-weight: 600;
    border: 1px solid #30363d; background: #21262d; color: #c9d1d9; transition: 0.2s;
}
button:hover { background: #30363d; border-color: #8b949e; color: #58a6ff; }
.btn-clear { color: #f85149 !important; border-color: rgba(248,81,73,0.4) !important; }
.btn-clear:hover { background: #f85149 !important; color: white !important; }
.btn-dl { background: #1f6feb !important; color: white !important; border: none; }

/* Scrollbar Style */
textarea::-webkit-scrollbar { width: 8px; height: 8px; }
textarea::-webkit-scrollbar-thumb { background: #30363d; border-radius: 10px; }
textarea::-webkit-scrollbar-thumb:hover { background: #58a6ff; }

/* --- MOBILE SUPPORT --- */
@media screen and (max-width: 600px) {
    body { padding: 10px; }
    textarea { font-size: 13px !important; padding: 12px; min-height: 180px; }
    button { flex: 1 1 45%; padding: 12px 5px; font-size: 11px; }
    h2.main-title { font-size: 20px; }
}

footer { 
    text-align: center; 
    padding: 30px; 
    color: #8b949e; 
    font-size: 11px; 
    border-top: 1px solid #30363d; 
    margin-top: 30px; 
}

/* --- GOOGLE AI EXTRA EFFECTS (Dikekalkan) --- */
:root { 
    --google-border: #4285F4; 
    --warna-kursor: #4285F4;
}

#google-ai-bar {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px; z-index: 100000;
    background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
    background-size: 200% 100%;
    animation: aiBarMove 2s linear infinite;
    opacity: 0;
}

@keyframes aiBarMove {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

.shimmer-line {
    height: 2px; width: 100%; margin-top: -15px; margin-bottom: 15px; border-radius: 2px;
    background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
    background-size: 300% 100%;
    animation: shimmerMove 4s linear infinite;
    opacity: 0.6;
}

@keyframes shimmerMove {
    0% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

.google-dots { display: flex; gap: 6px; padding: 10px 0; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; animation: googleJump 1.4s infinite ease-in-out; }
.dot:nth-child(1) { background: #4285F4; animation-delay: -0.32s; }
.dot:nth-child(2) { background: #EA4335; animation-delay: -0.16s; }
.dot:nth-child(3) { background: #FBBC05; animation-delay: -0.08s; }
.dot:nth-child(4) { background: #34A853; }

@keyframes googleJump {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

@keyframes borderPusing {
    0% { border-color: #4285F4; box-shadow: 2px -2px 15px #4285F4; }
    25% { border-color: #EA4335; box-shadow: 2px 2px 15px #EA4335; }
    50% { border-color: #FBBC05; box-shadow: -2px 2px 15px #FBBC05; }
    75% { border-color: #34A853; box-shadow: -2px -2px 15px #34A853; }
    100% { border-color: #4285F4; box-shadow: 2px -2px 15px #4285F4; }
}

.google-ai-rotate {
    animation: borderPusing 1.2s linear infinite !important;
    border-width: 2px !important;
    border-style: solid !important;
}

textarea {
    caret-color: var(--warna-kursor) !important;
    transition: border-color 0.5s ease, box-shadow 0.5s ease, caret-color 0.2s ease-in-out;
}
