:root {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --danger: #ef4444;
  --success: #10b981;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  background-image: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1), transparent 25%);
  color: var(--text-color);
  min-height: 100vh;
}

.app-container {
  display: flex;
  height: 100vh;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.sidebar {
  width: 280px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.logo h2 { margin: 0; font-weight: 600; font-size: 1.5rem; }

nav { display: flex; flex-direction: column; gap: 0.5rem; }
nav a {
  color: #94a3b8; text-decoration: none; padding: 0.75rem 1rem;
  border-radius: 8px; transition: all 0.2s;
}
nav a:hover, nav a.active {
  background: rgba(255, 255, 255, 0.05); color: #fff;
}

.status-box {
  margin-top: auto; padding: 1rem; border-radius: 8px;
  background: rgba(0,0,0,0.2); font-size: 0.875rem;
}
.status-indicator {
  display: flex; align-items: center; gap: 0.5rem; color: var(--success);
  margin-top: 0.5rem; font-weight: 500;
}
.status-indicator::before {
  content: ''; display: block; width: 8px; height: 8px;
  background: var(--success); border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
}

.main-content {
  flex: 1; padding: 3rem; overflow-y: auto;
}

header h1 { font-size: 2.5rem; margin: 0 0 0.5rem 0; }
header p { color: #94a3b8; margin: 0 0 2rem 0; }

.actions-panel {
  padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem;
}

.form-group { display: flex; gap: 1rem; align-items: center; }
select {
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
  color: white; padding: 0.75rem 1rem; border-radius: 8px; font-size: 1rem;
  outline: none;
}
select option { background: var(--bg-color); }

.btn-primary {
  background: var(--primary); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); }

.table-panel { padding: 1.5rem; border-radius: 12px; }
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.btn-icon { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; transition: transform 0.2s;}
.btn-icon:hover { transform: rotate(45deg); }

table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #94a3b8; font-weight: 500; padding: 1rem; border-bottom: 1px solid var(--glass-border); }
td { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

.badge-active { background: rgba(16, 185, 129, 0.2); color: var(--success); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500;}
.badge-inactive { background: rgba(239, 68, 68, 0.2); color: var(--danger); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500;}

.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); padding: 0.4rem 0.8rem; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.2s;}
.btn-danger:hover { background: var(--danger); color: white; }

/* Classes extras para o SaaS (Login e Painel) */
.flex-center { display: flex; justify-content: center; align-items: center; }
.auth-card { width: 100%; max-width: 400px; padding: 2.5rem; border-radius: 16px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; border-radius: 12px; }
.hidden { display: none !important; }

.tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.tab { flex: 1; background: transparent; border: none; color: #94a3b8; font-size: 1rem; font-weight: 500; cursor: pointer; transition: color 0.2s; padding-bottom: 0.5rem; border-bottom: 2px solid transparent;}
.tab.active { color: #fff; border-bottom: 2px solid var(--primary); }

.input-field { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: white; padding: 1rem; border-radius: 8px; font-size: 1rem; outline: none; margin-bottom: 1rem; box-sizing: border-box;}
.input-field:focus { border-color: var(--primary); }

.grid-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.plano-card { background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; text-align: center; transition: transform 0.2s; }
.plano-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.plano-card h3 { font-size: 2rem; margin: 0 0 0.5rem 0; color: #fff; }
.plano-card p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1rem; }
.plano-card.featured { border-color: var(--primary); background: rgba(59, 130, 246, 0.1); }

.checkout-box { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); }
.block { display: block; }
.manual-list li { margin-bottom: 1rem; }
