@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import 'https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css';

:root {
  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --color-surface: #ffffff;
  --color-surface-muted: #f9fafb;
  --color-border: #e5e7eb;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-primary: #3b82f6;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-background: #f8fafc;
}

* {
  font-family: var(--font-sans);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
}

/* Login Page Styles */
.login-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.login-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.login-logo-separator {
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text-muted);
}

.login-title {
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  color: var(--color-text);
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand .navbar-item strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table-container {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table {
  background: transparent;
}

.table thead th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: var(--color-surface-muted);
}

.status-badge {
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-received {
  background: #fef3c7;
  color: #92400e;
}

.status-confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.status-delivered {
  background: #d1fae5;
  color: #065f46;
}

.status-issue-reported {
  background: #fee2e2;
  color: #991b1b;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-purchased {
  background: #e0e7ff;
  color: #4f46e5;
}

.status-under-setup {
  background: #fce7f3;
  color: #9f1239;
}

.status-deactivated {
  background: #fee2e2;
  color: #991b1b;
}

.status-deleted {
  background: #f3f4f6;
  color: #374151;
}

.filter-section {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

/* Wallet overview */
/* Wallet Styles */
.wallet-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.wallet-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wallet-card.low-threshold {
  border-left: 4px solid var(--color-warning);
}

.wallet-card-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.5rem 0 0.25rem;
}

.wallet-card.low-threshold .wallet-card-amount {
  color: var(--color-warning);
}

.wallet-card-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-warning);
  margin-top: 0.75rem;
}

.wallet-summary .card {
  height: 100%;
}

.wallet-balance-card {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
  color: #ffffff;
  padding: 2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallet-balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

.wallet-balance-card.low-threshold {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.wallet-balance-card.low-threshold:hover {
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.3);
}

.wallet-balance-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-balance-amount {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.1;
}

.wallet-balance-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.wallet-balance-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  font-weight: 500;
}

.wallet-balance-threshold {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.wallet-admin-actions .card {
  height: 100%;
}

.wallet-admin-actions .card-header {
  border-bottom: 1px solid var(--color-border);
}

.wallet-admin-actions .button.is-fullwidth {
  font-weight: 600;
}

.wallet-cost-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface-muted);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.wallet-cost-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.wallet-cost-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.wallet-summary .button.is-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wallet-summary .button.is-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wallet-summary .button.is-info {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wallet-summary .button.is-success:hover,
.wallet-summary .button.is-primary:hover,
.wallet-summary .button.is-info:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navbar dropdown adjustments */
.navbar .navbar-dropdown {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
  background: #1f2937;
}

.navbar .navbar-dropdown .navbar-item {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar .navbar-dropdown .navbar-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.navbar-link:not(.is-arrowless)::after {
  border-color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 1023px) {
  .navbar .navbar-dropdown {
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .navbar .navbar-dropdown .navbar-item {
    color: #fff;
  }
}

/* Dashboard */
.dashboard-header {
  margin-bottom: 1.5rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.dashboard-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-metric-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.dashboard-metric-caption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.dashboard-wallet-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-wallet-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.dashboard-wallet-card.is-warning .dashboard-wallet-value {
  color: var(--color-warning);
}

.dashboard-wallet-caption {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-success);
  font-weight: 500;
}

.dashboard-wallet-card.is-warning .dashboard-wallet-caption {
  color: var(--color-warning);
}

.dashboard-wallet-caption.is-muted {
  color: var(--color-text-muted);
}

.dashboard-table-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-table-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-table-body {
  padding: 1rem 1.5rem 1.5rem;
}

.dashboard-table-body .table thead th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}

.dashboard-table-body .table tbody tr {
  transition: background-color 0.2s ease;
}

.dashboard-table-body .table tbody tr:hover {
  background-color: var(--color-surface-muted);
}

.dashboard-table-body .button.is-light {
  border-color: var(--color-border);
  color: var(--color-primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.dashboard-table-body .button.is-light:hover {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .dashboard-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.button {
  font-weight: 500;
  transition: all 0.2s ease;
}

.button.is-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.button.is-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.button.is-success {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.button.is-success:hover {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.button.is-danger {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
}

.button.is-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.button.is-warning {
  background-color: var(--color-warning);
  border-color: var(--color-warning);
  color: #fff;
}

.button.is-warning:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

