/* resources/css/app.css */
:root {
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  --whatsapp: #128C7E;
  --whatsapp-light: #25D366;
  --whatsapp-dark: #075E54;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --success: #10b981;
  --success-bg: #dcfce7;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #1e293b;
  --bg-hover: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.04);
  --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --sidebar-width: 280px;
  --header-height: 70px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  text-align: left !important;
}
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-body);
}
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  text-align: left !important;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--sidebar-width);
  height: 100vh;
  background:
    linear-gradient(
      180deg,
      var(--bg-sidebar) 0%,
      #0f172a 100%);
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar-container::-webkit-scrollbar {
  display: none;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
}
.btn-close-sidebar {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-close-sidebar:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
}
.nav-section {
  margin-bottom: 1.75rem;
}
.nav-section-header {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-item-wrapper {
  margin: 0.125rem 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.nav-item.active {
  background:
    linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.15),
      rgba(16, 185, 129, 0.08));
  color: var(--primary-light);
  font-weight: 600;
}
.nav-item-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.nav-item-text {
  flex: 1;
}
.nav-item-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 3px 0 0 3px;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.user-info {
  flex: 1;
  min-width: 0;
}
.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #f87171;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.btn-menu {
  background: var(--bg-hover);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-menu:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.header-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light);
}
.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 320px;
  padding: 0.625rem 1rem 0.625rem 2.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  background: var(--bg-card);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  height: 42px;
  box-sizing: border-box;
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}
.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  display: block;
}
.header-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-action {
  position: relative;
  background: var(--bg-hover);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.625rem;
  border-radius: var(--radius-lg);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
}
.btn-action svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.btn-action:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}
.profile-dropdown {
  position: relative;
  margin-left: 0.25rem;
}
.btn-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.375rem 0.625rem 0.375rem 0.375rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  height: 42px;
  box-sizing: border-box;
}
.btn-profile:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-menu-header {
  padding: 1.25rem;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.profile-menu-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}
.profile-menu-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.profile-menu-email {
  font-size: 0.75rem;
  opacity: 0.9;
}
.profile-menu-divider {
  height: 1px;
  background: var(--border-light);
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-menu-item:hover {
  background: var(--bg-hover);
}
.profile-menu-item.danger {
  color: var(--danger);
}
.profile-menu-item.danger:hover {
  background: var(--danger-bg);
}
.main-content {
  min-height: calc(100vh - var(--header-height));
  padding: 2rem;
}
.content-container {
  max-width: 1440px;
  margin: 0 auto;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}
.page-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.375rem;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.card-body {
  padding: 1.5rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-hover);
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-medium);
}
.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.stat-card-header > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.stat-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-grow: 0 !important;
}
.stat-card-icon svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex-shrink: 0;
  display: block;
}
.stat-card-icon.primary {
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.stat-card-icon.success {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.stat-card-icon.warning {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #d97706);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.stat-card-icon.danger {
  background:
    linear-gradient(
      135deg,
      #ef4444,
      #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.stat-card-icon.info {
  background:
    linear-gradient(
      135deg,
      #06b6d4,
      #0891b2);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}
.stat-card .flex.items-start.justify-between {
  margin-bottom: 1rem;
}
.stat-card .text-sm.font-medium.text-gray-600 {
  margin-bottom: 0.25rem;
}
.stat-card .text-3xl.font-bold.text-gray-900 {
  line-height: 1.2;
}
.stat-card .flex.items-center.gap-1.text-sm {
  margin-top: 0.5rem;
}
.stat-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-card-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
  white-space: nowrap;
}
.stat-card-change svg {
  flex-shrink: 0;
}
.stat-card-change.positive {
  background: var(--success-bg);
  color: var(--success);
}
.stat-card-change.negative {
  background: var(--danger-bg);
  color: var(--danger);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-medium);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}
.btn-success {
  background: var(--success);
  color: white;
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}
.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-md);
}
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table thead {
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border-light);
}
.table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.table tbody tr:last-child {
  border-bottom: none;
}
.table tbody tr:hover {
  background: var(--bg-hover);
}
.table td {
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  vertical-align: middle;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  line-height: 1;
}
.badge-success {
  background: var(--success-bg);
  color: #059669;
}
.badge-warning {
  background: var(--warning-bg);
  color: #d97706;
}
.badge-danger {
  background: var(--danger-bg);
  color: #dc2626;
}
.badge-info {
  background: var(--info-bg);
  color: #2563eb;
}
.badge-gray {
  background: var(--slate-100);
  color: var(--slate-700);
}
.badge-primary {
  background: var(--primary-100);
  color: var(--primary-dark);
}
.input {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
}
.input::placeholder {
  color: var(--text-muted);
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.input-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.input-with-icon .input {
  padding-left: 3rem;
}
.input-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.input-password-toggle:hover {
  color: var(--text-primary);
}
.input-password-toggle svg {
  position: static;
  transform: none;
  left: auto;
  top: auto;
}
.input-error-text {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.25rem;
}
.table-loading {
  text-align: center;
  padding: 3rem 1rem;
}
.table-loading .spinner {
  display: inline-block;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.75rem;
}
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid;
}
.alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.alert-content {
  flex: 1;
}
.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.alert-description {
  font-size: 0.875rem;
  opacity: 0.9;
}
.alert-info {
  background: var(--info-bg);
  border-color: #93c5fd;
  color: #1e40af;
}
.alert-success {
  background: var(--success-bg);
  border-color: #6ee7b7;
  color: #065f46;
}
.alert-warning {
  background: var(--warning-bg);
  border-color: #fcd34d;
  color: #92400e;
}
.alert-danger {
  background: var(--danger-bg);
  border-color: #fca5a5;
  color: #991b1b;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}
.modal {
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.modal-close {
  background: var(--bg-hover);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.modal-body {
  padding: 1.5rem;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-hover);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}
.empty-state-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 24rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner-sm {
  width: 1rem;
  height: 1rem;
  border-width: 1.5px;
}
.spinner-lg {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}
.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-light));
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
}
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.9rem;
}
.avatar-lg {
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
}
.auth-page {
  display: flex;
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
}
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-left-content {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.auth-brand-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.auth-brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.auth-left-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.auth-left-description {
  font-size: 1.125rem;
  opacity: 0.95;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}
.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-card);
}
.auth-card {
  width: 100%;
  max-width: 28rem;
}
.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.auth-card-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--primary);
}
.auth-link {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}
.auth-link:hover {
  text-decoration: underline;
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .btn-close-sidebar {
    display: block;
  }
  .main-wrapper {
    margin-left: 0;
  }
  .search-input {
    width: 200px;
  }
}
@media (max-width: 768px) {
  .header-content {
    padding: 0 0.75rem !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    max-width: 100%;
  }
  .header-left {
    gap: 0.75rem;
    min-width: auto;
    justify-content: flex-start !important;
    align-items: center;
    flex-shrink: 0;
    width: auto;
  }
  .header-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .header-divider {
    height: 24px;
    flex-shrink: 0;
  }
  .header-right {
    gap: 0.5rem;
    justify-content: flex-end !important;
    align-items: center;
    flex-shrink: 0;
    width: auto;
  }
  .search-box {
    display: none;
  }
  .btn-action {
    padding: 0.5rem;
    flex-shrink: 0;
  }
  .btn-profile {
    padding: 0.375rem;
    gap: 0.375rem;
  }
  .profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8125rem;
  }
  .btn-profile svg {
    width: 1rem;
    height: 1rem;
  }
  .main-content {
    padding: 1rem;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .auth-left {
    padding: 2rem;
  }
  .auth-left-title {
    font-size: 2rem;
  }
}
svg.h-3,
svg.h-4,
svg.h-5,
svg.h-6,
svg.h-8 {
  display: inline-block;
  flex-shrink: 0;
}
svg.h-3 {
  width: 0.75rem;
  height: 0.75rem;
}
svg.h-4 {
  width: 1rem;
  height: 1rem;
}
svg.h-5 {
  width: 1.25rem;
  height: 1.25rem;
}
svg.h-6 {
  width: 1.5rem;
  height: 1.5rem;
}
svg.h-8 {
  width: 2rem;
  height: 2rem;
}
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-full {
  height: 100%;
}
.h-screen {
  height: 100vh;
}
.min-h-screen {
  min-height: 100vh;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}
.text-white {
  color: white;
}
.text-success {
  color: var(--success);
}
.text-warning {
  color: var(--warning);
}
.text-danger {
  color: var(--danger);
}
.bg-white {
  background: var(--bg-card);
}
.bg-secondary {
  background: var(--bg-body);
}
.bg-hover {
  background: var(--bg-hover);
}
.rounded {
  border-radius: var(--radius-md);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-2xl {
  border-radius: var(--radius-2xl);
}
.rounded-full {
  border-radius: var(--radius-full);
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-xl {
  box-shadow: var(--shadow-xl);
}
.border {
  border: 1px solid var(--border-light);
}
.border-t {
  border-top: 1px solid var(--border-light);
}
.border-b {
  border-bottom: 1px solid var(--border-light);
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.pl-10 {
  padding-left: 2.5rem;
}
.pl-12 {
  padding-left: 3rem;
}
.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}
.d-inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.transition {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.transition-fast {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.transform {
  transform: translateX(0);
}
.-translate-x-full {
  transform: translateX(-100%);
}
.translate-x-0 {
  transform: translateX(0);
}
.-translate-y-1\/2 {
  transform: translateY(-50%);
}
.opacity-0 {
  opacity: 0;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-100 {
  opacity: 1;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-3 > * + * {
  margin-top: 0.75rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-x-2 > * + * {
  margin-left: 0.5rem;
}
.space-x-3 > * + * {
  margin-left: 0.75rem;
}
.ring-2 {
  box-shadow: 0 0 0 2px var(--primary);
}
.animate-slideDown {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.alert {
  position: relative;
  z-index: 100;
}
.fixed.top-4.right-4 {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 9999 !important;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.modal .alert {
  z-index: 1000;
}
.alert-info {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1e40af !important;
}
.alert-success {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #166534 !important;
}
.alert-warning {
  background: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}
.alert-danger {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}
.pointer-events-none {
  pointer-events: none;
}
.uppercase {
  text-transform: uppercase;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.backdrop-blur {
  backdrop-filter: blur(4px);
}
.backdrop-blur-md {
  backdrop-filter: blur(12px);
}
.object-cover {
  object-fit: cover;
}
.resize-none {
  resize: none;
}
.resize-y {
  resize: vertical;
}
.font-mono {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}
.list-none {
  list-style-type: none;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.notification-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 380px;
  max-height: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.notification-dropdown-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.notification-dropdown-list {
  overflow-y: auto;
  max-height: 400px;
}
.notification-item {
  display: flex;
  gap: 12px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}
.notification-item:hover {
  background: var(--bg-hover);
}
.notification-item.unread {
  background: rgba(16, 185, 129, 0.05);
}
.notification-item.unread .notification-title {
  font-weight: 600;
}
.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-content {
  flex: 1;
  min-width: 0;
}
.notification-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.notification-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 8px;
}
.notification-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.notification-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.notification-item:hover .notification-actions {
  opacity: 1;
}
.btn-icon-sm {
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-secondary);
}
.btn-icon-sm:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-icon-sm.text-danger:hover {
  background: #fef2f2;
  color: #ef4444;
}
.notification-dropdown-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.notification-dropdown-footer a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
}
.notification-dropdown-footer a:hover {
  text-decoration: underline;
}
.empty-state {
  text-align: center;
  padding: 2rem 1.5rem;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}
.text-info {
  color: #3b82f6;
}
.text-warning {
  color: #f59e0b;
}
.text-danger {
  color: #ef4444;
}
.text-success {
  color: #10b981;
}
.ai-settings-page-v2 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}
.ai-settings-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}
.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.spinner-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: var(--primary-light);
  animation-delay: -0.3s;
}
.spinner-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-top-color: var(--primary-dark);
  animation-delay: -0.6s;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.ai-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}
.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-icon-wrapper {
  width: 56px;
  height: 56px;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.header-icon {
  width: 32px;
  height: 32px;
  color: white;
}
.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.header-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}
.header-stats {
  display: flex;
  gap: 1rem;
}
.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
  min-width: 80px;
}
.stat-badge.active {
  background:
    linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.1),
      rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-badge.active .stat-value {
  color: var(--primary);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.alert-success {
  background:
    linear-gradient(
      135deg,
      #f0fdf4,
      #dcfce7);
  border: 1px solid #86efac;
  color: #166534;
}
.alert-error {
  background:
    linear-gradient(
      135deg,
      #fef2f2,
      #fee2e2);
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.alert-close {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.alert-close:hover {
  opacity: 1;
}
.active-provider-banner-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background:
    linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.1),
      rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
}
.banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.banner-icon.success {
  width: 40px;
  height: 40px;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.banner-text {
  display: flex;
  flex-direction: column;
}
.banner-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.banner-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0.125rem 0 0 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.badge-pill {
  padding: 0.375rem 1rem;
}
.badge-success {
  background:
    linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.15),
      rgba(16, 185, 129, 0.08));
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.badge-xs {
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
}
.ai-settings-main {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) {
  .ai-settings-main {
    grid-template-columns: 1fr;
  }
}
.section-header {
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}
.provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.provider-card-v2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.provider-card-v2:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.provider-card-v2.selected {
  border-color: var(--primary);
  background:
    linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.08),
      rgba(16, 185, 129, 0.03));
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.provider-card-v2.active {
  border-width: 2px;
  border-color: var(--primary);
}
.card-status-indicator {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}
.provider-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.provider-card-content {
  flex: 1;
  min-width: 0;
}
.provider-card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}
.provider-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}
.meta-tag.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.meta-tag.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.card-arrow {
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.provider-card-v2:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}
.settings-section-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(
      135deg,
      var(--bg-hover),
      var(--bg-card));
  border-bottom: 1px solid var(--border-light);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.panel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.panel-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.panel-title p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}
.panel-body {
  padding: 1.5rem;
}
.form-group-v2 {
  margin-bottom: 1.5rem;
}
.form-label-v2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.form-label-v2 svg {
  color: var(--text-muted);
}
.input-wrapper-v2 {
  position: relative;
  display: flex;
  align-items: center;
}
.form-input-v2,
.form-select-v2 {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-input-v2:focus,
.form-select-v2:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
.form-input-v2::placeholder {
  color: var(--text-muted);
}
.input-actions {
  position: absolute;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
}
.btn-input-action {
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-input-action:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.form-help-v2 {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.form-help-v2 svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.settings-subsection {
  margin: 2rem 0;
  padding: 1.5rem;
  background:
    linear-gradient(
      135deg,
      var(--bg-hover),
      var(--bg-card));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.subsection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}
.subsection-title svg {
  color: var(--primary);
}
.settings-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.test-section {
  padding: 1.25rem;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.test-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.test-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.test-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.test-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.form-actions-v2 {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--primary);
}
.btn-success {
  background:
    linear-gradient(
      135deg,
      var(--success),
      #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.usage-section-v2 {
  margin-top: 2rem;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.usage-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.usage-card-v2:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.usage-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.usage-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.usage-card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.usage-stats-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.usage-stat-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-light);
}
.usage-stat-v2:last-child {
  border-bottom: none;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.stat-value-lg {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-value-sm {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.empty-state-v2 {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
}
.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--bg-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.empty-state-v2 h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}
.empty-state-v2 p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}
.bg-gradient-from-emerald-500-to-teal-600 {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #0d9488);
}
.bg-gradient-from-amber-500-to-orange-600 {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #ea580c);
}
.bg-gradient-from-blue-500-to-indigo-600 {
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #4f46e5);
}
.bg-gradient-from-red-500-to-rose-600 {
  background:
    linear-gradient(
      135deg,
      #ef4444,
      #e11d48);
}
@media (max-width: 768px) {
  .ai-settings-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .header-stats {
    width: 100%;
    justify-content: center;
  }
  .ai-settings-main {
    grid-template-columns: 1fr;
  }
  .panel-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .panel-title {
    flex-direction: column;
  }
  .form-actions-v2 {
    flex-direction: column;
  }
  .form-actions-v2 .btn {
    width: 100%;
  }
  .usage-grid {
    grid-template-columns: 1fr;
  }
}
.ai-settings-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) {
  .ai-settings-grid {
    grid-template-columns: 1fr;
  }
}
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}
.section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}
.provider-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.provider-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.provider-card.selected {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}
.provider-card.active {
  border-color: var(--primary);
  border-width: 2px;
}
.provider-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.provider-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.provider-icon-large {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.provider-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.provider-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
}
.provider-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.provider-status {
  font-size: 0.8125rem;
}
.provider-usage {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
}
.settings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.settings-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-hover);
}
.settings-panel-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.settings-panel-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}
.settings-content {
  padding: 1.5rem;
}
.settings-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.form-label svg {
  color: var(--text-muted);
}
.form-input,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.form-input::placeholder {
  color: var(--text-muted);
}
.input-with-button {
  display: flex;
  gap: 0.5rem;
}
.input-with-button .form-input {
  flex: 1;
}
.input-buttons {
  display: flex;
  gap: 0.25rem;
}
.btn-icon {
  padding: 0.5rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}
.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}
.test-connection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.test-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.test-result.success {
  color: var(--success);
}
.test-result.error {
  color: var(--danger);
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.usage-section {
  margin-top: 2rem;
}
.usage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.usage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.usage-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.usage-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usage-card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.usage-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.usage-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.usage-stat:last-child {
  border-bottom: none;
}
.usage-stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.usage-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}
.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}
.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card);
  border-color: var(--primary);
}
.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover:not(:disabled) {
  background: #059669;
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state p {
  font-size: 0.875rem;
  margin: 0;
}
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.alert svg {
  flex-shrink: 0;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.alert-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.alert-info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}
.notifications-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.notifications-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.notifications-loading p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}
.notifications-header {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.notifications-header .header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.notifications-header .header-icon-wrapper {
  width: 56px;
  height: 56px;
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.notifications-header .header-icon {
  width: 32px;
  height: 32px;
  color: white;
}
.notifications-header .header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.notifications-header .header-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}
.notifications-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.all {
  background:
    linear-gradient(
      135deg,
      #6366f1,
      #4f46e5);
  color: white;
}
.stat-icon.unread {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #d97706);
  color: white;
}
.stat-icon.read {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: white;
}
.stat-content {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.notifications-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}
.filter-tabs {
  display: flex;
  gap: 0.5rem;
}
.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.filter-tab.active {
  background: var(--primary);
  color: white;
}
.toolbar-actions {
  display: flex;
  gap: 0.5rem;
}
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.notification-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.notification-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.notification-card.unread {
  background:
    linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.05),
      rgba(59, 130, 246, 0.02));
  border-left: 3px solid #3b82f6;
}
.notification-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notification-content {
  flex: 1;
  min-width: 0;
}
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.notification-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.unread-dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
}
.notification-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.notification-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}
.notification-action {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.notification-action:hover {
  text-decoration: underline;
}
.notification-action .arrow {
  transition: transform var(--transition-fast);
}
.notification-action:hover .arrow {
  transform: translateX(4px);
}
.notification-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.notification-card:hover .notification-actions {
  opacity: 1;
}
.btn-icon {
  padding: 0.5rem;
  background: var(--bg-hover);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon:hover {
  background: var(--bg-card);
  color: var(--primary);
}
.btn-icon.danger:hover {
  background: #fef2f2;
  color: #ef4444;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
}
.empty-state .empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background:
    linear-gradient(
      135deg,
      var(--bg-hover),
      var(--bg-card));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}
.empty-state p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}
.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
}
.btn-outline.danger {
  color: #ef4444;
  border-color: #fca5a5;
}
.btn-outline.danger:hover {
  background: #fef2f2;
  border-color: #ef4444;
}
@media (max-width: 768px) {
  .notifications-page {
    padding: 1rem;
  }
  .notifications-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .filter-tabs {
    justify-content: center;
  }
  .toolbar-actions {
    justify-content: center;
  }
  .notification-card {
    flex-direction: column;
  }
  .notification-actions {
    opacity: 1;
    justify-content: flex-end;
  }
  .notifications-stats {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .btn-menu {
    display: none;
  }
}
/*# sourceMappingURL=app.css.map */
