/* ============================= */
/*         TONY STARK LAB        */
/* ============================= */

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

body {
    font-family: 'Nunito', sans-serif;
    background: radial-gradient(circle at center, #06142a 0%, #000814 90%);
    color: #00eaff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== STAR BACKGROUND ===== */

body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(rgba(0,255,255,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: moveStars 40s linear infinite;
    z-index: -2;
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-60px); }
}

/* ===== SCAN LINE EFFECT ===== */

body::after {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0,255,255,0.02) 50%,
        rgba(0,0,0,0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
}

/* ===== MAIN CONTAINER ===== */

.main-container {
    display: flex;
    gap: 30px;
}

/* ===== HUD PANEL ===== */

.hud-panel {
    width: 260px;
    background: rgba(0, 20, 40, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,255,255,0.4);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 0 50px rgba(0,255,255,0.5);
    position: relative;
    overflow: hidden;
}

/* Radar pulse effect */
.hud-panel::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(0,255,255,0.2);
    border-radius: 50%;
    top: -80px;
    left: 30px;
    animation: radar 6s infinite linear;
}

@keyframes radar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hud-panel h3 {
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===== STAT ITEMS ===== */

.stat-item {
    margin-bottom: 18px;
    font-size: 13px;
}

/* Animated bar */

.bar {
    height: 6px;
    background: rgba(0,255,255,0.1);
    border-radius: 10px;
    margin: 6px 0;
    overflow: hidden;
}

.bar div {
    height: 100%;
    background: linear-gradient(90deg,#00f0ff,#0088ff);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* ===== CHAT PANEL ===== */

.chat-panel {
    width: 720px;
    height: 580px;
    background: rgba(0, 20, 40, 0.65);
    backdrop-filter: blur(30px);
    border-radius: 16px;
    border: 1px solid rgba(0,255,255,0.4);
    box-shadow:
        0 0 60px rgba(0,255,255,0.6),
        inset 0 0 40px rgba(0,255,255,0.2);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* ===== TOP BAR ===== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ===== CHAT BOX ===== */

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

#chat-box::-webkit-scrollbar {
    width: 6px;
}

#chat-box::-webkit-scrollbar-thumb {
    background: rgba(0,255,255,0.4);
    border-radius: 10px;
}

/* ===== MESSAGES ===== */

.user {
    text-align: right;
    margin: 12px 0;
    font-weight: 700;
    color: #00ff88;
}

.bot {
    text-align: left;
    margin: 12px 0;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== INPUT AREA ===== */

.input-area {
    display: flex;
    margin-top: 15px;
    border-top: 1px solid rgba(0,255,255,0.3);
    padding-top: 12px;
}

input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,255,255,0.5);
    color: #00f0ff;
    padding: 10px;
    font-size: 15px;
    outline: none;
}

button {
    background: linear-gradient(90deg, #00f0ff, #0077ff);
    border: none;
    padding: 10px 18px;
    margin-left: 10px;
    border-radius: 8px;
    color: #000;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px #00f0ff;
}

/* ===== BOOT SCREEN ===== */

#boot-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000814;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    animation: bootPulse 1.2s infinite alternate;
    z-index: 9999;
}

@keyframes bootPulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.hidden {
    display: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .hud-panel {
        width: 90%;
    }

    .chat-panel {
        width: 90%;
    }
}

/* ===== CONTROL PANEL ===== */

.control-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-card {
    background: rgba(0, 20, 40, 0.7);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(0,255,255,0.3);
    box-shadow: 0 0 40px rgba(0,255,255,0.4);
}

.panel-card h3 {
    margin-bottom: 12px;
}

.panel-card textarea {
    width: 100%;
    height: 90px;
    background: transparent;
    border: 1px solid rgba(0,255,255,0.3);
    color: #00eaff;
    padding: 10px;
    border-radius: 8px;
    resize: none;
    margin-bottom: 10px;
}

.primary-btn {
    background: linear-gradient(90deg,#00f0ff,#0088ff);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.primary-btn:hover {
    box-shadow: 0 0 20px #00f0ff;
}

.status-text {
    margin-top: 8px;
    font-size: 13px;
    color: #00ff88;
}

.small-text {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== MUSIC BAR ===== */

.music-bar {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 30, 60, 0.8);
    border: 1px solid rgba(0,255,255,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-controls button {
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.hidden {
    display: none;
}