/* Premium Modern Overrides for portal.php */
:root {
  --brand-orange: #f97316;
  --brand-green: #22c55e;
  --brand-blue: #3b82f6;
  --brand-cyan: #06b6d4;
  --panel: rgba(255, 255, 255, 0.85);
  --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --radius-xl: 20px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  color: #1e293b;
}

/* Sidebar upgrades */
.sidebar {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-right: var(--glass-border);
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  padding: 30px 16px;
  width: 260px;
  transition: all 0.3s ease;
}

.sidebar .nav a {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 6px;
  color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .nav a:hover, .sidebar .nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateX(4px);
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.sidebar-brand-card {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Main Content Area */
.main {
  background: transparent;
  padding: 24px 40px;
}

.topbar {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 20px 30px;
  box-shadow: var(--shadow-premium);
  border: var(--glass-border);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cards & Modules */
.card, .module-card, .ops-card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: var(--glass-border);
  box-shadow: var(--shadow-premium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover, .module-card:hover, .ops-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,255,255,0.8);
}

.module-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  text-align: left;
  gap: 12px;
}

.module-card strong {
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 700;
}

.module-card span {
  font-size: 0.9rem;
  color: #64748b;
  flex-grow: 1;
}

.module-action {
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

.module-card:hover .module-action {
  color: var(--brand-orange);
}

/* Grids */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Buttons */
.btn.primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: all 0.2s;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Hero Section */
.command-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.command-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dashboard Ops Board */
.ops-board {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-premium);
  border: var(--glass-border);
}
