/* FastPR Styles - Based on Vue.js/UnoCSS config */

:root {
  /* Brand Colors */
  --color-primary: #05204a;
  --color-primary-hover: #041839;
  --color-secondary: #b497d6;
  --color-neutral-50: #f2efee;
  --color-neutral-100: #e6dedd;
  --color-neutral-200: #d9cecc;
  --color-neutral-300: #ccbdbc;
  --color-neutral-400: #bfacaa;
  --color-neutral-500: #a08581;
  --color-neutral-600: #7c605d;
  --color-neutral-700: #53403e;
  --color-neutral-800: #29201f;
  --color-neutral-900: #1a1413;
  --color-dark-400: #07073b;
  --color-dark-500: #02020a;
  --color-dark-600: #010107;
  --color-dark-700: #010105;
  --color-dark-900: #000002;

  /* Semantic colors */
  --color-red-400: #f87171;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
  --color-red-700: #b91c1c;
  --color-red-800: #991b1b;
  --color-red-900: #7f1d1d;
  --color-yellow-400: #facc15;
  --color-yellow-500: #eab308;
  --color-yellow-900: #713f12;
  --color-blue-400: #60a5fa;
  --color-blue-900: #1e3a8a;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;
  --color-green-800: #166534;

  /* Primary shades */
  --color-primary-400: #0a3d8a;
  --color-primary-500: #05204a;
  --color-primary-600: #041839;
  --color-primary-700: #03122a;

  /* Secondary shades */
  --color-secondary-400: #c5aee0;
  --color-secondary-500: #b497d6;
  --color-secondary-600: #9d7dc4;
  --color-secondary-700: #8767b0;
}

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-dark-500);
  color: white;
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

/* Typography */
.text-5xl { font-size: 3rem; line-height: 1; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.tracking-tight { letter-spacing: -0.025em; }

/* Colors */
.text-white { color: white; }
.text-neutral-200 { color: var(--color-neutral-200); }
.text-neutral-300 { color: var(--color-neutral-300); }
.bg-dark-500 { background-color: var(--color-dark-500); }
.bg-dark-700 { background-color: var(--color-dark-700); }
.bg-dark-900 { background-color: var(--color-dark-900); }
.border-neutral-800 { border-color: var(--color-neutral-800); }

/* Component Classes */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: white;
  background-color: var(--color-primary);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--color-primary-hover);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.card {
  background-color: var(--color-dark-700);
  border-radius: 0.5rem;
  border: 1px solid var(--color-neutral-800);
  padding: 1.5rem;
}

.input, select {
  padding: 0.5rem 1rem;
  background-color: var(--color-dark-500);
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.375rem;
  color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}

.input:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Header */
.header {
  background-color: var(--color-dark-900);
  border-bottom: 1px solid var(--color-neutral-800);
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo {
  height: 2.5rem;
  width: 2.5rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: transparent;
  color: white;
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: 12rem;
  background-color: var(--color-dark-600);
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0;
  z-index: 50;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}

.dropdown-item:hover {
  background-color: var(--color-neutral-700);
}

.dropdown-divider {
  border-top: 1px solid var(--color-neutral-700);
  margin: 0.25rem 0;
}

/* SVG Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--color-neutral-700);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Banner */
.banner {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.375rem;
  border: 1px solid;
}

.banner-error {
  background-color: rgba(127, 29, 29, 0.2);
  border-color: var(--color-red-500);
}

.banner-warning {
  background-color: rgba(113, 63, 18, 0.2);
  border-color: var(--color-yellow-500);
}

.banner-info {
  background-color: rgba(30, 58, 138, 0.2);
  border-color: var(--color-blue-400);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Sidebar Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--color-dark-900);
  border-right: 1px solid var(--color-neutral-800);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.3s ease, transform 0.3s ease;
  z-index: 40;
}

.sidebar.sidebar-collapsed {
  width: 80px;
}

.sidebar.sidebar-collapsed .sidebar-label {
  display: none;
}

.sidebar.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.sidebar-collapsed .logo-text {
  display: none;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  width: calc(100% - 260px);
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.sidebar.sidebar-collapsed ~ .main-content {
  margin-left: 80px;
  width: calc(100% - 80px);
}

.menu-toggle {
  /* Styled inline in the component */
}

/* Sidebar Header */
.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--color-neutral-800);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.logo-text {
  color: white;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--color-neutral-300);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  font-weight: 500;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.sidebar-link.active {
  background-color: rgba(5, 32, 74, 0.3);
  color: white;
  border-left-color: var(--color-primary);
}

.sidebar-icon {
  font-size: 1.25rem;
  width: 1.5rem;
  display: inline-flex;
  justify-content: center;
}

.sidebar-label {
  font-size: 0.95rem;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--color-neutral-800);
  background-color: var(--color-dark-700);
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-neutral-400);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.sidebar-select {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--color-dark-500);
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.375rem;
  color: white;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.sidebar-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.sidebar-btn {
  width: 100%;
  padding: 0.5rem;
  background-color: transparent;
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.375rem;
  color: var(--color-neutral-300);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.875rem;
}

.sidebar-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-neutral-600);
  color: white;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Mobile Responsive for Sidebar */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .app-layout {
    flex-direction: column;
  }
}
