/* ==========================================================================
   ENTERPRISE MUSHAK VAT SYSTEM - MODERN VANILLA CSS DESIGN SYSTEM
   Theme: Odoo 18 Enterprise Dark Obsidian & Emerald
   ========================================================================== */

:root {
  /* Matte Navy-Dark Foundation matching user screenshot (#0c1017 / #131926 / #171f2e) */
  --bg-app: #0c1017;
  --bg-sidebar: #0f1420;
  --bg-header: #111724;
  --bg-surface: #131926;
  --bg-surface-secondary: #171f2e;
  --bg-surface-alt: #171f2e;
  --bg-surface-elevated: #1c2536;
  --bg-surface-hover: #202b3d;
  --bg-input: #111724;

  /* Low-Contrast Precision Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-focus: #db2777;

  /* Typography Colors */
  --text-primary: #F3F5F7;
  --text-secondary: #9AA5B5;
  --text-muted: #667085;
  --text-dim: #475467;

  /* User Screenshot Signature Accent (Vibrant Magenta/Pink) */
  --accent: #db2777;
  --accent-hover: #be185d;
  --accent-light: #f43f5e;
  --accent-muted: rgba(219, 39, 119, 0.15);
  --accent-border: rgba(219, 39, 119, 0.35);

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-400: #34d399;
  --emerald-dark-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --amber-400: #fbbf24;
  --amber-dark-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);

  --red-400: #f87171;
  --red-dark-bg: rgba(239, 68, 68, 0.12);
  --red-border: rgba(239, 68, 68, 0.3);

  --blue-400: #60a5fa;
  --blue-dark-bg: rgba(59, 130, 246, 0.12);
  --blue-border: rgba(59, 130, 246, 0.3);

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 28px -4px rgba(0, 0, 0, 0.6);
  --shadow-sheet: 0 20px 40px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Selection Color */
::selection {
  background-color: rgba(219, 39, 119, 0.3);
  color: #ffffff;
}

/* App Shell Structure */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header Bar */
.app-header {
  height: 48px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.app-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-brand-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.app-brand-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Workspace Wrapper */
.workspace-wrapper {
  display: flex;
  flex: 1;
  height: calc(100vh - 48px);
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  width: 210px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  user-select: none;
  transition: width var(--transition-normal), transform var(--transition-normal);
  position: relative;
  z-index: 25;
}

.app-sidebar.collapsed {
  width: 52px;
}

.app-sidebar.collapsed .sidebar-group-title,
.app-sidebar.collapsed .nav-link span,
.app-sidebar.collapsed .nav-link i.fa-chevron-right,
.app-sidebar.collapsed .sidebar-footer {
  display: none;
}

.app-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 8px 0;
}

.sidebar-menu {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-group-title {
  padding: 8px 10px 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.nav-link-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-alt);
}

/* ACTIVE PILL MATCHING SCREENSHOT: Solid Vibrant Pink (#db2777) */
.nav-link.active {
  background-color: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.35);
}

.nav-link.active i {
  color: #ffffff !important;
}

.nav-link i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.nav-link .fa-chevron-right {
  font-size: 10px;
  opacity: 0.5;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--bg-sidebar);
}

.sidebar-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-version {
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Main Content Area */
.app-main {
  flex: 1;
  overflow-y: auto;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
}

/* Action Control Ribbon */
.action-ribbon {
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ribbon-pipeline {
  display: flex;
  align-items: center;
  font-size: 11px;
}

.pipeline-step {
  padding: 4px 12px;
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.pipeline-step:first-child {
  border-radius: 4px 0 0 4px;
}

.pipeline-step:not(:first-child) {
  border-left: none;
}

.pipeline-step:last-child {
  border-radius: 0 4px 4px 0;
}

.pipeline-step.active {
  background-color: var(--emerald-dark-bg);
  color: var(--emerald-400);
  border-color: var(--emerald-border);
  font-weight: 600;
}

/* Floating Document Canvas / Sheet */
.sheet-canvas {
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.floating-sheet {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.sheet-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-number-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border-strong);
  outline: none;
  width: 180px;
  transition: border-color var(--transition-fast);
}

.invoice-number-input:focus {
  border-bottom-color: var(--emerald-400);
}

/* Smart Buttons */
.smart-button-group {
  display: flex;
  gap: 8px;
}

.smart-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.smart-button:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--border-strong);
}

.smart-button i {
  font-size: 16px;
  color: var(--emerald-400);
}

/* Form Grid Layouts */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 12px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.form-group-row.align-top {
  align-items: flex-start;
}

.form-label {
  color: var(--text-muted);
  font-weight: 500;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--emerald-500);
}

.form-control:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  background-color: rgba(10, 14, 23, 0.5);
}

textarea.form-control {
  resize: vertical;
}

.form-control-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--emerald-600);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--emerald-500);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--border-strong);
}

.btn-danger {
  background-color: var(--red-dark-bg);
  color: var(--red-400);
  border-color: var(--red-border);
}
.btn-danger:hover {
  background-color: rgba(185, 28, 28, 0.4);
}

.btn-sm {
  padding: 3px 8px;
  font-size: 11px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Order Lines & Master Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background-color: var(--bg-input);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.data-table thead {
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  padding: 8px 10px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

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

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Totals Summary Card */
.totals-card {
  margin-left: auto;
  width: 100%;
  max-width: 380px;
  background-color: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.totals-row.grand-total {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.totals-row.grand-total .amount {
  color: var(--emerald-400);
  font-size: 18px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.badge-success {
  background-color: var(--emerald-dark-bg);
  color: var(--emerald-400);
  border: 1px solid var(--emerald-border);
}

.badge-warning {
  background-color: var(--amber-dark-bg);
  color: var(--amber-400);
  border: 1px solid var(--amber-border);
}

.badge-info {
  background-color: var(--blue-dark-bg);
  color: var(--blue-400);
  border: 1px solid var(--blue-border);
}

/* Dashboard Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-title {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}

.metric-footer {
  font-size: 11px;
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px 60px 16px;
  overflow-y: auto;
}

.modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 100%;
  max-width: 540px;
  padding: 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--emerald-border);
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  animation: slideInRight 0.25s ease-out;
}

.toast.toast-danger {
  border-color: var(--red-border);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    top: 48px;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    z-index: 30;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   DEFAULT ENTERPRISE STARTUP AUTHENTICATION MODAL & USER DROPDOWN
   ========================================================================== */

/* Fullscreen Backdrop */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.auth-modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

/* Authentication Card */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #151d2d 0%, #0c1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9), 
    0 0 35px rgba(219, 39, 119, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  animation: authCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #be185d, #f43f5e, #be185d);
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Card Shake Animation for Wrong Credentials */
.auth-card.auth-shake {
  animation: authShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes authShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Header & Branding */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.auth-logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-logo-img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.auth-fallback-logo {
  font-size: 24px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-company-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.auth-app-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.auth-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(219, 39, 119, 0.12);
  border: 1px solid rgba(219, 39, 119, 0.28);
  color: #f43f5e;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 4px;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Error Alert */
.auth-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.2s ease-out;
}

.auth-alert i {
  font-size: 14px;
  color: #f87171;
  flex-shrink: 0;
}

/* Field Groups */
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-badge-pill {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(219, 39, 119, 0.12);
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid rgba(219, 39, 119, 0.2);
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  height: 40px;
  background-color: #0e1420;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 40px 0 36px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent);
  background-color: #121929;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.25);
}

.auth-input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  background-color: rgba(239, 68, 68, 0.05);
}

.auth-pwd-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.auth-pwd-toggle:hover {
  color: #ffffff;
}

/* Submit Button */
.auth-action-area {
  margin-top: 6px;
}

.auth-submit-btn {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #e11d48 0%, #be185d 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
  transition: all 0.2s ease;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

/* Footer Info */
.auth-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-footer-info b {
  color: var(--text-secondary);
}

/* User Profile Header Dropdown */
.user-profile-trigger {
  border-radius: 6px;
  padding: 4px 8px;
  transition: background-color 0.15s ease;
}

.user-profile-trigger:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-sheet);
  padding: 8px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeIn 0.15s ease-out;
}

.user-profile-menu.hidden {
  display: none !important;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.user-menu-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(219, 39, 119, 0.4);
}

.user-menu-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.user-menu-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-menu-role {
  font-size: 10.5px;
  color: var(--text-muted);
}

.user-menu-status {
  font-size: 10px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.user-menu-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 4px 0;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.user-menu-item:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.user-menu-item.logout-btn {
  color: #f87171;
}

.user-menu-item.logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

