* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    background: #f5f6fa;
    color: #1f2430;
}
a { color: #6c5ce7; text-decoration: none; }
a:hover { text-decoration: underline; }

.topnav {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e3e5ea;
}
.topnav-brand { font-weight: 700; }
.topnav-links { display: flex; gap: 16px; flex: 1; }
.topnav-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #666; }

.link-button {
    background: none;
    border: none;
    color: #6c5ce7;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
}
.auth-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-card h1 { font-size: 18px; margin: 0 0 8px; }
.auth-card label { font-size: 13px; color: #666; }
.auth-card input {
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.auth-card button {
    margin-top: 8px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #6c5ce7;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.error { color: #e05252; font-size: 13px; margin: 0; }

.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}
.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; color: #666; margin-top: 4px; }
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e05252;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
table th, table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
table th { background: #fafafa; font-weight: 600; color: #555; }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select { padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    background: #6c5ce7;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
}
.btn-danger { background: #e05252; }
.btn-secondary { background: #eee; color: #333; }
