* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #0f1115;
    color: #e6e6e6;
}
a { color: #4da3ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    background: #171a21;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #262a33;
}
.topbar .brand { font-weight: 700; font-size: 16px; color: #fff; }
.topbar .brand span { color: #4da3ff; }

.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }

.card {
    background: #171a21;
    border: 1px solid #262a33;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

h1, h2, h3 { color: #fff; margin-top: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #262a33; text-align: left; }
th { color: #9aa4b2; font-weight: 600; text-transform: uppercase; font-size: 12px; }
tr:hover td { background: #1c2027; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-green { background: #123b23; color: #4ade80; }
.badge-yellow { background: #3b2f12; color: #fbbf24; }
.badge-red { background: #3b1212; color: #f87171; }
.badge-gray { background: #262a33; color: #9aa4b2; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #262a33; color: #e6e6e6; }
.btn-secondary:hover { background: #30343f; }

form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #9aa4b2;
}
form .field { margin-bottom: 16px; }
input[type=text], input[type=password], input[type=datetime-local] {
    width: 100%;
    padding: 10px 12px;
    background: #0f1115;
    border: 1px solid #333844;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}
input[type=checkbox] { width: 16px; height: 16px; }

.login-wrap {
    max-width: 360px;
    margin: 80px auto;
}

.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error { background: #3b1212; color: #f87171; border: 1px solid #5c1a1a; }
.alert-success { background: #123b23; color: #4ade80; border: 1px solid #1a5c33; }

.actions a { margin-right: 10px; }
.small-text { color: #9aa4b2; font-size: 13px; }
.top-actions { display:flex; justify-content: space-between; align-items:center; margin-bottom: 16px; }
