@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-black: #000000;
    --card-bg: #0a0a0a;
    --accent-cyan: #00d2ff;
    --text-white: #ffffff;
    --text-dim: #888888;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
}

/* --- Layout --- */
.dashboard-container { 
    display: flex; 
    width: 100%;
    height: 100vh; 
}

.main-content { 
    flex: 1; 
    padding: 40px; 
    background: #020202; 
    overflow-y: auto; 
}

/* --- Navigation --- */
.side-nav {
    width: 250px;
    background: #050505;
    border-right: 1px solid #111;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-nav button {
    background: transparent;
    color: white;
    border: 1px solid #222;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.side-nav button:hover { 
    background: var(--accent-cyan); 
    color: #000; 
}

/* Force hide mobile elements on PC */
.mobile-menu-toggle, .close-menu {
    display: none !important;
}

/* --- History & Summary --- */
.history-card {
    background: var(--card-bg);
    border: 1px solid #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.summary-content {
    white-space: pre-line;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0px;
}

/* --- Auth Page --- */
.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.glass-card {
    background: #0a0a0a;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #1a1a1a;
    width: 360px;
    max-width: 90%;
    text-align: center;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #111;
    border: 1px solid #222;
    color: #fff;
    border-radius: 6px;
    box-sizing: border-box;
}

.btn-primary {
    width: 100%;
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary, #summarizeBtn {
    display: none;
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    background: rgba(0, 210, 255, 0.05) !important;
    border: 1px solid #00d2ff !important;
    color: #00d2ff !important;
    padding: 14px !important;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 15px;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover, #summarizeBtn:hover {
    background: rgba(0, 210, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Dashboard Elements --- */
#audioLogs {
    margin-top: 10px;
    color: #fff;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.system-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 20px;
    padding: 20px;
    max-width: 900px;
}

.status-card {
    background: rgba(0, 210, 255, 0.03);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    transition: 0.3s;
}

.status-card:hover {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.status-card h3, .status-card h4 {
    margin: 0 0 15px 0;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #00d2ff;
}

/* --- Animation --- */
.neural-viz {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #00d2ff;
    border-radius: 50%;
    animation: bionicPulse 3s infinite;
}

@keyframes bionicPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* --- Bionic Logo & Tagline Fix --- */
.logo-bionic h1, .bionic-logo {
    font-size: clamp(1.8rem, 8vw, 4rem); 
    text-align: center;
    width: 100%;
    margin: 0 auto;
    word-break: normal;
    overflow-wrap: break-word;
}

.taglinepn, .tagline {
    font-size: clamp(0.85rem, 3.5vw, 1.2rem);
    text-align: center;
    max-width: 85%;
    margin: 10px auto;
    opacity: 0.8;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    * { box-sizing: border-box; }

    .dashboard-container { flex-direction: column; }

    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        top: 5px;
        left: 5px;
        /* z-index: 2000; */
        width: 45px;
        height: 45px;
        background: rgba(0, 210, 255, 0.2);
        border: 1px solid #00d2ff;
        border-radius: 8px;
        color: #00d2ff;
        justify-content: center;
        align-items: center;
    }

    .side-nav {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 3000;
        transition: 0.4s ease;
    }

    .side-nav.active { left: 0; }

    .side-nav.active .close-menu {
        display: block !important;
        align-self: flex-end;
        font-size: 1.5rem;
        color: #00d2ff;
        margin-bottom: 20px;
    }

    .main-content {
        padding: 75px 15px 20px 15px !important;
        width: 100%;
    }

    .main-content header { text-align: center; }

    .system-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }
}

