* { box-sizing: border-box; }

#particles-js {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #444444;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #444444;
    color: #f7f3e7;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px;
    position: relative;
}

.app-shell {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.brand {
    text-align: center;
    margin-bottom: 16px;
}

.brand-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.brand-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-btn {
    width: 30px;
    height: 30px;
    opacity: 0.9;
}

.card {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
}

.welcome {
    color: #ffc800;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px;
}

.msg-welcome {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 16px;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: none;
    border-radius: 6px;
    background: #f7f3e7;
    color: #222;
    font-size: 15px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: opacity .15s ease;
}

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
    background: #000000;
    color: #f7f3e7;
}

.btn-cmd {
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    height: 45px;
    transition: background 0.2s;
}

.btn-cmd.btn-sending {
    background: #888888 !important;
}

.btn-cmd.btn-done {
    background: #2fae5f !important;
}

.btn-cmd.btn-timeout {
    background: #d94040 !important;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 14px;
    text-align: left;
}

.alert-error {
    background: rgba(255, 80, 80, 0.15);
    color: #ff8a8a;
    border: 1px solid rgba(255, 80, 80, 0.4);
}

.alert-success {
    background: rgba(80, 200, 120, 0.15);
    color: #7be3a3;
    border: 1px solid rgba(80, 200, 120, 0.4);
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    text-align: left;
}

.status-table td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.status-table .label { color: #cccccc; }
.status-table .value { color: #ffffff; text-align: right; }

.muted {
    color: #cccccc;
}

.small {
    font-size: 12px;
    margin-top: 16px;
}

a {
    color: #ffc800;
}
