:root {
    --bg: #081124;
    --panel: rgba(14, 24, 44, 0.66);
    --panel-border: rgba(167, 202, 255, 0.24);
    --accent: #30e3ca;
    --accent-2: #4f8cff;
    --text: #ebf4ff;
    --muted: #9cb7d7;
    --danger: #ff5c8a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(circle at 10% 0%, #16315e, transparent 48%),
                radial-gradient(circle at 95% 100%, #072f4f, transparent 43%),
                var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.code-rain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.code-symbol {
    position: absolute;
    bottom: -32px;
    left: var(--x, 50vw);
    color: rgba(163, 215, 255, 0.18);
    font-family: "Courier New", monospace;
    font-size: var(--size, 18px);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(93, 172, 255, 0.14);
    animation: float-code var(--dur, 9s) linear forwards;
    transform: translate3d(0, 0, 0);
}

.app-shell {
    z-index: 1;
    position: relative;
    width: min(1200px, 94vw);
}

.panel {
    backdrop-filter: blur(16px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.panel-login {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 36px;
    animation: rise 0.6s ease;
}

.panel-login h1 {
    margin: 0 0 8px;
}

.panel-login p {
    margin: 0 0 22px;
    color: var(--muted);
}

.form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

input {
    border: 1px solid rgba(159, 198, 255, 0.34);
    background: rgba(7, 18, 36, 0.65);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(48, 227, 202, 0.15);
}

button {
    border: 0;
    border-radius: 11px;
    color: #071427;
    background: linear-gradient(135deg, var(--accent), #53d7ff);
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(70, 186, 255, 0.25);
}

button.ghost {
    background: rgba(89, 152, 255, 0.2);
    color: var(--text);
    border: 1px solid rgba(151, 189, 255, 0.35);
}

button.danger {
    background: linear-gradient(135deg, rgba(255, 92, 138, 0.94), rgba(255, 130, 90, 0.9));
    color: white;
}

.error {
    min-height: 20px;
    color: #ff9ab9;
    font-size: 13px;
}

.hidden {
    display: none;
}

.panel-dashboard {
    padding: 26px;
    animation: rise 0.6s ease;
}

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

.topbar h2 {
    margin: 0;
}

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.table-wrap {
    overflow: auto;
    border: 1px solid rgba(164, 200, 255, 0.2);
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(164, 200, 255, 0.14);
}

th {
    color: #b3cfff;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(13, 27, 52, 0.7);
}

td input {
    width: 160px;
    padding: 8px 10px;
}

.add-row td {
    background: rgba(48, 227, 202, 0.06);
}

.add-row td:first-child {
    font-weight: 700;
    color: #9de7dc;
}

.add-row input {
    width: 100%;
    min-width: 120px;
}

.row-actions {
    display: flex;
    gap: 8px;
}

.row-actions button {
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12px;
}

.table-message {
    margin-top: 12px;
    color: var(--muted);
    min-height: 20px;
}

@media (max-width: 860px) {
    .panel-dashboard {
        padding: 18px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-code {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(18deg);
        opacity: 0;
    }
}
