/* Admin Enterprise UI - Vercel / Stripe Inspired Dark Theme */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-surface: #171717;
  --bg-surface-hover: #262626;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(99, 102, 241, 0.6);
  
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-primary: #6366f1; /* Indigo */
  --accent-hover: #4f46e5;
}

body.admin-enterprise {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.app-sidebar {
  width: 260px;
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset-y: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.3s ease;
}

.app-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}

.app-header {
  height: 64px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
}

.app-content {
  padding: 32px 24px;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

/* Sidebar Links */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  margin: 4px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}
.sidebar-link.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: inset 2px 0 0 var(--accent-primary);
}

/* Cards */
.enterprise-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.enterprise-card:hover {
  border-color: var(--border-strong);
}

/* Data Tables */
.enterprise-table-container {
  width: 100%;
  overflow-x: auto;
}
.enterprise-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}
.enterprise-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-primary);
}
.enterprise-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.enterprise-table tr:last-child td {
  border-bottom: none;
}
.enterprise-table tbody tr:hover td {
  background-color: var(--bg-surface);
}

/* Forms */
.enterprise-input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
}
.enterprise-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.enterprise-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Buttons */
.enterprise-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.enterprise-btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}
.enterprise-btn-primary:hover {
  background-color: #d4d4d8;
}
.enterprise-btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.enterprise-btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-emerald { background-color: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-rose { background-color: rgba(244, 63, 94, 0.1); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.2); }
.badge-amber { background-color: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-indigo { background-color: rgba(99, 102, 241, 0.1); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); }

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-main {
    margin-left: 0;
  }
  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }
}
