/**
 * Brand Dashboard - Styles
 *
 * @package AskCollab Brand Dashboard
 * @version 1.1.2
 */

/* ========================================
   Global Variables & Reset
   ======================================== */
:root {
  --m3-navy: #001d35;
  --m3-emerald: #00875a;
  --m3-gold: #b45309;
  --m3-red: #b91c1c;
  --m3-secondary: #535f70;
  --m3-surface: #f1f4f9;
  --m3-white: #ffffff;
  --m3-border: #c4c6d0;
  
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  --font-human: 'Plus Jakarta Sans', sans-serif;
  --font-machine: 'IBM Plex Mono', monospace;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Dashboard Layout
   ======================================== */
.abd-dashboard-layout {
  font-family: var(--font-human);
  display: flex;
  height: 100vh;
  background: var(--m3-surface);
  color: var(--m3-navy);
  overflow: hidden;
  box-sizing: border-box;
}

.abd-dashboard-layout * { box-sizing: border-box; }

/* ========================================
   Sidebar
   ======================================== */
.abd-sidebar {
  width: 260px;
  background: var(--m3-navy);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
}

.abd-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 40px;
  padding: 0 8px;
}

.abd-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--m3-emerald);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.abd-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.abd-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.abd-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.abd-nav-item.active {
  background: var(--m3-emerald);
  color: white;
}

.abd-nav-item i {
  font-size: 1.25rem;
}

.abd-user-profile {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.abd-avatar {
  width: 40px;
  height: 40px;
  background: var(--m3-emerald);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.abd-user-info {
  flex: 1;
}

.abd-user-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.abd-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.abd-logout-icon {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
}

.abd-logout-icon:hover {
  color: white;
}

/* ========================================
   Main Content
   ======================================== */
.abd-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
}

.abd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.abd-header h1 {
  font-size: 1.75rem;
  margin: 0 0 4px;
  font-weight: 800;
}

.abd-header p {
  margin: 0;
  color: var(--m3-secondary);
  font-size: 0.9375rem;
}

.abd-header-actions {
  display: flex;
  gap: 12px;
}

.abd-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--m3-border);
  background: white;
  color: var(--m3-navy);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}

.abd-icon-btn:hover {
  border-color: var(--m3-navy);
}

.abd-dot {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #b91c1c;
  border-radius: 50%;
  border: 2px solid white;
}

/* ========================================
   Stats Grid
   ======================================== */
.abd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.abd-stat-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.abd-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.abd-stat-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.abd-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--m3-secondary);
}

.abd-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.abd-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.abd-stat-trend {
  font-size: 0.8125rem;
  color: var(--m3-secondary);
}

/* ========================================
   Content Grid
   ======================================== */
.abd-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.abd-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.abd-panel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.abd-panel-header h3 {
  font-size: 1.125rem;
  margin: 0;
  font-weight: 700;
}

.abd-link-small {
  font-size: 0.8125rem;
  color: var(--m3-emerald);
  font-weight: 600;
  text-decoration: none;
}

.abd-link-small:hover {
  text-decoration: underline;
}

/* Quick Actions */
.abd-actions-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.abd-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.abd-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--m3-border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: var(--m3-navy);
}

.abd-action-btn:hover {
  border-color: var(--m3-navy);
  transform: translateY(-2px);
}

.abd-action-btn i {
  font-size: 1.5rem;
}

.abd-action-btn.primary {
  background: var(--m3-navy);
  color: white;
  border: none;
}

.abd-action-btn.primary:hover {
  background: #002a4a;
}

/* Chart Visualization */
.abd-chart-visual {
  background: var(--m3-surface);
  border-radius: 16px;
  padding: 20px;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.chart-bar {
  flex: 1;
  background: var(--m3-navy);
  border-radius: 8px 8px 0 0;
  opacity: 0.8;
  transition: height 0.5s ease, opacity 0.2s;
}

.chart-bar:hover {
  opacity: 1;
  background: var(--m3-emerald);
}

/* Activity List */
.abd-activity-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.abd-activity-item {
  display: flex;
  gap: 12px;
}

.abd-activity-icon {
  width: 36px;
  height: 36px;
  background: var(--m3-surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m3-navy);
  font-size: 1rem;
  flex-shrink: 0;
}

.abd-activity-text {
  font-size: 0.9375rem;
  color: var(--m3-navy);
  margin-bottom: 2px;
  line-height: 1.4;
}

.abd-activity-text strong {
  font-weight: 700;
}

.abd-activity-time {
  font-size: 0.75rem;
  color: var(--m3-secondary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .abd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .abd-content-grid { grid-template-columns: 1fr; }
  .abd-main-content { padding: 24px; }
}

@media (max-width: 768px) {
  .abd-dashboard-layout { flex-direction: column; height: auto; }
  .abd-sidebar { width: 100%; flex-direction: row; align-items: center; padding: 16px; }
  .abd-nav-menu { display: none; }
  .abd-brand-logo { margin-bottom: 0; }
  .abd-user-profile { border-top: none; padding-top: 0; }
  .abd-main-content { padding: 20px; }
  .abd-actions-row { grid-template-columns: 1fr; }
}
