* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #1f2430;
}
.topbar {
    background: #1f2937;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar a { color: #93c5fd; text-decoration: none; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }

h2 { font-size: 16px; margin-top: 28px; }

.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.form-inline input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}
.form-inline button {
    padding: 8px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.hint { color: #6b7280; font-size: 12px; margin-top: -4px; }

.license-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 13px;
}
.license-table th, .license-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.license-table th { background: #f9fafb; font-weight: 600; }

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.badge-active { background: #16a34a; }
.badge-inactive { background: #9ca3af; }
.badge-disabled { background: #dc2626; }
.badge-expired { background: #d97706; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline; }
.btn-small {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}
.btn-green { background: #16a34a; }
.btn-orange { background: #d97706; }
.btn-blue { background: #2563eb; }
.btn-red { background: #dc2626; }

.edit-row td { background: #f9fafb; }

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.login-box label { font-size: 12px; color: #555; margin-top: 6px; }
.login-box input {
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}
.login-box button {
    margin-top: 14px;
    padding: 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
