/* Base styles for retro interface */
.retro-screen {
    background-color: #111111;
    color: #bbb;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Input field base style */
.retro-input {
    background-color: #0a0a0a;
    color: #bbb;
    border: 1px solid #444;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    padding: 12px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.retro-input:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 10px rgba(102, 102, 102, 0.3);
}

/* Error state - simplified, no retry button */
.error-screen {
    background-color: rgba(34, 0, 0, 0.8);
    color: #ff6666;
    border: 1px solid rgba(255, 68, 68, 0.5);
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 15px;
}

/* CRT effects */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@media (min-resolution: 300dpi) {
    .monitor-frame {
        display: none !important;
    }
}

/* Apply subtle flicker to terminal */
#login-terminal {
    animation: flicker 5s infinite;
}

body {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  min-height: 100vh;       /* Full viewport height */
  margin: 0;
  padding: 0;
}






/* Desktop styling */
/* Desktop specific styles */
#desktop {
    background-color: #111111;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

#desktop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(187, 187, 187, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 187, 187, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Icon styling */
.icon {
    position: absolute;
    width: 80px;
    text-align: center;
    cursor: move;
    color: #bbb;
    font-family: 'Courier New', monospace;
    padding: 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
    z-index: 100;
}

.icon:hover {
    background-color: rgba(187, 187, 187, 0.1);
    border-color: #666;
}

.icon.selected {
    background-color: rgba(187, 187, 187, 0.2);
    border-color: #888;
}

.icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 5px;
    filter: grayscale(100%) brightness(1.5);
}

.icon-label {
    font-size: 12px;
    word-break: break-word;
    text-shadow: 0 0 2px #000;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #0a0a0a;
    border-top: 2px solid #666;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    font-family: 'Courier New', monospace;
}

#menu-button {
    background-color: #222;
    color: #bbb;
    border: 1px solid #666;
    padding: 5px 15px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

#menu-button:hover {
    background-color: #333;
    border-color: #888;
}

#clock {
    margin-left: auto;
    color: #bbb;
}

/* Trash */
#trash {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    text-align: center;
    z-index: 900;
}

#trash.drag-over {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Modal backdrop */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1999;
}

/* Selection box */
.selection-box {
    position: absolute;
    border: 1px dashed #888;
    background-color: rgba(187, 187, 187, 0.1);
    z-index: 50;
    display: none;
}

/* Loading animation */
.loading {
    border: 2px solid #333;
    border-top: 2px solid #bbb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Icon selection animation */
@keyframes iconSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.icon.selected {
    animation: iconSelect 0.3s ease;
    background-color: rgba(0, 255, 0, 0.15);
    border: 1px solid #00ff00 !important;
}

/* CRT scanlines effect for desktop */
#desktop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 255, 0, 0.03) 50%,
        transparent 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

/* Trash can animations */
@keyframes trashPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#trash.drag-over {
    animation: trashPulse 0.5s infinite;
}
