/* ==========================================================================
   fxpanel - Admin Dashboard Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --fx-bg: #0b0f19;
  --fx-sidebar: #111827;
  --fx-card: #1f2937;
  --fx-border: #374151;
  --fx-text: #f9fafb;
  --fx-muted: #9ca3af;
  --fx-primary: #ff6b00;
  --fx-accent: #3b82f6;
  --fx-success: #10b981;
  --fx-warning: #f59e0b;
  --fx-danger: #ef4444;
  --fx-radius: 12px;
  --fx-font: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--fx-font);
  background: var(--fx-bg);
  color: var(--fx-text);
  min-height: 100vh;
  display: flex;
}

/* Layout */
.fx-wrapper {
  display: flex;
  width: 100%;
}

.fx-sidebar {
  width: 260px;
  background: var(--fx-sidebar);
  border-right: 1px solid var(--fx-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.fx-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--fx-border);
}

.fx-brand-logo {
  width: 40px;
  height: 40px;
  background: var(--fx-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.fx-brand-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.fx-brand-text h3 span {
  color: var(--fx-primary);
}

.fx-nav {
  padding: 20px 12px;
  list-style: none;
  flex: 1;
}

.fx-nav-item {
  margin-bottom: 6px;
}

.fx-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--fx-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.fx-nav-link i {
  font-size: 18px;
  width: 24px;
}

.fx-nav-link:hover, .fx-nav-link.active {
  background: rgba(255, 107, 0, 0.15);
  color: var(--fx-primary);
}

.fx-main {
  margin-left: 260px;
  flex: 1;
  padding: 36px 50px;
  width: calc(100% - 260px);
}

.fx-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.fx-topbar h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.fx-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fx-card);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--fx-border);
}

.fx-user-avatar {
  width: 32px;
  height: 32px;
  background: var(--fx-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Dashboard Cards / Grid */
.fx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.fx-stat-card {
  background: var(--fx-card);
  padding: 24px;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fx-stat-info p {
  color: var(--fx-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.fx-stat-info h2 {
  font-size: 2rem;
  font-weight: 800;
}

.fx-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-orange { background: rgba(255, 107, 0, 0.15); color: #ff6b00; }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

/* Charts & Analytics Container */
.fx-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.fx-card-box {
  background: var(--fx-card);
  padding: 24px;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
}

.fx-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.fx-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Tables */
.fx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fx-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fx-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fx-border);
}

.fx-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fx-border);
  font-size: 0.9rem;
}

.fx-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-pending { background: rgba(245, 158, 11, 0.2); color: var(--fx-warning); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--fx-success); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--fx-danger); }

/* Buttons & Inputs */
.fx-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.fx-btn-primary { background: var(--fx-primary); color: #fff; }
.fx-btn-primary:hover { background: #e05d00; }
.fx-btn-danger { background: var(--fx-danger); color: #fff; }
.fx-btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.fx-input, .fx-select, .fx-textarea {
  width: 100%;
  padding: 12px;
  background: #111827;
  border: 1px solid var(--fx-border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.fx-input:focus, .fx-select:focus, .fx-textarea:focus {
  outline: none;
  border-color: var(--fx-primary);
}

/* Login Page Specific */
.fx-login-body {
  background: radial-gradient(circle at center, #111827 0%, #0b0f19 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
}

.fx-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--fx-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--fx-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
