:root {
  --zp-primary: #198754; /* Green */
  --zp-primary-hover: #146c43;
  --zp-bg: #f8f9fa;
  --zp-surface: #ffffff;
  --zp-text: #212529;
  --zp-text-muted: #6c757d;
  --zp-border-radius: 1rem;
  --zp-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] {
  --zp-bg: #121212;
  --zp-surface: #1e1e1e;
  --zp-text: #f8f9fa;
  --zp-text-muted: #adb5bd;
  --zp-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background-color: var(--zp-bg);
  background: linear-gradient(rgba(248, 249, 250, 0.85), rgba(248, 249, 250, 0.95)), url('/images/login-bg.png') center/cover no-repeat fixed;
  color: var(--zp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 80px; /* Space for bottom nav */
}

[data-bs-theme="dark"] body {
  background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.95)), url('/images/login-bg.png') center/cover no-repeat fixed;
}

/* Bento Box UI Styles */
.bento-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--zp-border-radius);
  box-shadow: var(--zp-shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  overflow: hidden;
}

[data-bs-theme="dark"] .bento-card {
  background-color: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.bento-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.icon-gradient-primary { background: linear-gradient(135deg, #0d6efd, #0dcaf0); color: white; }
.icon-gradient-success { background: linear-gradient(135deg, #198754, #20c997); color: white; }
.icon-gradient-info { background: linear-gradient(135deg, #0dcaf0, #0d6efd); color: white; }
.icon-gradient-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); color: white; }
.icon-gradient-danger { background: linear-gradient(135deg, #dc3545, #f87171); color: white; }
.icon-gradient-secondary { background: linear-gradient(135deg, #6c757d, #adb5bd); color: white; }
.icon-gradient-dark { background: linear-gradient(135deg, #212529, #495057); color: white; }

/* Bottom Navigation App-Like */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(var(--bs-body-bg-rgb), 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(128, 128, 128, 0.1);
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav .nav-link {
  text-align: center;
  color: var(--zp-text-muted);
  font-size: 0.75rem;
  padding: 8px 0;
  transition: color 0.2s;
  flex: 1;
}

.bottom-nav .nav-link.active {
  color: var(--zp-primary);
  font-weight: 600;
}

.bottom-nav i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 2px;
}

/* Header */
.app-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  position: sticky;
  top: 0;
  z-index: 1020;
}

[data-bs-theme="dark"] .app-header {
  background: rgba(30, 30, 30, 0.85);
}

.brand-logo {
  height: 32px;
  margin-right: 8px;
}