@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: #151515;
    color: #00ff00;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background images */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url(left.jpg), url(right.jpg);
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: auto 100%, auto 100%;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 50px 0 10px 0;
    position: relative;
}

.top-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: 2px solid #103CAB;
    color: #103CAB;
    padding: 8px 16px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: #103CAB;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 60, 171, 0.3);
}

.title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffff00;
    letter-spacing: 4px;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
    transform: perspective(300px) rotateX(25deg);
    transform-origin: center top;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.subtitle {
    font-size: 1.2rem;
    color: #00ffff;
    letter-spacing: 2px;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.terminal-panel {
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid #103CAB;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 600px;
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #00ffff;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    margin-right: 15px;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ffff;
}

.droid-form {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffff00;
    letter-spacing: 1px;
}

.droid-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.droid-input:focus {
    outline: none;
    border-color: #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
    color: #ffff00;
}

.droid-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
    text-transform: none;
}

.submit-btn, .action-btn {
    background: linear-gradient(45deg, #ff6b00, #ff8f00);
    border: none;
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.submit-btn:hover, .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.submit-btn {
    width: 100%;
}

.qr-section {
    text-align: center;
}

.qr-section.hidden {
    display: none;
}

.qr-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.action-btn {
    flex: 1;
    min-width: 120px;
}

.action-btn.secondary {
    background: linear-gradient(45deg, #666, #888);
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.3);
}

.action-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.5);
}

.qr-info {
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 5px;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

#qrUrl {
    color: #ffff00;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
}

#qrUrl:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #2A5DDE;
    font-size: 0.8rem;
    border-top: 1px solid #2A5DDE;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .title {
        font-size: 2rem;
    }
    
    .terminal-panel {
        padding: 20px;
        margin: 10px;
    }
    
    .qr-actions {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: auto;
    }
}