
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #030914;
    color: #eafaff;
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 174, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 255, 0.045) 1px, transparent 1px);
    background-size: 45px 45px;
    pointer-events: none;
    z-index: -1;
}

header {
    height: 75px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 174, 255, 0.2);
}

.logo {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #45d7ff;
    text-shadow: 0 0 15px #008cff;
}

.status {
    font-size: 11px;
    letter-spacing: 2px;
    color: #64f5c1;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background: #64f5c1;
    border-radius: 50%;
    box-shadow: 0 0 12px #64f5c1;
}

main {
    width: min(1000px, 90%);
    margin: auto;
}

.hero {
    text-align: center;
    padding: 55px 0 35px;
}

.eyebrow {
    color: #43cfff;
    font-size: 11px;
    letter-spacing: 4px;
}

h1 {
    font-size: clamp(27px, 5vw, 44px);
    margin-top: 18px;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(0, 174, 255, 0.5);
}

.subtitle {
    margin-top: 12px;
    color: #8ba9bf;
}

.reactor {
    width: 220px;
    height: 220px;
    margin: 35px auto 25px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px #008cff);
}

.reactor-ring {
    position: absolute;
    border: 2px solid #16bfff;
    border-radius: 50%;
    box-shadow: 0 0 15px #008cff,
                inset 0 0 15px #008cff;
}

.ring-one {
    width: 100%;
    height: 100%;
    border-top-color: transparent;
    animation: rotate 8s linear infinite;
}

.ring-two {
    width: 80%;
    height: 80%;
    border-bottom-color: transparent;
    animation: rotate 5s linear infinite reverse;
}

.ring-three {
    width: 60%;
    height: 60%;
    border-left-color: transparent;
    animation: rotate 4s linear infinite;
}

.reactor-core {
    width: 65px;
    height: 65px;
    background: #9ceeff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00bfff,
                0 0 55px #008cff,
                0 0 90px #0077ff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 35px #00d9ff,
                    0 0 90px #008cff;
    }
}

.listening {
    color: #4ddaff;
    font-size: 12px;
    letter-spacing: 4px;
}

.chat-panel {
    background: rgba(9, 25, 43, 0.88);
    border: 1px solid rgba(0, 174, 255, 0.35);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 0 35px rgba(0, 120, 255, 0.08);
}

.panel-heading {
    color: #4ddaff;
    font-size: 12px;
    letter-spacing: 3px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 174, 255, 0.2);
}

.messages {
    height: 180px;
    overflow-y: auto;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 12px 15px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.6;
}

.jarvis-message {
    align-self: flex-start;
    background: rgba(0, 145, 255, 0.12);
    border-left: 3px solid #24caff;
}

.user-message {
    align-self: flex-end;
    background: rgba(0, 220, 190, 0.12);
    border-right: 3px solid #00dfc0;
}

.input-area {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    min-width: 0;
    background: #061321;
    border: 1px solid #17638c;
    border-radius: 7px;
    padding: 14px;
    color: white;
    outline: none;
}

input:focus {
    border-color: #35d5ff;
    box-shadow: 0 0 12px rgba(0, 174, 255, 0.2);
}

button {
    background: #087eb0;
    border: 1px solid #27caff;
    color: white;
    padding: 0 23px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
}

button:hover {
    background: #079ed8;
    box-shadow: 0 0 18px #008cff;
}

footer {
    text-align: center;
    padding: 30px 10px;
    color: #47677f;
    font-size: 10px;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    header {
        padding: 0 5%;
    }

    .logo {
        font-size: 19px;
    }

    .hero {
        padding-top: 45px;
    }

    .reactor {
        width: 180px;
        height: 180px;
    }

    .chat-panel {
        padding: 15px;
    }

    button {
        padding: 0 14px;
    }
}
 
/* JARVIS SECURE LOGIN */

.login-panel {
    width: min(90%, 480px);
    margin: 100px auto;
    padding: 35px;
    text-align: center;
    background: rgba(5, 20, 35, 0.85);
    border: 1px solid rgba(0, 195, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.15);
}

.login-panel h1 {
    font-size: 1.7rem;
    color: #eafaff;
    margin: 20px 0;
}

.login-panel input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    margin: 25px 0 15px;
    color: #ffffff;
    background: rgba(0, 20, 35, 0.9);
    border: 1px solid rgba(0, 195, 255, 0.5);
    border-radius: 6px;
    outline: none;
}

.login-panel input:focus {
    border-color: #00c3ff;
    box-shadow: 0 0 12px rgba(0, 195, 255, 0.3);
}

.login-panel button {
    width: 100%;
    padding: 15px;
    color: #00121c;
    background: #00c3ff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-panel button:hover {
    background: #70ddff;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.5);
}

.login-panel button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.login-panel .listening {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #00c3ff;
}

[hidden] {
    display: none !important;
}

/* PASSWORD VISIBILITY TOGGLE */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 55px;
}

.login-panel .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #00c3ff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: none;
}

.login-panel .password-toggle:hover {
    background: transparent;
    box-shadow: none;
}
/* JARVIS LOGOUT BUTTON */
#appShell {
    position: relative;
}
.logout-button {
    position: absolute;
    top: 10px;
    right: -170px;

    width: 130px;
    padding: 10px 15px;

    background: rgba(255, 35, 35, 0.15);
    color: #ff3b3b;

    border: 1px solid #ff3b3b;
    border-radius: 6px;

    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;

    cursor: pointer;
    transition: 0.3s;
}

.logout-button:hover {
    background: #ff3030;
    color: white;
    box-shadow: 0 0 20px rgba(255, 48, 48, 0.6);
}

/* JARVIS SYSTEM MONITORING DASHBOARD */

.system-dashboard {
    width: 90%;
    max-width: 1100px;
    margin: 35px auto;
    padding: 25px;
    background: rgba(0, 20, 35, 0.85);
    border: 1px solid rgba(0, 195, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 195, 255, 0.08);
}

.system-dashboard .panel-heading {
    color: #00c3ff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.system-card {
    padding: 25px 15px;
    text-align: center;
    background: rgba(0, 40, 65, 0.5);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 10px;
    transition: 0.3s;
}

.system-card:hover {
    border-color: #00c3ff;
    box-shadow: 0 0 18px rgba(0, 195, 255, 0.2);
}

.system-card p {
    color: #8bdfff;
    font-size: 12px;
    letter-spacing: 2px;
}

.system-card h2 {
    color: #00c3ff;
    font-size: 32px;
    margin: 15px 0;
    text-shadow: 0 0 12px rgba(0, 195, 255, 0.5);
}

.system-card span {
    color: #8bdfff;
    font-size: 11px;
}

@media (max-width: 650px) {
    .system-grid {
        grid-template-columns: 1fr;
    }
}

/* JARVIS ANIMATED CPU GAUGE */

.gauge {
    width: 155px;
    height: 155px;
    margin: 20px auto;

    border-radius: 50%;

    background: conic-gradient(
        #00c3ff var(--progress),
        rgba(0, 195, 255, 0.12) var(--progress)
    );

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 25px rgba(0, 195, 255, 0.2);

    transition: background 0.5s ease;
}

.gauge-inner {
    width: 125px;
    height: 125px;

    border-radius: 50%;
    background: #031421;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(0, 195, 255, 0.4);
}

.gauge-inner h2 {
    color: #00c3ff;
    font-size: 30px;
    margin: 5px 0;
    text-shadow: 0 0 12px #00c3ff;
}

.gauge-inner span {
    color: #8bdfff;
    font-size: 9px;
    letter-spacing: 2px;
}

.system-label {
    display: block;
    color: #8bdfff;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 15px;
}

/* JARVIS FUTURISTIC BATTERY INDICATOR */

.battery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 35px auto;
}

.battery-body {
    position: relative;
    width: 145px;
    height: 65px;
    border: 3px solid #00c3ff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

.battery-level {
    width: 0%;
    height: 100%;
    background: #00c3ff;
    border-radius: 4px;
    box-shadow: 0 0 15px #00c3ff;
    transition: width 0.6s ease;
}

.battery-tip {
    width: 9px;
    height: 25px;
    background: #00c3ff;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px #00c3ff;
}

.battery-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battery-text h2 {
    color: white;
    font-size: 23px;
    text-shadow: 0 0 10px #00c3ff;
    margin: 0;
}
/* JARVIS DIGITAL CLOCK */

.jarvis-clock-panel {
    text-align: center;
    margin: 20px auto 35px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.25);
}

.clock-label {
    color: #8bdfff;
    font-size: 12px;
    letter-spacing: 4px;
}

#jarvisClock {
    color: #00c3ff;
    font-size: clamp(35px, 6vw, 55px);
    letter-spacing: 5px;
    margin: 12px 0;
    text-shadow: 0 0 15px #00c3ff;
    font-family: monospace;
}

#jarvisDate {
    color: #8bdfff;
    font-size: 13px;
    letter-spacing: 2px;
}
/* JARVIS LIVE NETWORK STATUS */
.network-status-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto 25px;
    padding: 12px;
    color: #8bdfff;
    font-size: 12px;
    letter-spacing: 2px;
}

.network-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: orange;
    box-shadow: 0 0 10px orange;
}

#networkStatus {
    color: orange;
    font-weight: bold;
}

.network-dot.online {
    background: #00ff88;
    box-shadow: 0 0 12px #00ff88;
}

#networkStatus.online {
    color: #00ff88;
}

.network-dot.offline {
    background: #ff3333;
    box-shadow: 0 0 12px #ff3333;
}

#networkStatus.offline {
    color: #ff3333;
}
/* JARVIS NETWORK ACTIVITY MONITOR */

.network-activity-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 90%;
    max-width: 650px;
    margin: 20px auto 30px;
}

.network-activity-card {
    padding: 22px;
    text-align: center;
    background: rgba(0, 40, 65, 0.5);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 10px;
    transition: 0.3s;
}

.network-activity-card:hover {
    border-color: #00c3ff;
    box-shadow: 0 0 18px rgba(0, 195, 255, 0.2);
}

.network-activity-card p {
    color: #8bdfff;
    font-size: 11px;
    letter-spacing: 2px;
}

.network-activity-card h2 {
    color: #00c3ff;
    font-size: 32px;
    margin: 15px 0 5px;
    text-shadow: 0 0 12px #00c3ff;
}

.network-activity-card span {
    color: #8bdfff;
    font-size: 12px;
    letter-spacing: 2px;
}

@media (max-width: 450px) {
    .network-activity-panel {
        grid-template-columns: 1fr;
    }
}
/* JARVIS SYSTEM UPTIME */

.uptime-panel {
    width: 90%;
    max-width: 650px;
    margin: 30px auto 10px;
    padding: 22px;
    text-align: center;
    background: rgba(0, 40, 65, 0.5);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 10px;
    transition: 0.3s;
}

.uptime-panel:hover {
    border-color: #00c3ff;
    box-shadow: 0 0 18px rgba(0, 195, 255, 0.2);
}

.uptime-panel p {
    color: #8bdfff;
    font-size: 12px;
    letter-spacing: 3px;
}

.uptime-panel h2 {
    color: #00c3ff;
    font-size: clamp(22px, 4vw, 32px);
    margin: 18px 0;
    text-shadow: 0 0 12px #00c3ff;
    font-family: monospace;
}

.uptime-panel span {
    color: #8bdfff;
    font-size: 10px;
    letter-spacing: 2px;
}