* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #0f1115;
    color: #e6e6e6;
}

a { color: #6fb3ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #171a21;
    padding: 14px 28px;
    border-bottom: 1px solid #262b36;
}

.topbar .brand { font-weight: 700; font-size: 18px; color: #fff; }

.topbar nav a {
    margin-left: 18px;
    color: #b7c0d8;
    font-size: 14px;
}
.topbar nav a.active { color: #fff; font-weight: 600; }

.topbar .user { font-size: 13px; color: #8b93a7; }

.container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 20px;
}

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

h1 { font-size: 22px; margin: 0 0 18px; color: #fff; }
h2 { font-size: 17px; margin: 0 0 14px; color: #fff; }

.search-box {
    display: flex;
    gap: 10px;
}

input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
    background: #0f1115;
    border: 1px solid #2c313d;
    color: #e6e6e6;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

button, .btn {
    background: #2f6fed;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
button:hover, .btn:hover { background: #255ac9; text-decoration:none; }
.btn.danger { background: #d9424a; }
.btn.danger:hover { background: #b73139; }
.btn.secondary { background: #333a48; }
.btn.secondary:hover { background: #3f4759; }

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

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge.green { background: #163c25; color: #6fe39c; }
.badge.red { background: #3c1618; color: #ff8a8f; }
.badge.gray { background: #262b36; color: #9aa3b8; }
.badge.gold { background: #3d3316; color: #f0c95a; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.stat-box { background: #0f1115; border: 1px solid #232732; border-radius: 8px; padding: 14px; text-align: center; }
.stat-box .value { font-size: 22px; font-weight: 700; color: #fff; }
.stat-box .label { font-size: 12px; color: #8b93a7; margin-top: 4px; }

.form-row { margin-bottom: 14px; }
.form-row label { display:block; font-size: 13px; color: #b7c0d8; margin-bottom: 6px; }

.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.flash.ok { background: #163c25; color: #6fe39c; }
.flash.err { background: #3c1618; color: #ff8a8f; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid #262b36; }
.tabs a { padding: 10px 16px; color: #8b93a7; font-size: 14px; border-bottom: 2px solid transparent; }
.tabs a.active { color: #fff; border-bottom-color: #2f6fed; }

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