@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #0f172a;       /* Navy închis */
  --primary-light: #1e293b; /* Navy mediu */
  --accent: #0284c7;        /* Albastru petrol */
  --accent-light: #0ea5e9;  /* Albastru petrol deschis */
  --accent-rgb: 2, 132, 199;
  
  --bg-gradient: #f8fafc;
  --bg-dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(226, 232, 240, 0.8);
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --status-green: #10b981;
  --status-green-bg: rgba(16, 185, 129, 0.15);
  --status-yellow: #f59e0b;
  --status-yellow-bg: rgba(245, 158, 11, 0.15);
  --status-red: #ef4444;
  --status-red-bg: rgba(239, 68, 68, 0.15);
  --status-blue: #3b82f6;
  --status-blue-bg: rgba(59, 130, 246, 0.15);
  --status-gray: #64748b;
  --status-gray-bg: rgba(100, 116, 139, 0.15);
  --status-indigo: #6366f1;
  --status-indigo-bg: rgba(99, 102, 241, 0.15);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Resetare & Stiluri Generale */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Stiluri Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

/* Pagina de Autentificare (Login) Premium Dynamic Background */
.login-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

/* Background Layers Wrapper */
.login-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Diffuse Gradient Blobs - Proeminente & Vibrant */
.login-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.65;
  animation: blobFloat 20s infinite ease-in-out alternate;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.65) 0%, rgba(3, 105, 161, 0) 70%);
  top: -150px;
  left: -100px;
  animation-duration: 22s;
}

.blob-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(99, 102, 241, 0) 70%);
  bottom: -200px;
  right: -150px;
  animation-duration: 25s;
  animation-delay: -5s;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, rgba(2, 132, 199, 0) 70%);
  top: 35%;
  left: 50%;
  animation-duration: 18s;
  animation-delay: -9s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 40px) scale(1.1);
  }
  100% {
    transform: translate(-40px, -50px) scale(0.92);
  }
}

/* 2. Logistics Grid / Flow Lines - Conturate clar */
.login-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 85%);
  animation: gridShift 35s linear infinite;
}

@keyframes gridShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* 3. Ambient Shimmer Light Wave - Proeminentă */
.login-bg-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(14, 165, 233, 0.12) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
  animation: lightSweep 12s infinite ease-in-out;
  pointer-events: none;
}

@keyframes lightSweep {
  0% {
    transform: translateX(-30%) translateY(-30%);
  }
  50% {
    transform: translateX(30%) translateY(30%);
  }
  100% {
    transform: translateX(-30%) translateY(-30%);
  }
}

/* 4. Particles Canvas */
#login-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Login Container Card Upgrade */
.login-container {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(2, 132, 199, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  text-align: center;
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: var(--text-light);
  position: relative;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-logo {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-subtitle {
  font-family: var(--font-title);
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 35px;
}

/* Minimalist Quote Card - Bottom Right Corner */
.motivational-quote-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.45), 0 0 20px rgba(2, 132, 199, 0.12);
  z-index: 100;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.motivational-quote-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 16px 35px -5px rgba(0, 0, 0, 0.5), 0 0 25px rgba(2, 132, 199, 0.2);
}

.quote-svg-icon {
  width: 24px;
  height: 24px;
  color: #0ea5e9;
  flex-shrink: 0;
  opacity: 0.85;
  margin-top: 2px;
}

.quote-body-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.quote-phrase {
  font-size: 13px;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.5;
  font-weight: 400;
}

.quote-author-name {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .motivational-quote-card {
    display: none;
  }
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Input Micro-Animations */
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-input:focus {
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  border-color: #0ea5e9;
  box-shadow: 
    0 0 0 4px rgba(14, 165, 233, 0.18),
    0 0 16px rgba(14, 165, 233, 0.15),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Password Eye Icon Micro-Animation */
.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  border-radius: 6px;
}

.toggle-password:hover {
  color: #0ea5e9;
  transform: scale(1.15) rotate(4deg);
}

.toggle-password:active {
  transform: scale(0.95) rotate(-15deg);
}

/* Button Micro-Animations */
.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  position: relative;
  overflow: hidden;
}

.login-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.login-btn:hover::after {
  transform: translateX(100%);
}

.login-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -1px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  padding: 12px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  animation: shake 0.4s ease-in-out;
}

/* Layout Aplicație Principală (Dashboard/Admin/Client) */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* Meniu Lateral (Sidebar) Dynamic Premium Background & Cursor Spotlight */
.sidebar {
  width: 260px;
  background: linear-gradient(155deg, #0284c7 0%, #0369a1 45%, #0f172a 100%);
  color: #f0f9ff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 100;
  overflow: hidden;
}

/* Dynamic Animated Blob & Grid Layers for Sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: 
    radial-gradient(circle at 25% 20%, rgba(14, 165, 233, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 65%);
  animation: sidebarBlobFloat 18s infinite ease-in-out alternate;
  pointer-events: none;
  z-index: 0;
}

.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 35px 35px;
  animation: gridShift 35s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Cursor Mouse Spotlight Layer */
.sidebar-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    180px circle at var(--sidebar-mouse-x, 50%) var(--sidebar-mouse-y, 50%),
    rgba(56, 189, 248, 0.22) 0%,
    rgba(2, 132, 199, 0.08) 50%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-spotlight {
  opacity: 1;
}

/* Light Sweep Shimmer on Sidebar */
.sidebar-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(56, 189, 248, 0.1) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
  animation: lightSweep 14s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes sidebarBlobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, 25px) scale(1.08);
  }
  100% {
    transform: translate(-18px, -22px) scale(0.95);
  }
}

.sidebar-header,
.sidebar-menu,
.sidebar-footer {
  position: relative;
  z-index: 2;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #ffffff;
  color: #0284c7;
  padding: 2px 6px;
  border-radius: 4px;
}

.sidebar-menu {
  list-style: none;
  padding: 24px 16px;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-menu-item {
  margin-bottom: 8px;
}

/* Sidebar Menu Link Micro-Animations */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #e0f2fe;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease, filter 0.3s ease;
}

/* Hover State Micro-Interactions */
.sidebar-link:hover {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3), inset 3px 0 0 #38bdf8;
}

.sidebar-link:hover svg {
  transform: scale(1.18) rotate(4deg);
  stroke: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

/* Active State */
.sidebar-menu-item.active .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4), inset 4px 0 0 #ffffff;
  transform: translateX(4px);
}

.sidebar-menu-item.active .sidebar-link svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  transform: scale(1.1);
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #bae6fd;
  text-align: center;
}

.sidebar-footer .btn-outline {
  background: transparent;
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sidebar-footer .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Conținut Principal (Main Content) */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Bara Superioară (Topbar) */
.topbar {
  height: 70px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
}

.page-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.notifications-trigger {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.notifications-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--status-red);
  border-radius: 50%;
  border: 1px solid #ffffff;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  transition: var(--transition);
}

.user-profile-menu:hover {
  background: rgba(0, 0, 0, 0.04);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 13px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

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

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

/* Spațiu de lucru (Workspace / Views) */
.workspace {
  padding: 32px;
  flex-grow: 1;
  animation: fadeIn 0.4s ease-out;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* Carduri / Panouri */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.2);
}

/* Grid-uri */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
}

.kpi-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(2, 132, 199, 0.15);
  pointer-events: none;
}

.kpi-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.kpi-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.kpi-value.text-red {
  color: var(--status-red);
}

.kpi-value.text-yellow {
  color: var(--status-yellow);
}

.kpi-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Layout Secțiuni Dashboard */
.dashboard-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.dashboard-full-width {
  grid-column: 1 / -1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabele */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--card-border);
}

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

.custom-table th {
  background: rgba(241, 245, 249, 0.8);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--primary-light);
  border-bottom: 2px solid var(--card-border);
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  color: #334155;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tbody tr {
  transition: var(--transition);
}

.custom-table tbody tr:hover {
  background: rgba(2, 132, 199, 0.02);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.badge-green { background: var(--status-green-bg); color: var(--status-green); }
.badge-yellow { background: var(--status-yellow-bg); color: var(--status-yellow); }
.badge-red { background: var(--status-red-bg); color: var(--status-red); }
.badge-blue { background: var(--status-blue-bg); color: var(--status-blue); }
.badge-gray { background: var(--status-gray-bg); color: var(--status-gray); }
.badge-indigo { background: var(--status-indigo-bg); color: var(--status-indigo); }

/* Activitate Recentă / Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -20px;
  width: 2px;
  background: var(--card-border);
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.timeline-dot svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.timeline-content {
  flex-grow: 1;
}

.timeline-text {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 2px;
}

.timeline-text strong {
  font-weight: 600;
  color: var(--primary);
}

.timeline-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Butoane & Controale */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--primary-light);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-danger {
  background: var(--status-red-bg);
  color: var(--status-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: var(--status-red);
  color: #ffffff;
}

.btn-success {
  background: var(--status-green-bg);
  color: var(--status-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background: var(--status-green);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Filtre & Acțiuni în Tab-uri */
.actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.search-bar {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.filters-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 13px;
  background: #ffffff;
  color: var(--primary);
  transition: var(--transition);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Pagina Client Individual (Admin) */
.client-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.client-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-nickname {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-legal {
  font-size: 14px;
  color: var(--text-muted);
}

.client-badge-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.client-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 16px;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
  font-size: 13px;
}

.client-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.client-contact-item span {
  font-weight: 600;
  color: var(--primary);
}

/* Tab-uri Navigare Pagină Client */
.tabs-navigation {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-content-panel.active {
  display: block;
}

/* Grafice SVG */
.chart-container {
  height: 280px;
  position: relative;
  margin-top: 16px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* FGO Sync Overlay */
.sync-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.sync-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sync-box {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.sync-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(2, 132, 199, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 24px auto;
  animation: spin 1s linear infinite;
}

.sync-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.sync-step {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.sync-progress-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.sync-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

/* Ferestre Modale Reutilizabile */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 640px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.modal-close:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

/* Casete Alerte */
.alert-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.alert-red {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.alert-red svg {
  color: var(--status-red);
  flex-shrink: 0;
}

.alert-yellow {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.alert-yellow svg {
  color: var(--status-yellow);
  flex-shrink: 0;
}

.alert-blue {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
}

.alert-blue svg {
  color: var(--status-blue);
  flex-shrink: 0;
}

.alert-title {
  font-weight: 700;
  font-family: var(--font-title);
  margin-bottom: 4px;
  font-size: 15px;
}

.alert-message {
  font-size: 13.5px;
  line-height: 1.45;
}

.alert-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* Grid Produse la Comandă */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.2);
}

.product-img-wrapper {
  height: 150px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
}

.product-img-wrapper svg {
  width: 60px;
  height: 60px;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

.product-img-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.product-details {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-code {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-packing {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  display: inline-block;
  align-self: flex-start;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  border-top: 1px dashed var(--card-border);
  padding-top: 14px;
}

.product-price-label {
  font-size: 12px;
  color: var(--text-muted);
}

.product-price-value {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 40px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  background: #f8fafc;
  border: none;
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-input {
  width: 50px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.qty-input:focus {
  outline: none;
}

.product-total-value {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
  font-weight: 500;
}

/* Modificare Layout Comandă (Rezumat Plată Sidebar) */
.order-page-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.order-sticky-sidebar {
  position: sticky;
  top: 94px;
}

.order-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  font-size: 13.5px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--card-border);
  padding-bottom: 8px;
}

.order-summary-item.total {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: none;
  padding-top: 8px;
  margin-top: 4px;
}

/* Notificări Sistem tip Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  border-radius: 4px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.3s ease;
}

.toast.toast-success { border-left-color: var(--status-green); }
.toast.toast-error { border-left-color: var(--status-red); }
.toast.toast-warning { border-left-color: var(--status-yellow); }

.toast-message {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

/* Formulare / Câmpuri Admin Editare */
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-form-full {
  grid-column: 1 / -1;
}

.form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  background: #ffffff;
  color: var(--primary);
  transition: var(--transition);
}

.form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  height: 100px;
  resize: vertical;
}

/* Chat Tichete */
.ticket-chat-container {
  display: flex;
  flex-direction: column;
  height: 450px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  overflow: hidden;
}

.ticket-chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
}

.chat-bubble-admin {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-bubble-client {
  background: #ffffff;
  color: var(--primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
}

.chat-bubble-client .chat-meta {
  color: var(--text-muted);
}

.ticket-chat-input-bar {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.ticket-chat-input-bar input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  transition: var(--transition);
}

.ticket-chat-input-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Ecran Lipsă Permisiune */
.forbidden-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 120px);
  text-align: center;
  padding: 20px;
}

.forbidden-icon {
  color: var(--status-red);
  margin-bottom: 20px;
}

.forbidden-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.forbidden-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 24px;
}

/* Animații */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Adaptabilitate Telefon / Tabletă (Responsive) */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    left: -260px;
    height: 100vh;
  }
  
  .sidebar.mobile-open {
    left: 0;
  }
  
  .app-layout.mobile-active-sidebar::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    z-index: 95;
    backdrop-filter: blur(4px);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
  
  .order-page-layout {
    grid-template-columns: 1fr;
  }
  
  .order-sticky-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 16px;
  }
  .workspace {
    padding: 16px;
  }
  .grid-form {
    grid-template-columns: 1fr;
  }
}

/* --- PORTAL CLIENT REDESIGN (Screenshot Matching) --- */

/* Slim Sidebar on Desktop */
@media (min-width: 769px) {
  .sidebar-slim {
    width: 76px !important;
    padding: 0;
  }
  .sidebar-slim .sidebar-header {
    padding: 20px 8px;
    display: flex;
    justify-content: center;
  }
  .sidebar-slim .sidebar-menu {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .sidebar-slim .sidebar-menu-item {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }
  .sidebar-slim .sidebar-link {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: transparent;
    transition: var(--transition);
  }
  .sidebar-slim .sidebar-link svg {
    margin: 0;
    width: 22px;
    height: 22px;
  }
  .sidebar-slim .sidebar-link span {
    display: none !important; /* Ascundem textul pe desktop */
  }
  .sidebar-slim .sidebar-menu-item.active .sidebar-link {
    background: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
  }
  .sidebar-slim .sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }
  .sidebar-slim .sidebar-footer {
    padding: 16px 8px;
    display: flex;
    justify-content: center;
  }
}

/* Quick Nav Cards Hover Effects */
.quick-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #6366f1 !important;
}

/* Color Cards Styles */
.color-card {
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.color-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.green-split-block .color-card {
  flex-grow: 1;
}

/* Carduri KPI Administrare Simplificate */
.kpi-card-simplified {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card-simplified:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.kpi-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.kpi-info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-value-large {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.kpi-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Culori Pastel Fundal Iconițe */
.bg-pastel-blue {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}

.bg-pastel-purple {
  background-color: #f3e8ff !important;
  color: #7c3aed !important;
}

.bg-pastel-mint {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
}

.bg-pastel-pink {
  background-color: #fce7f3 !important;
  color: #db2777 !important;
}

.bg-pastel-yellow {
  background-color: #fef9c3 !important;
  color: #ca8a04 !important;
}

.bg-pastel-orange {
  background-color: #ffedd5 !important;
  color: #ea580c !important;
}

/* Badge-uri Status Pastelate */
.badge-pastel-blue {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}

.badge-pastel-green {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
}

.badge-pastel-yellow {
  background-color: #fef9c3 !important;
  color: #ca8a04 !important;
}

.badge-pastel-purple {
  background-color: #f3e8ff !important;
  color: #7c3aed !important;
}

.badge-solid-green {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.badge-pastel-red {
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
}



/* ================= RESPONSIVE MOBILE & TABLET STYLES ================= */
@media (max-width: 992px) {
  .admin-layout, .client-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 10px 0 20px rgba(0,0,0,0.3);
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    margin-right: 12px;
  }

  .topbar {
    padding: 12px 16px;
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }
  
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .login-container {
    padding: 24px 18px;
    width: 92%;
  }

  .topbar-right {
    gap: 8px;
  }

  .kpi-card-simplified {
    padding: 16px;
    gap: 14px;
  }

  .kpi-value-large {
    font-size: 20px;
  }
}

/* ================= MINIMALIST PWA DOWNLOAD PILL STYLES ================= */
.pwa-app-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  transform: translateY(140%);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(2, 132, 199, 0.15);
  border-radius: 30px;
  padding: 6px 10px 6px 14px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.pwa-app-banner.active {
  transform: translateY(0);
}

.pwa-app-banner:hover {
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(2, 132, 199, 0.25);
}

.pwa-download-btn {
  background: transparent;
  color: #ffffff;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  transition: color 0.2s ease;
}

.pwa-download-btn:hover {
  color: #38bdf8;
}

.pwa-dl-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.pwa-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pwa-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (max-width: 640px) {
  .pwa-app-banner {
    bottom: 16px;
    right: 16px;
  }
}

