/* ==========================================================================
   SocialSync Premium Design System & Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-primary: #080B11;
  --bg-secondary: #0F131E;
  --bg-tertiary: #171D2C;
  --bg-glass: rgba(15, 20, 32, 0.6);
  --bg-glass-hover: rgba(23, 29, 44, 0.75);
  
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-bright: rgba(255, 255, 255, 0.12);
  
  --accent-indigo: #6366F1;
  --accent-fuchsia: #D946EF;
  --accent-violet: #8B5CF6;
  --accent-cyan: #06B6D4;
  
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #F59E0B;
  --warning-glow: rgba(245, 158, 11, 0.15);
  --danger: #EF4444;
  --danger-glow: rgba(239, 68, 68, 0.15);
  --info: #3B82F6;
  --info-glow: rgba(59, 130, 246, 0.15);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 50%, var(--accent-fuchsia) 100%);
  --grad-cyan-blue: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
  --grad-violet-fuchsia: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-fuchsia) 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  /* Borders & Radius */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* Shadows */
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Framework */
#app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.06) 0%, transparent 40%);
}

/* Sidebar Styling */
aside {
  width: 280px;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 24px;
  z-index: 10;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon);
}

.logo-icon svg {
  fill: #fff;
  width: 20px;
  height: 20px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  transition: var(--transition-fast);
}

.menu-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.menu-item:hover svg {
  stroke: var(--text-primary);
}

.menu-item.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.menu-item.active svg {
  stroke: #8B5CF6;
}

/* User Profile footer in Sidebar */
.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-cyan-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--border-glass-bright);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Main Content Area */
main {
  flex-grow: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header Styling */
header {
  height: 80px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 11, 17, 0.4);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.header-title h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.simulator-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.simulator-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}

.btn-simulate {
  background: var(--grad-primary);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-simulate:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
}

.btn-simulate:active {
  transform: translateY(0);
}

/* Views Wrapper */
.view-container {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
}

.view {
  display: none;
  animation: fadeIn 0.4s ease;
}

.view.active {
  display: block;
}

/* Dashboard View styling */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.metric-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-4px);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.metric-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-indigo);
  fill: none;
  stroke-width: 2;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-trend {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Dashboard Widgets layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.panel-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom SVG chart */
.chart-container {
  height: 240px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 10px;
  padding-bottom: 20px;
}

.chart-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.grid-line {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
  width: 100%;
  height: 0;
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 10%;
  height: 100%;
  justify-content: flex-end;
  z-index: 2;
}

.chart-bar {
  width: 24px;
  background: var(--grad-primary);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  min-height: 5px;
}

.chart-bar:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.chart-tooltip {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass-bright);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition-fast);
  white-space: nowrap;
  pointer-events: none;
}

.chart-bar:hover .chart-tooltip {
  opacity: 1;
}

.chart-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Feed List / Recent Events */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.event-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.event-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-info {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 14px;
  font-weight: 600;
}

.event-time {
  font-size: 12px;
  color: var(--text-muted);
}

.event-platform-badges {
  display: flex;
  gap: 4px;
}

.mini-platform-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-platform-badge svg {
  width: 12px;
  height: 12px;
  fill: white;
}

/* Account Connection View */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.account-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.account-logo-container {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.account-logo-container svg {
  width: 36px;
  height: 36px;
}

/* Social Brands Styling */
.brand-gdrive { background: rgba(52, 168, 83, 0.1); border: 1px solid rgba(52, 168, 83, 0.2); }
.brand-facebook { background: rgba(24, 119, 242, 0.1); border: 1px solid rgba(24, 119, 242, 0.2); }
.brand-instagram { background: rgba(225, 48, 108, 0.1); border: 1px solid rgba(225, 48, 108, 0.2); }
.brand-youtube { background: rgba(255, 0, 0, 0.1); border: 1px solid rgba(255, 0, 0, 0.2); }
.brand-tiktok { background: rgba(0, 242, 234, 0.1); border: 1px solid rgba(0, 242, 234, 0.2); }

.account-status-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-connected {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-disconnected {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.account-name {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.account-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
  height: 40px;
}

.account-profile-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  width: 100%;
}

.account-profile-preview img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.account-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.btn-account {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-account-connect {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-bright);
  color: var(--text-primary);
}

.btn-account-connect:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-account-disconnect {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.btn-account-disconnect:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Folder Mapping View */
.view-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.btn-add-mapping {
  background: var(--grad-primary);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-mapping:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
}

.mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mapping-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

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

.mapping-folder-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-icon-wrapper {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: var(--warning);
}

.mapping-folder-name {
  font-size: 16px;
  font-weight: 600;
}

.mapping-folder-path {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-delete-mapping {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-delete-mapping:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.btn-delete-mapping svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.mapping-destinations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.mapping-dest-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.mapping-dest-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.platform-chip svg {
  width: 14px;
  height: 14px;
}

.mapping-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.mapping-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mapping-meta-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

/* Active Queue View & Tables */
.table-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead {
  border-bottom: 1px solid var(--border-glass-bright);
}

th {
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass);
}

tr:last-child td {
  border-bottom: none;
}

tr {
  transition: var(--transition-fast);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-primary);
}

.table-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon-wrapper {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-icon-wrapper svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-indigo);
  fill: none;
  stroke-width: 2;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 600;
  font-size: 14px;
}

.file-path {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.scanning { background: rgba(59, 130, 246, 0.1); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }
.status-badge.downloading { background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-badge.uploading { background: rgba(139, 92, 246, 0.1); color: var(--accent-violet); border: 1px solid rgba(139, 92, 246, 0.2); }
.status-badge.success { background: var(--success-glow); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-badge.failed { background: var(--danger-glow); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* Progress Container inside Table */
.progress-bar-container {
  width: 140px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-bar-animated {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
  animation: progress-bar-stripes 1s linear infinite;
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: 90%;
  padding: 32px;
  box-shadow: var(--shadow-main);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.btn-close-modal {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 24px;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkbox-tile:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-glass-bright);
}

.checkbox-tile input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-indigo);
  cursor: pointer;
}

.checkbox-tile-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.checkbox-tile-label svg {
  width: 16px;
  height: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.btn-submit {
  background: var(--grad-primary);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-fast);
}

.btn-submit:hover {
  filter: brightness(1.1);
}

/* Settings view styles */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}

.settings-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.settings-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes progress-bar-stripes {
  from { background-position: 1rem 0; }
  to { background-position: 0 0; }
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .accounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mapping-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  aside {
    width: 80px;
    padding: 16px 8px;
  }
  .logo-text, .user-info, .sidebar-footer {
    display: none;
  }
  .menu-item span {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .accounts-grid {
    grid-template-columns: 1fr;
  }
}
