/* Modul- & Lizenz-Verwaltung – Admin-UI */
:root {
    --bg: #0f1419;
    --bg-card: #1a2332;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    --border: #30363d;
    --radius: 8px;
}

* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 1rem 1.5rem; }
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}
header .flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
header h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }
header nav { display: flex; gap: 1rem; }
header nav a { color: var(--text-muted); }
header nav a:hover, header nav a.active { color: var(--text); text-decoration: none; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.card h2 { margin: 0 0 1rem; font-size: 1.1rem; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; }
tr:hover td { background: rgba(255,255,255,0.02); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; color: var(--text-muted); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.btn-secondary { background: var(--border); }
.btn-secondary:hover { background: #444; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #4caf50; }

.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: rgba(63,185,80,0.2); border: 1px solid var(--success); color: #7ee787; }
.alert-error { background: rgba(248,81,73,0.2); border: 1px solid var(--danger); color: #ff7b72; }
.alert-warning { background: rgba(210,153,34,0.2); border: 1px solid var(--warning); color: #e3b341; }

.stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stats .stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; min-width: 140px; }
.stats .stat .num { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.stats .stat .label { font-size: 0.85rem; color: var(--text-muted); }

.mono { font-family: 'Consolas', 'Monaco', monospace; font-size: 0.9rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

.search-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search-form input { flex: 1; min-width: 200px; }
.search-form select { width: auto; min-width: 120px; }

.logout-link { color: var(--text-muted); font-size: 0.9rem; }
.copy-btn { cursor: pointer; padding: 0.2rem 0.5rem; font-size: 0.8rem; }
