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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.screen {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Login Screen */
#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-box input:focus {
    outline: none;
    border-color: #4a9eff;
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.login-box button:hover {
    background: #3a8eef;
    transform: translateY(-2px);
}

.error {
    color: #ff6b6b;
    text-align: center;
    margin-top: 15px;
    display: none;
}

/* Dashboard */
header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
}

.btn-logout {
    padding: 10px 20px;
    background: #ff6b6b;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.btn-logout:hover {
    background: #ee5a5a;
}

main {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #4a9eff;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card.full-width {
    grid-column: 1 / -1;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4a9eff;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 8px 0;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status.running {
    background: #00d26a;
    color: #000;
}

.status.stopped {
    background: #ff6b6b;
    color: #fff;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #4a9eff;
    color: #fff;
}

.btn-primary:hover {
    background: #3a8eef;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ff6b6b;
    color: #fff;
}

.btn-danger:hover {
    background: #ee5a5a;
}

/* Console */
.console {
    background: #0a0a0f;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.console-line {
    margin: 2px 0;
    padding: 2px 0;
}

.console-line.info {
    color: #4a9eff;
}

.console-line.error {
    color: #ff6b6b;
}

.console-line.success {
    color: #00d26a;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    main {
        padding: 20px;
    }

    .stats {
        flex-direction: column;
    }

    .stat {
        width: 100%;
    }
}
