* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(0, 174, 255, .35), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0, 89, 255, .35), transparent 40%),
        linear-gradient(135deg, #06152f, #071b3f 45%, #020711);
}

a {
    color: inherit;
}

.glass {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    padding: 20px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
}

.nav a {
    display: block;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.08);
}

.nav a:hover {
    background: rgba(255,255,255,.18);
}

.main {
    flex: 1;
    padding: 24px;
}

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

.card {
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat h3 {
    font-size: 30px;
    margin: 8px 0 0;
}

.stat small {
    opacity: .75;
    font-weight: bold;
}

.btn,
button {
    background: linear-gradient(135deg, #00aaff, #005dff);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn.dark {
    background: rgba(0,0,0,.4);
}

.btn.red,
button.red {
    background: linear-gradient(135deg, #ff4d4d, #b00020);
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: white;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,.65);
}

option {
    color: #111;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-align: left;
    font-size: 14px;
}

th {
    background: rgba(255,255,255,.12);
}

.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.active {
    background: rgba(0,255,140,.18);
    color: #7dffbd;
}

.inactive {
    background: rgba(255,0,80,.18);
    color: #ff9bb8;
}

.msg {
    background: rgba(0,255,140,.16);
    color: #9fffd0;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error {
    background: rgba(255,0,80,.16);
    color: #ffb3c6;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 15px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: auto;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .topbar {
        display: block;
    }
}