/* MooshiPi Console: Random Background Edition */

html, body 
{
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    background: #020617; 
    background: url('/images/console/randombg') no-repeat center center fixed, 
                radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    background-size: cover;
}

body 
{
    display: flex;
    justify-content: center;   
    align-items: center;       
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #f1f5f9;
    padding: 20px;
    box-sizing: border-box;
}

#console-wrapper 
{
    width: 100%;
    max-width: 75dvw;
    height: 85dvh; 
    background: linear-gradient(
        225deg, 
        rgba(21, 26, 37, 0.55) 0%, 
        rgba(24, 30, 45, 0.85) 100%
    );
    backdrop-filter: blur(25px) saturate(160%); 
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    padding: 35px;
    border-radius: 4px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    box-sizing: border-box;
}

#system-header 
{ 
    flex-shrink: 0; 
    padding-bottom: 8px; 
    margin-bottom: 15px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.system-title, #prompt-text, .user-command 
{
    color: #fbcfe8; 
    mix-blend-mode: normal; 
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.7));
    font-weight: 900;
}

.system-title 
{
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.system-subtitle 
{
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 5px; 
    font-size: 0.9rem;
}

#output 
{
    font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #cbd5e1;
    flex-grow: 1;             
    overflow-y: auto;         
    margin-bottom: 20px;
    padding-right: 10px;      
    box-sizing: border-box;
}

#input-line 
{
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    padding: 18px 22px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#input-line:focus-within 
{
    border: 1px solid rgba(244, 114, 182, 0.4);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 15px rgba(244, 114, 182, 0.1);
}

#prompt-text
{
    margin-right: 12px;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    letter-spacing: 1px;
}

input 
{
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    outline: none;
    flex: 1;
    caret-color: #fbcfe8;
}

.user-command 
{
    margin-top: 15px;
}

/* Animations */
@keyframes bloomIn 
{
    from { opacity: 0; }
    to { opacity: 1; }
}

.user-command, .response-line, .error-message 
{
    animation: bloomIn 0.8s ease-out both;
    animation-delay: 0.1s;
}

.error-message { color: #fb7185; font-weight: 600; }

/* Scrollbar */
#output::-webkit-scrollbar { width: 5px; }
#output::-webkit-scrollbar-thumb { background: rgba(244, 114, 182, 0.3); }

/* Mobile */
@media screen and (max-width: 600px) 
{
    body { padding: 0; align-items: flex-start; }

    #console-wrapper 
    { 
        height: 100dvh;
        width: 100vw; 
        max-width: 100%;
        border-radius: 0; 
        padding: 20px 15px;
        border: none;
    }

    #system-header {
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

    .system-title 
    {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .system-subtitle 
    {
        font-size: 0.75rem;
    }

    #output 
    {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    #input-line 
    {
        padding: 12px 15px;
    }

    #prompt-text
    {
        font-size: 0.85rem;
        margin-right: 8px;
    }

    input 
    {
        font-size: 0.9rem;
    }
}