/* ==========================================================================
   Groxent POS — Fresh Modern Design System & Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --gx-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gx-primary: #0d9488;
  --gx-primary-hover: #0f766e;
  --gx-primary-light: rgba(13, 148, 136, 0.1);
  --gx-primary-gradient: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  --gx-accent-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --gx-hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gx-glow: 0 10px 25px -5px rgba(13, 148, 136, 0.35);
  --gx-card-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
  --gx-card-shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(13, 148, 136, 0.3);
  --gx-radius-sm: 8px;
  --gx-radius-md: 12px;
  --gx-radius-lg: 18px;
  --gx-radius-xl: 24px;
}

body {
  font-family: var(--gx-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN SCREEN
   ========================================================================== */

.authentication-wrapper.authentication-basic {
  min-height: 100vh;
  position: relative;
  background: 
    radial-gradient(1000px circle at 15% 15%, rgba(13, 148, 136, 0.12), transparent 45%),
    radial-gradient(900px circle at 85% 85%, rgba(2, 132, 199, 0.10), transparent 40%),
    radial-gradient(600px circle at 50% 50%, rgba(5, 150, 105, 0.05), transparent 50%),
    #f8fafc !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}

/* Subtle decorative ambient blobs */
.authentication-wrapper.authentication-basic::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(2, 132, 199, 0.12));
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.authentication-wrapper .authentication-inner {
  position: relative;
  z-index: 1;
  max-width: 460px !important;
  width: 100%;
}

/* Glassmorphic Elevated Login Card */
.authentication-wrapper .card {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--gx-radius-xl) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.authentication-wrapper .card-body {
  padding: 2.75rem 2.5rem !important;
}

/* Brand Logo Header */
.authentication-wrapper .app-brand {
  margin-bottom: 1.75rem !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.authentication-wrapper .app-brand-logo {
  max-height: 54px !important;
  width: auto !important;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(13, 148, 136, 0.15));
}

.authentication-wrapper .app-brand-link:hover .app-brand-logo {
  transform: scale(1.03);
}

/* Badge subtitle */
.gx-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Headings */
.authentication-wrapper h4 {
  font-family: var(--gx-font) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem !important;
}

.gx-auth-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.75rem;
}

/* Form Controls & Inputs */
.authentication-wrapper .form-label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: 0.01em;
}

.authentication-wrapper .form-control {
  font-family: var(--gx-font) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--gx-radius-md) !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.authentication-wrapper .form-control:focus {
  background-color: #ffffff !important;
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
  outline: none !important;
}

.authentication-wrapper .input-group {
  border-radius: var(--gx-radius-md);
  overflow: hidden;
}

.authentication-wrapper .input-group .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.authentication-wrapper .input-group-text {
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-left: none !important;
  border-top-right-radius: var(--gx-radius-md) !important;
  border-bottom-right-radius: var(--gx-radius-md) !important;
  color: #64748b !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s ease !important;
}

.authentication-wrapper .input-group:focus-within .input-group-text {
  border-color: #0d9488 !important;
  background-color: #ffffff !important;
  color: #0d9488 !important;
}

.authentication-wrapper .input-group-text:hover {
  color: #0d9488 !important;
}

/* Primary Action Buttons */
.authentication-wrapper .btn-primary,
.btn-primary {
  font-family: var(--gx-font) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  background: var(--gx-primary-gradient) !important;
  border: none !important;
  border-radius: var(--gx-radius-md) !important;
  padding: 0.75rem 1.5rem !important;
  color: #ffffff !important;
  box-shadow: var(--gx-glow) !important;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.authentication-wrapper .btn-primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(13, 148, 136, 0.45) !important;
  filter: brightness(1.05);
}

.authentication-wrapper .btn-primary:active,
.btn-primary:active {
  transform: translateY(0);
}

/* Links & Helper text */
.authentication-wrapper a {
  color: #0d9488 !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.authentication-wrapper a:hover {
  color: #0f766e !important;
  text-decoration: underline;
}

/* Floating security badge */
.gx-security-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.gx-security-footer i {
  color: #10b981;
}

/* ==========================================================================
   GLOBAL BACKEND THEME POLISH
   ========================================================================== */

/* Navbar Brand & Header */
.layout-navbar {
  backdrop-filter: blur(12px) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
}

/* Sidebar Menu Enhancements */
.menu-vertical {
  background-color: #ffffff !important;
  border-right: 1px solid #f1f5f9 !important;
}

.menu-vertical .menu-item.active > .menu-link {
  background: var(--gx-primary-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px -4px rgba(13, 148, 136, 0.35) !important;
  border-radius: var(--gx-radius-md) !important;
}

.menu-vertical .menu-item.active > .menu-link .menu-icon,
.menu-vertical .menu-item.active > .menu-link i {
  color: #ffffff !important;
}

.menu-vertical .menu-link {
  border-radius: var(--gx-radius-md) !important;
  margin: 0.15rem 0.75rem !important;
  transition: all 0.2s ease !important;
  font-weight: 500 !important;
}

.menu-vertical .menu-link:hover {
  background-color: rgba(13, 148, 136, 0.07) !important;
  color: #0d9488 !important;
}

/* Dashboard Cards */
.card {
  border-radius: var(--gx-radius-lg) !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(241, 245, 249, 0.6) !important;
  transition: all 0.25s ease !important;
}

.card:hover {
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
}

/* Modern Pill Badges */
.badge.bg-label-primary {
  background-color: rgba(13, 148, 136, 0.1) !important;
  color: #0d9488 !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
}

.badge.bg-label-success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  border-radius: 9999px !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Template Customizer (Hide development float button)
   ========================================================================== */
.template-customizer-open-btn,
.template-customizer,
#template-customizer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Modern Alerts & Notifications
   ========================================================================== */
.alert {
  border-radius: var(--gx-radius-md) !important;
  border-width: 1px !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  padding: 0.85rem 1.25rem !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
}

.alert-danger {
  background-color: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

.alert-success {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.alert-info {
  background-color: #f0fdfa !important;
  border-color: #99f6e4 !important;
  color: #0f766e !important;
}

.alert-warning {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

/* ==========================================================================
   Modern Outlet Cards
   ========================================================================== */
.outlet-card {
  border-radius: var(--gx-radius-lg) !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  overflow: hidden;
}

.outlet-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px #cbd5e1 !important;
}

.outlet-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 163, 104, 0.12), rgba(15, 118, 110, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00a368;
}

.outlet-code-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   PWA Standalone Display Mode Fixes
   ========================================================================== */
@media all and (display-mode: standalone), 
       all and (display-mode: fullscreen), 
       all and (display-mode: minimal-ui) {
  #installAppWrapper,
  #installApp,
  .btn-install-app {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
