/* XActions Common Styles — shared across all dashboard pages */
/* by nichxbt */

:root {
  --bg-primary: #000000;
  --bg-secondary: #16181c;
  --bg-tertiary: #202327;
  --accent: #1d9bf0;
  --accent-hover: #1a8cd8;
  --accent-light: rgba(29, 155, 240, 0.1);
  --text-primary: #e7e9ea;
  --text-secondary: #71767b;
  --border: #2f3336;
  --success: #00ba7c;
  --error: #f4212e;
  --warning: #ffad1f;
  --purple: #a855f7;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 8px; border: 4px solid var(--bg-primary); }

/* Layout */
.layout {
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar-left {
  width: 275px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.logo { padding: 8px 12px; margin-bottom: 4px; }
.logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  padding: 12px;
  border-radius: 9999px;
  transition: background 0.2s;
  line-height: 1;
}
.logo a:hover { background: var(--accent-light); }

nav { flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
  border-radius: 9999px;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 4px;
}
.nav-item:hover { background: var(--bg-tertiary); }
.nav-item.active { font-weight: 700; }
.nav-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-icon svg { width: 26px; height: 26px; }
.nav-item.active .nav-icon svg { stroke-width: 2.5; }

.action-btn {
  width: 90%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin: 16px 0;
  text-decoration: none;
  display: block;
  text-align: center;
}
.action-btn:hover { background: var(--accent-hover); }

/* Main Content */
.main-content {
  flex: 1;
  max-width: 600px;
  border-right: 1px solid var(--border);
}

.main-header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 100;
}
.main-header h1 { font-size: 1.25rem; font-weight: 700; }

/* Right Sidebar */
.sidebar-right {
  width: 350px;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  background: var(--bg-primary);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-section h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.footer-section p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.5; margin-bottom: 8px; }
.footer-section a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; padding: 4px 0; transition: color 0.2s; }
.footer-section a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-secondary); font-size: 0.8125rem; }
.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* Skip Navigation (Accessibility) */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-nav:focus {
  top: 16px;
}

/* Visible focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar-right { display: none; }
  .main-content { max-width: 100%; }
}

@media (max-width: 768px) {
  .sidebar-left { width: 68px; padding: 0 4px; }
  .nav-item span:last-child, .user-info, .user-menu-dots { display: none; }
  .logo a { padding: 8px; }
  .nav-item { justify-content: center; padding: 12px; }
  .action-btn { width: 50px; height: 50px; padding: 0; font-size: 0; }
  .action-btn::before { content: '⚡'; font-size: 1.5rem; }
  .user-menu { justify-content: center; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
}
