body {
    background: #1a2a44;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
:root {
    --bg: #0f1726;
    --panel: #0F172A;
    --line: rgba(0,191,255,0.12);
    --accent: #00bfff;
    --ok: #00ff88;
    --err: #ff4757;
    --muted: #98a6bb;
    --card-radius: 12px;
    --shadow-3d: 0 4px 8px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(255,255,255,0.1), inset 0 2px 4px rgba(0,0,0,0.3);
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #081221 0%, #12203a 100%);
    overflow: hidden;
}
.app {
    display: flex;
    height: 100vh;
    width: 100%;
}
.sidebar {
    width: 260px;
    background: rgba(0,0,0,0.85);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    height: 100%;
    z-index: 25;
}
.sb-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.logo img {
    width: 140px;
    border-radius: 10px;
    cursor: pointer;
}
.brand {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}
.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: block;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.nav a:hover {
    background: rgba(0,191,255,0.1);
    border-color: rgba(0,191,255,0.3);
}
.nav a.active {
    background: var(--accent);
    color: #001a2a;
    border-color: var(--accent);
}
.main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wallpaper {
    position: absolute;
    inset: 0;
    background-image: url('https://amarktai.online/wp-content/uploads/2025/09/overview1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}
.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
    gap: 12px;
    overflow: hidden;
}
.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid var(--line);
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    z-index: 20;
    box-shadow: var(--shadow-3d);
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.titem {
    display: flex;
    align-items: center;
    gap: 6px;
}
.titem strong {
    color: var(--accent);
}
.titem select {
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.85rem;
    min-width: 120px;
}
.logout {
    margin-left: auto;
    background: var(--err);
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}
.mbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 8px 12px;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid var(--line);
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mbar .btn {
    flex: 1;
    min-width: 90px;
    padding: 6px 10px;
    font-size: 0.85rem;
}
.work {
    flex: 1;
    overflow-y: auto;
    margin-top: 50px;
    padding-bottom: 10px;
}
.section {
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s ease;
}
.section.active {
    display: block;
    opacity: 1;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
}
.card {
    background: rgba(0,0,0,0.75);
    border-radius: var(--card-radius);
    padding: 16px;
    box-shadow: var(--shadow-3d);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    overflow-y: auto;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    height: 100%;
}
.price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(0,191,255,0.1);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    gap: 10px;
    box-shadow: var(--shadow-3d);
}
.price-block strong {
    color: var(--accent);
    min-width: 130px;
}
.price-block input, .price-block select {
    flex: 1;
    max-width: 200px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 0.9rem;
}
.health {
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.health-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}
.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.msg {
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 80%;
    box-shadow: var(--shadow-3d);
    font-size: 0.95rem;
}
.msg.ai {
    align-self: flex-start;
    background: rgba(0,0,0,0.7);
}
.msg.me {
    background: var(--accent);
    color: #001a2a;
    align-self: flex-end;
}
.chat-input {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(0,191,255,0.1);
}
.chat-input input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--panel);
    color: #ffffff;
    font-size: 0.95rem;
}
.chat-input .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
}
.btn {
    background: var(--accent);
    color: #001a2a;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: var(--shadow-3d);
    transition: background 0.2s ease;
}
.btn:hover {
    background: #0099cc;
}
.btn.alt {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
}
.btn.alt:hover {
    background: rgba(255,255,255,0.1);
}
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.toggle {
    position: relative;
    width: 50px;
    height: 24px;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--accent);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.graph-container {
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
    padding: 12px;
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}
.graph-box {
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0,0,0,0.7);
}
.graph-box canvas {
    width: 100% !important;
    height: 100% !important;
}
.copyright {
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}
.onboard-card {
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.onboard-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.status-block {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}
.status-block.bad {
    background: var(--err);
}
.status-block.ok {
    background: var(--ok);
}
@media (max-width: 600px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .topbar { left: 0; padding: 8px 12px; }
    .titem { gap: 4px; font-size: 0.8rem; }
    .content { padding: 12px; gap: 12px; }
    .grid-2 { grid-template-columns: 1fr; gap: 12px; }
    .card { height: calc(100vh - 140px); }
    .work { margin-top: 50px; }
    .mbar { display: flex; }
    .price-block { flex-direction: column; align-items: flex-start; }
    .price-block strong { min-width: auto; }
    .chat-input { position: static; }
    .chat-box { max-height: calc(100vh - 140px); }
}
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.topbar {
    background: #1e1e1e;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.logo {
    height: 50px;
}
.nav-links a, .buttons a {
    color: #00bfff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.1em;
}
.nav-links a:hover, .buttons a:hover {
    text-decoration: underline;
}
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.section {
    text-align: center;
}
.slideshow {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.message {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #00ccff;
    padding: 10px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}
.cta-button {
    background: #00ccff;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}
.cta-button:hover {
    background: #0099cc;
}
.login-block, .register-block {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: rgba(0,0,0,0.7);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.login-title, .register-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.login-form input, .register-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #00bfff;
    border-radius: 6px;
    background: #2a3b55;
    color: #fff;
    font-size: 16px;
}
.login-form input::placeholder, .register-form input::placeholder {
    color: #ccc;
}
.login-form button, .register-form button {
    background: #00bfff;
    color: #1a2a44;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}
.login-form button:hover, .register-form button:hover {
    background: #00a0df;
}
.login-form p, .register-form p {
    font-size: 14px;
    margin: 10px 0;
    color: #ddd;
}
.login-form a, .register-form a {
    color: #00bfff;
    text-decoration: none;
}
.login-form a:hover, .register-form a:hover {
    text-decoration: underline;
}
.error-message {
    color: #ff4757;
    font-size: 14px;
    margin-top: 10px;
}
.copyright-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #aaa;
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
}
.contact {
    color: #00bfff;
    text-decoration: none;
}
.contact:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .logo { height: 40px; }
    .nav-links a, .buttons a { font-size: 1em; margin-left: 10px; }
    .slideshow { height: 300px; }
    .message { font-size: 1.2em; padding: 8px; }
    .cta-button { padding: 10px 20px; font-size: 1em; }
    .login-block, .register-block { top: 60%; padding: 30px 20px; }
    .login-title, .register-title { font-size: 28px; }
    .copyright-bar { font-size: 11px; padding: 6px 0; }
}
