/* Rein Scalper Pro - License Manager UI */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f4f6f8; color: #222; font-size: 14px; }

.topbar { background: linear-gradient(135deg, #1e3a8a, #1e40af); color: #fff; padding: 14px 24px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.brand { font-size: 18px; font-weight: 600; }
.user-info { display: flex; align-items: center; gap: 12px; }
.user-info span { color: #cdd9f0; }

.layout { display: flex; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 100px); }
.sidebar { background: #fff; width: 220px; padding: 20px 0; box-shadow: 1px 0 3px rgba(0,0,0,0.05); }
.sidebar a { display: block; padding: 12px 22px; color: #444; text-decoration: none; border-left: 3px solid transparent; }
.sidebar a:hover { background: #f0f4f8; color: #1e40af; }
.sidebar a.active { background: #e8f0fe; color: #1e40af; border-left-color: #1e40af; font-weight: 600; }
.content { flex: 1; padding: 24px; }

h2 { margin-bottom: 18px; color: #1e3a8a; }
h3 { margin: 16px 0 10px; color: #444; }

.card { background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; padding: 18px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-left: 4px solid #1e40af; }
.stat-card .stat-label { color: #888; font-size: 12px; text-transform: uppercase; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #1e3a8a; margin-top: 4px; }
.stat-card.green { border-color: #059669; } .stat-card.green .stat-value { color: #059669; }
.stat-card.yellow { border-color: #d97706; } .stat-card.yellow .stat-value { color: #d97706; }
.stat-card.red { border-color: #dc2626; } .stat-card.red .stat-value { color: #dc2626; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8fafc; color: #555; font-weight: 600; font-size: 12px; text-transform: uppercase; }
tr:hover td { background: #fafbfc; }
td.mono { font-family: Monaco, Consolas, monospace; font-size: 12px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-paused { background: #fef3c7; color: #92400e; }
.badge-deactivated { background: #fee2e2; color: #991b1b; }
.badge-unlocked { background: #e5e7eb; color: #4b5563; }

.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: none; line-height: 1; }
.btn-primary { background: #1e40af; color: #fff; } .btn-primary:hover { background: #1e3a8a; }
.btn-success { background: #059669; color: #fff; } .btn-success:hover { background: #047857; }
.btn-warning { background: #d97706; color: #fff; } .btn-warning:hover { background: #b45309; }
.btn-danger { background: #dc2626; color: #fff; } .btn-danger:hover { background: #991b1b; }
.btn-secondary { background: #6b7280; color: #fff; } .btn-secondary:hover { background: #4b5563; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-block { display: block; width: 100%; text-align: center; }

input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
   width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: #1e40af; box-shadow: 0 0 0 3px rgba(30,64,175,0.1); }
label { display: block; margin: 12px 0 4px; font-weight: 500; color: #444; font-size: 13px; }
.form-row { margin-bottom: 14px; }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #059669; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-info { background: #dbeafe; color: #1e3a8a; border-left: 4px solid #1e40af; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); }
.login-box { background: #fff; padding: 36px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 360px; }
.login-box h2 { text-align: center; margin-bottom: 8px; }
.login-box p { text-align: center; color: #777; margin-bottom: 22px; font-size: 13px; }

.bottom { text-align: center; padding: 16px; color: #888; font-size: 12px; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
.filter-bar select, .filter-bar input { width: auto; }

.license-key { font-family: Monaco, Consolas, monospace; font-size: 13px; font-weight: 600; color: #1e40af; }
.copy-btn { padding: 2px 8px; font-size: 11px; }

.actions { display: flex; gap: 6px; }
