/* Modern Custom styling for Omahabot Command Center */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(14, 18, 36, 0.45);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary-neon: #7d12ff;
    --primary-glow: rgba(125, 18, 255, 0.35);
    --cyan-neon: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.35);
    --green-neon: #39ff14;
    --green-glow: rgba(57, 255, 20, 0.35);
    --red-neon: #ff073a;
    --red-glow: rgba(255, 7, 58, 0.35);
    --text-white: #f5f6fa;
    --text-muted: #8b92b6;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 150px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 240px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.15;
    z-index: -2;
}

/* Glow bubbles */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.purple-glow {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--primary-neon), transparent 70%);
}

.cyan-glow {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--cyan-neon), transparent 70%);
}

/* Login Layout */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 40px;
    max-width: 460px;
    width: 90%;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-card h1 {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-step {
    display: none;
}

.auth-step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-desc {
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Robot Mascot Styling */
.robot-face {
    width: 140px;
    height: 100px;
    background: #14172e;
    border: 3px solid var(--cyan-neon);
    border-radius: 20px;
    box-shadow: 0 0 20px var(--cyan-glow);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
    margin-bottom: 25px;
    position: relative;
}

.eyes {
    display: flex;
    justify-content: space-between;
    width: 60%;
}

.eye {
    width: 22px;
    height: 22px;
    background: var(--cyan-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-neon);
    position: relative;
}

.eye.scanning {
    animation: scan 1.5s ease-in-out infinite alternate;
}

@keyframes scan {
    0% { transform: translateX(-5px); }
    100% { transform: translateX(5px); }
}

.robot-face.happy {
    border-color: var(--green-neon);
    box-shadow: 0 0 20px var(--green-glow);
}

.robot-face.happy .eye {
    background: var(--green-neon);
    box-shadow: 0 0 10px var(--green-neon);
}

.robot-face.worried {
    border-color: var(--red-neon);
    box-shadow: 0 0 20px var(--red-glow);
}

.robot-face.worried .eye {
    background: var(--red-neon);
    box-shadow: 0 0 10px var(--red-neon);
}

.mouth {
    width: 40px;
    height: 6px;
    background: var(--cyan-neon);
    border-radius: 3px;
    box-shadow: 0 0 5px var(--cyan-neon);
    transition: all 0.3s ease;
}

.mouth.neutral {
    width: 30px;
}

.mouth.smile {
    height: 15px;
    width: 35px;
    background: transparent;
    border: 3px solid var(--green-neon);
    border-top: none;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
}

.mouth.sad {
    height: 15px;
    width: 35px;
    background: transparent;
    border: 3px solid var(--red-neon);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: none;
    transform: translateY(4px);
}

/* Form controls */
.glow-button {
    font-family: var(--font-sans);
    background: var(--primary-neon);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.glow-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px var(--primary-glow);
    background: #8b29ff;
}

.glow-button.primary {
    background: var(--cyan-neon);
    color: #04060f;
    font-weight: 700;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.glow-button.primary:hover {
    background: #5effff;
    box-shadow: 0 0 25px var(--cyan-glow);
}

.text-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 15px;
    text-decoration: underline;
}

.text-button:hover {
    color: var(--text-white);
}

.error-msg {
    color: var(--red-neon);
    font-size: 0.9rem;
    margin-top: 15px;
}

.passcode-input-container {
    width: 100%;
    margin-bottom: 25px;
}

.passcode-input-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    letter-spacing: 12px;
    color: var(--text-white);
    outline: none;
}

.passcode-input-container input:focus {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 10px var(--cyan-glow);
}

/* Dashboard Layout */
.dashboard-body {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    margin-bottom: 30px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-emoji {
    font-size: 2.2rem;
}

.header-logo h1 {
    font-size: 1.4rem;
    font-weight: 800;
}

.status-indicator {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.status-online {
    color: var(--green-neon);
    text-shadow: 0 0 5px var(--green-glow);
}

.status-paused {
    color: #ffaa00;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.35);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 10px 18px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.danger:hover {
    background: rgba(255, 7, 58, 0.2);
    border-color: var(--red-neon);
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 25px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.grid-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Mascot Panel Detail */
.mascot-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.omahabot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.robot-head {
    width: 90px;
    height: 70px;
    background: #14172e;
    border: 3px solid var(--cyan-neon);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px;
    box-shadow: 0 0 15px var(--cyan-glow);
    margin-bottom: 20px;
}

.ear {
    width: 8px;
    height: 16px;
    background: var(--cyan-neon);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.ear.left { left: -8px; border-radius: 4px 0 0 4px; }
.ear.right { right: -8px; border-radius: 0 4px 4px 0; }

.antenna {
    width: 3px;
    height: 12px;
    background: var(--cyan-neon);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.antenna-bulb {
    width: 10px;
    height: 10px;
    background: var(--cyan-neon);
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: -3px;
    box-shadow: 0 0 8px var(--cyan-neon);
}

.glow-anim {
    animation: flash 1.5s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.mascot-info h2 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: none;
}

.mascot-info p {
    font-family: var(--font-mono);
    color: var(--cyan-neon);
    font-size: 0.9rem;
}

/* Stats Overview */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.stat-value.profit {
    color: var(--green-neon);
    text-shadow: 0 0 10px var(--green-glow);
}

.stat-value.loss {
    color: var(--red-neon);
    text-shadow: 0 0 10px var(--red-glow);
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Controls Panel */
.control-group {
    display: flex;
    flex-direction: column;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.control-row h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.control-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.control-divider {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 15px 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2c2f48;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--green-neon);
    box-shadow: 0 0 10px var(--green-glow);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Size Setter Input */
.size-setter {
    display: flex;
    align-items: center;
    background: #14172e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.size-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.size-setter input {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 50px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    outline: none;
}

/* Hide number spinner buttons */
.size-setter input::-webkit-outer-spin-button,
.size-setter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.control-feedback {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.w-full { width: 100%; }
.mt-4 { margin-top: 15px; }

/* Chart Panel Layout */
.chart-card {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .chart-card {
        grid-column: span 1;
    }
}

.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}

/* Trades Log Panel */
.log-card {
    grid-column: span 3;
}

@media (max-width: 1024px) {
    .log-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .log-card {
        grid-column: span 1;
    }
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.trades-table th, .trades-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trades-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.trades-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge.win {
    background: rgba(57, 255, 20, 0.15);
    color: var(--green-neon);
}

.badge.loss {
    background: rgba(255, 7, 58, 0.15);
    color: var(--red-neon);
}

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

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
    background: transparent;
}

.page-info {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}
