* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #f8fafc;
    color: #0f172a;
}

.container {
    max-width: 1250px;
    margin: 20px auto;
    padding: 0 15px;
}

.card {
    background: #fff;
    padding: 22px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.center-box {
    width: 380px;
    margin: 80px auto;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #475569;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
}

textarea {
    height: 60px;
}

.btn {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 13px;
}

.btn.primary {
    background: #2563eb;
    color: #fff;
}

.btn.secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn.secondary.active {
    background: #0284c7;
    color: #fff;
}

.btn.success {
    background: #16a34a;
    color: #fff;
}

.btn.danger {
    background: #dc2626;
    color: #fff;
}

.app-header {
    background: #0f172a;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 6px;
    background: #059669;
}

.badge.role {
    background: #3b82f6;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

table,
th,
td {
    border: 1px solid #cbd5e1;
    text-align: center;
}

th {
    background: #f8fafc;
    padding: 8px;
    font-weight: 700;
}

td {
    padding: 6px;
}

.lock-indicator {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
}

.locked {
    background: #fee2e2;
    color: #dc2626;
}

.unlocked {
    background: #dcfce7;
    color: #16a34a;
}