:root {
  --bg-color: #07090e;
  --bg-card: rgba(13, 17, 28, 0.7);
  --border-color: rgba(255, 255, 255, 0.05);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --accent-color: #ffaa00;
  --accent-gradient: linear-gradient(135deg, #ffaa00 0%, #ff6600 100%);
  --accent-glow: rgba(255, 170, 0, 0.15);
  
  --success-color: #10b981;
  --success-glow: rgba(16, 185, 129, 0.1);
  --warning-color: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.1);
  --error-color: #ef4444;
  --error-glow: rgba(239, 68, 68, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Futuristic background styles */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0d1222 0%, #07090e 100%);
  z-index: -3;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: 0.6;
}

.glow-1 {
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background-color: rgba(255, 119, 0, 0.08);
}

.glow-2 {
  bottom: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background-color: rgba(16, 185, 129, 0.05);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Header style */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 26px;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 small {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 10px;
  letter-spacing: 0.08em;
  background-color: rgba(255, 255, 255, 0.02);
}

/* Cards & Panels */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Login Panel styles */
.card-login {
  max-width: 400px;
  margin: 80px auto;
  text-align: center;
}

.lock-header {
  margin-bottom: 25px;
}

.lock-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
}

.card-login h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.card-login p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Inputs and Groups */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group.flex-1 {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 15px;
}

label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

input, select {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
  background-color: rgba(255, 255, 255, 0.04);
}

select option {
  background-color: #07090e;
  color: white;
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000000;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 119, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.btn-logout {
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error-color);
  font-size: 12px;
  padding: 8px 14px;
}

.btn-logout:hover {
  background-color: var(--error-color);
  color: white;
}

.error-msg {
  background-color: var(--error-glow);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
}

/* Metrics Overview styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.metric-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px var(--accent-glow);
}

.metric-icon.green {
  background-color: var(--success-glow);
  box-shadow: 0 0 10px var(--success-glow);
  color: var(--success-color);
}

.metric-icon.orange {
  background-color: var(--warning-glow);
  box-shadow: 0 0 10px var(--warning-glow);
  color: var(--warning-color);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
}

/* Grid layout for Dashboard main page */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Key Generator specific styles */
.generated-box {
  background-color: rgba(255, 170, 0, 0.03);
  border: 1px dashed rgba(255, 170, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.2s ease-out;
}

.gen-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.gen-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gen-val {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-color);
  letter-spacing: 0.05em;
}

.btn-copy-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.1s ease;
}

.btn-copy-icon:active {
  transform: scale(0.9);
}

/* Instructions card styling */
.card-instructions {
  background-color: rgba(255, 255, 255, 0.01);
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.help-item {
  display: flex;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.help-bullet {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* License Table Registry styling */
.card-table {
  padding: 0;
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

th {
  background-color: rgba(0,0,0,0.2);
  padding: 15px 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

td {
  padding: 15px 25px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Status Badge styling */
.badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
}

.badge.pending {
  background-color: var(--warning-glow);
  color: var(--warning-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.active {
  background-color: var(--success-glow);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.suspended {
  background-color: var(--error-glow);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.expired {
  background-color: rgba(255,255,255,0.02);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.code-field {
  font-family: monospace;
  font-weight: bold;
  background-color: rgba(255,255,255,0.03);
  padding: 3px 6px;
  border-radius: 4px;
}

/* Row Action Buttons */
.btn-action-group {
  display: flex;
  gap: 8px;
}

.btn-table {
  font-size: 11px;
  font-weight: bold;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-suspend {
  color: var(--warning-color);
  background-color: var(--warning-glow);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.btn-suspend:hover {
  background-color: var(--warning-color);
  color: black;
}

.btn-restore {
  color: var(--success-color);
  background-color: var(--success-glow);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.btn-restore:hover {
  background-color: var(--success-color);
  color: black;
}

.btn-delete {
  color: var(--error-color);
  background-color: var(--error-glow);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-delete:hover {
  background-color: var(--error-color);
  color: white;
}
