:root {
  --primary-color: #f4f6f9; /* Light Background */
  --primary-light: #ffffff;
  --secondary-color: #d4af37; /* Metallic Gold */
  --accent-color: #f3e5ab; /* Pale Gold */
  --text-color: #1a1a1a; /* Dark Text */
  --light-text: #4a4a4a;
  --white: #ffffff;
  --bg-color: #f4f6f9;
  
  /* Modern UI Variables - Light Theme */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: 1px solid rgba(0, 0, 0, 0.08);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  --shard-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
  
  --border-radius: 24px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --gradient-primary: linear-gradient(135deg, #f4f6f9 0%, #ffffff 100%);
  --gradient-gold: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%); /* Metallic Gold Gradient */
  --gradient-shard: linear-gradient(45deg, rgba(255,255,255,0.8) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.8) 75%, transparent 75%, transparent);

  /* Overrides for previously dark glass variables */
  --glass-bg-dark: rgba(255, 255, 255, 0.95);
  --glass-border-light: rgba(0, 0, 0, 0.08);
  --glass-shadow-strong: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --accent-glow: 0 0 15px rgba(212, 175, 55, 0.3);
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  line-height: 1.7;
  overflow-x: hidden;
  background-image: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Navbar */
.navbar {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand img {
  max-height: 55px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 600;
  color: var(--text-color) !important;
  margin: 0 12px;
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-gold);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  color: var(--text-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 100%);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    color: #ffffff;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #c5a028;
    color: #ffffff;
}

.btn-outline-primary {
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 50px;
  padding: 8px 25px;
  font-weight: 600;
}

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

.btn-glass-outline {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-glass-outline:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  color: var(--text-color);
}

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

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 600;
  color: var(--text-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: var(--bg-color);
  padding: 180px 0 140px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
    z-index: 0;
}

.hero-bg-shape {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-image-container {
  position: relative;
  z-index: 1;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
}

.hero-image-container:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image {
  border-radius: 30px;
  box-shadow: var(--shard-shadow);
  border: 5px solid rgba(255, 255, 255, 0.8);
}

/* New Floating Elements for Hero */
.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.5);
    animation: float 6s ease-in-out infinite;
}

.hero-floating-card.card-1 {
    top: 10%;
    left: -50px;
    animation-delay: 0s;
}

.hero-floating-card.card-2 {
    bottom: 10%;
    right: -30px;
    animation-delay: 3s;
}

.hero-floating-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.hero-floating-card .text {
    display: flex;
    flex-direction: column;
}

.hero-floating-card .text strong {
    font-size: 0.9rem;
    color: var(--text-color);
}

.hero-floating-card .text span {
    font-size: 0.75rem;
    color: var(--light-text);
}

/* Features Section */
.feature-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.feature-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.feature-box:hover::after {
  transform: scaleX(1);
}

.feature-card {
  padding: 2.5rem;
  border-radius: var(--border-radius);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--text-color);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  background: #f8f9fa;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2rem;
  color: var(--secondary-color);
}

/* Pricing Section */
.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card.featured {
  background: var(--gradient-gold);
  color: #ffffff;
  border: none;
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.08);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.pricing-card.featured .price {
  color: #ffffff;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-card ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.pricing-card ul li i {
  margin-right: 10px;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.pricing-card.featured ul li i {
  color: #ffffff;
}

/* Stats Section */
.stats-section {
  background: #ffffff;
  color: var(--text-color);
  padding: 6rem 0;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
  margin-top: -5rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: #ffffff;
  color: var(--light-text);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

footer h5 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--light-text);
}

footer a:hover {
  color: var(--secondary-color);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating-icon {
  animation: float 5s ease-in-out infinite;
}

/* Utility for Shards */
.shard-bg {
    position: absolute;
    background: rgba(212, 175, 55, 0.1);
    transform: skewY(-10deg);
}

/* Global Background Shapes */
.bg-shape-1, .bg-shape-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}
.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(212, 175, 55, 0.05);
    top: -100px;
    left: -100px;
}
.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 123, 255, 0.03);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .hero-section { padding: 140px 0 100px; clip-path: none; }
  .stats-section { clip-path: none; padding: 4rem 0; }
  .hero-image-container {
      margin-top: 4rem;
      transform: none;
  }
  .hero-image-container:hover {
      transform: none;
  }
}

/* Utility Classes */
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.02);
}

/* Modern Login Page Styles */
.login-body {
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Animated Shards */
.login-shard {
    position: absolute;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.5));
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.shard-1 { width: 600px; height: 600px; top: -100px; left: -100px; animation-delay: 0s; background: rgba(212, 175, 55, 0.1); }
.shard-2 { width: 500px; height: 500px; bottom: -50px; right: -50px; animation-delay: 2s; background: rgba(200, 200, 200, 0.2); }
.shard-3 { width: 300px; height: 300px; top: 40%; left: 60%; animation-delay: 4s; background: rgba(212, 175, 55, 0.05); }

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.login-card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 650px;
}

.login-visual-side {
    flex: 1;
    min-width: 350px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 242, 245, 0.9)), url('/images/trust-printer.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-color);
    position: relative;
}

.login-visual-side::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
}

.login-form-side {
    flex: 1;
    min-width: 350px;
    width: 100%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsiveness for Login */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    .login-visual-side {
        padding: 2rem;
        min-width: 100%;
        min-height: 300px;
    }
    .login-form-side {
        padding: 2rem;
        min-width: 100%;
    }
    .login-card-glass {
        flex-direction: column;
        border-radius: 20px;
    }
}

.glass-input-group {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    min-height: 55px;
}

.glass-input-group:focus-within {
    background: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.glass-input-group i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

.glass-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    width: 100%;
    padding: 12px 0;
    outline: none;
    font-size: 1rem;
    line-height: 1.5;
}

.glass-input::placeholder {
    color: var(--light-text);
}

.login-btn {
    background: var(--gradient-gold);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.stat-pill {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

/* Dashboard Redesign Styles */
.dashboard-body {
    background: var(--bg-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.dashboard-glass-container {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    margin: 20px;
    min-height: calc(100vh - 40px);
    display: flex;
    overflow: hidden;
}

/* Glass Sidebar */
.sidebar-glass {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: var(--text-color);
    transition: all 0.3s ease;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    min-height: 100%;
    overflow-y: auto;
}

.sidebar-glass.collapsed {
    width: 72px;
}

.sidebar-glass .nav-link {
    color: var(--light-text) !important;
    border-radius: 10px;
    margin: 5px 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

.sidebar-glass .nav-link i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.sidebar-glass.collapsed .nav-link {
    justify-content: center;
}
.sidebar-glass.collapsed .nav-link i {
    margin-right: 0;
}
.sidebar-glass.collapsed .nav-text,
.sidebar-glass.collapsed .sidebar-header .logo-text {
    display: none;
}
.sidebar-glass.collapsed .sidebar-header {
    padding: 16px;
}

.sidebar-glass .nav-link:hover, .sidebar-glass .nav-link.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--secondary-color) !important;
    box-shadow: none;
}

.sidebar-glass .sidebar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-glass .sidebar-header .brand-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

.sidebar-glass .sidebar-header .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Glass Top Navbar */
.top-navbar-glass {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: var(--text-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-radius: 15px;
    margin: 1rem;
}

/* Metric Cards Glass */
.metric-card-glass {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.metric-card-glass:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.metric-card-glass h3 {
    margin-bottom: 0.5rem;
}

.glass-card .card-body {
    padding: 1.5rem 1.75rem;
}

.metric-card-glass .metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-card-glass .metric-title {
    color: var(--light-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.metric-card-glass .metric-value {
    color: var(--text-color);
    text-shadow: none;
    font-size: clamp(1.25rem, 6vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.metric-card-glass .metric-icon {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
    font-size: 2rem;
}

/* Tables Glass */
.table-glass {
    color: var(--text-color);
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.table-glass th {
    background: #f8f9fa;
    color: var(--text-color);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.table-glass td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    padding: 1rem;
}

.table-glass tr:hover td {
    background: #f8f9fa;
    color: var(--text-color);
}

/* Status Badges for Glass Theme */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5em 0.8em;
}
.status-paid { background-color: rgba(25, 135, 84, 0.1); color: #198754; border: 1px solid rgba(25, 135, 84, 0.2); }
.status-pending, .status-draft { background-color: rgba(255, 193, 7, 0.1); color: #856404; border: 1px solid rgba(255, 193, 7, 0.2); }
.status-failed, .status-overdue, .status-cancelled { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; border: 1px solid rgba(220, 53, 69, 0.2); }
.no-invoices-message {
    color: var(--light-text);
    font-style: italic;
    padding: 2rem;
}

/* Content Wrapper Adjustment */
.content-wrapper-glass {
    padding: 1rem;
    width: 100%;
    color: var(--text-color);
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* Ensure content moves smoothly when sidebar toggles */
    transition: margin-left 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure React-mounted sidebar content wrapper transition matches */
#content-wrapper {
    transition: margin-left 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass Form Controls */
.glass-form-control {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.glass-form-control:focus {
    background: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    color: var(--text-color);
    outline: none;
}

.glass-form-control option {
    background-color: #ffffff;
    color: var(--text-color);
}

.glass-form-select {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.glass-form-select:focus {
    background-color: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    color: var(--text-color);
    outline: none;
}

.glass-form-select option {
    background-color: #ffffff;
    color: var(--text-color);
}

.glass-card {
    background: #ffffff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

/* Draft Status Modal - Light Theme */
#draftModal .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    color: var(--text-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}
#draftModal .modal-header,
#draftModal .modal-footer {
    border-color: rgba(0, 0, 0, 0.05) !important;
}
#draftModal .modal-title {
    color: var(--text-color);
    letter-spacing: 0.3px;
}
#draftModal .btn-close.btn-close-white {
    filter: none;
}
#draftModal #draft-message {
    color: var(--text-color);
    font-weight: 600;
}
.modal-backdrop.show {
    background-color: #000;
    opacity: 0.3;
}

/* Add Company Modal - Light Theme */
#addCompanyModal .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    color: var(--text-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}
#addCompanyModal .modal-header,
#addCompanyModal .modal-footer {
    border-color: rgba(0, 0, 0, 0.05) !important;
}
#addCompanyModal .modal-title {
    color: var(--text-color);
    letter-spacing: 0.3px;
}
#addCompanyModal .btn-close.btn-close-white {
    filter: none;
}

/* Ensure modal is above backdrop even within stacking contexts */
#addCompanyModal { 
    z-index: 1065; 
}
#addCompanyModal .modal-dialog { 
    z-index: 1066; 
}

/* Invoice Preview Modal - Light Theme */
#invoiceModal .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    color: var(--text-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}
#invoiceModal .modal-header,
#invoiceModal .modal-footer {
    border-color: rgba(0, 0, 0, 0.05) !important;
}
#invoiceModal .modal-title {
    color: var(--text-color);
    letter-spacing: 0.3px;
}
#invoiceModal .btn-close.btn-close-white {
    filter: none;
}
#invoiceModal #invoice-pdf-viewer {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

@media (max-width: 768px) {
  .glass-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .content-wrapper-glass { padding: 0.5rem; }
  .metric-card-glass .metric-value { font-size: 1.75rem; }
  .sidebar-glass { width: 72px; }
  .sidebar-glass .nav-text { display: none; }
  .sidebar-glass .nav-link { justify-content: center; }
  .sidebar-glass .nav-link i { margin-right: 0; }
}

/* =========================================
   Create Order Page Specific Styles
   ========================================= */

/* Modern Glass Overrides */
:root {
  --glass-bg-dark: rgba(255, 255, 255, 0.95);
  --glass-border-light: rgba(0, 0, 0, 0.08);
  --glass-shadow-strong: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --accent-glow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.create-order-page .glass-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--glass-shadow-strong);
    border-radius: 16px;
    overflow: visible;
    position: relative;
    color: var(--text-color);
}

.create-order-page .glass-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.create-order-page .glass-card:has(.searchable-select-dropdown.show) {
    z-index: 1040;
}

.glass-header {
    border-bottom: 1px solid var(--glass-border-light);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Drop Zone Enhanced */
.drop-zone {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.drop-zone-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
    transition: transform 0.3s ease;
}

.drop-zone:hover .drop-zone-icon { transform: scale(1.1); }

/* Section Titles */
.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Sticky Summary Card */
.summary-card {
    position: sticky;
    top: 20px;
    z-index: 100;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.summary-item:last-child { border-bottom: none; }
.summary-label { color: var(--light-text); font-size: 0.9rem; }
.summary-value { color: var(--text-color); font-weight: 600; font-size: 1rem; }

/* Big Stats in Summary */
.big-stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
}
.big-stat-val { font-size: 2.5rem; font-weight: 700; color: var(--secondary-color); line-height: 1; }
.big-stat-label { font-size: 0.8rem; color: var(--light-text); text-transform: uppercase; margin-top: 0.5rem; }

/* Custom Toggle Switch */
.form-check-input {
    background-color: #e9ecef;
    border-color: #dee2e6;
    width: 3em; height: 1.5em;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Preview Container */
.preview-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* Progress Stepper */
.stepper-wrapper {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stepper-item::before {
  position: absolute;
  content: "";
  border-bottom: 2px solid rgba(0,0,0,0.1);
  width: 100%;
  top: 20px;
  left: -50%;
  z-index: 2;
}

.stepper-item::after {
  position: absolute;
  content: "";
  border-bottom: 2px solid rgba(0,0,0,0.1);
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 2;
}

.stepper-item .step-counter {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  margin-bottom: 6px;
  color: var(--light-text);
  border: 2px solid transparent;
  font-weight: bold;
}

.stepper-item.active .step-counter {
  background: var(--secondary-color);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.stepper-item.completed .step-counter {
  background: var(--secondary-color);
  color: #ffffff;
}

.stepper-item.completed::after {
  position: absolute;
  content: "";
  border-bottom: 2px solid var(--secondary-color);
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 3;
}

.stepper-item:first-child::before { content: none; }
.stepper-item:last-child::after { content: none; }

.step-name {
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 500;
}
.stepper-item.active .step-name {
    color: var(--text-color);
    font-weight: 700;
}

/* Professional Searchable Select */
.searchable-select-wrapper {
    position: relative;
    flex-grow: 1;
    min-width: 0;
}

.searchable-select-trigger {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-radius: 0;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 48px;
}

.searchable-select-trigger:hover {
    background: #f8f9fa;
    border-color: var(--secondary-color);
}

.searchable-select-trigger.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.searchable-select-trigger::after {
    content: '';
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--light-text);
    transition: transform 0.3s ease;
}

.searchable-select-trigger.active::after {
    transform: rotate(180deg);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1050;
    margin-top: 5px;
    display: none;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-search {
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #f8f9fa;
}

.searchable-select-search input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    font-size: 0.9rem;
}

.searchable-select-search input:focus {
    border-color: var(--secondary-color);
    background: #ffffff;
}

.searchable-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 5px 0;
}

.searchable-select-option {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.searchable-select-option:hover, .searchable-select-option.selected {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-color);
}

.searchable-select-option.selected {
    font-weight: 600;
    border-left: 3px solid var(--secondary-color);
}

.searchable-select-footer {
    padding: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    background: #f8f9fa;
}

.searchable-select-footer button {
    width: 100%;
}

/* Scrollbar for options */
.searchable-select-options::-webkit-scrollbar {
    width: 6px;
}
.searchable-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.searchable-select-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.searchable-select-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
  .metric-card-glass { padding: 1rem; }
  .top-navbar-glass { padding: 0.75rem 1rem; }
}

.body-glass {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  background-image: none;
}
.body-glass .dashboard-glass-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.body-glass .glass-card {
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-strong);
  color: var(--text-color);
}
.body-glass .table {
  color: var(--text-color);
}
.body-glass .table th {
  background: rgba(0, 0, 0, 0.05);
  color: var(--secondary-color);
}
.body-glass .table td {
  color: var(--text-color);
}

/* Overrides for text utility classes in dashboard context */
.body-glass .text-white, 
.dashboard-body .text-white,
.login-body .text-white,
.glass-card .text-white,
.glass-header .text-white,
.glass-header h5,
.glass-header h1,
.section-title.text-white,
.form-label.text-white,
.table .text-white {
    color: var(--text-color) !important;
}

.body-glass .text-white-50, 
.dashboard-body .text-white-50,
.login-body .text-white-50,
.glass-card .text-white-50,
.table .text-white-50 {
    color: var(--light-text) !important;
}

.quo-page {
  background: #f5f7fb;
}
.quo-page .content-wrapper-glass {
  background: transparent;
}
.quo-topbar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 18px 22px;
}
.quo-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.quo-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.quo-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e8f0ff;
  color: #2f5eff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(47, 94, 255, 0.15);
}
.quo-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}
.quo-hero-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}
.quo-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  flex: 1 1 320px;
}
.quo-hero-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: quo-fade-in 0.6s ease both;
}
.quo-hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}
.quo-hero-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}
.quo-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.quo-card-header {
  padding: 18px 22px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quo-card-header--compact {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.quo-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quo-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.quo-card-icon--soft {
  background: #f1f5f9;
  color: #475569;
}
.quo-card-title-text {
  font-weight: 700;
  color: #0f172a;
}
.quo-card-subtitle {
  color: #64748b;
  font-size: 0.85rem;
}
.quo-card-body {
  padding: 18px 22px 22px 22px;
}
.quo-card-body--flush {
  padding: 0;
}
.quo-input-group .input-group-text {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}
.quo-input-group .form-control {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}
.quo-input,
.quo-select,
.quo-input-group .form-control {
  border-radius: 12px;
}
.quo-refresh {
  border-radius: 12px;
  padding: 6px 12px;
}
.quo-lines {
  min-height: 320px;
}
.quo-conversation-list {
  max-height: 540px;
  overflow-y: auto;
}
.quo-conversation-list .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 16px 20px;
  transition: all 0.2s ease;
  background: #ffffff;
}
.quo-conversation-list .list-group-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}
.quo-conversation-list .list-group-item:focus {
  background: #eef2ff;
}
.quo-thread {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  min-height: 360px;
}
.quo-bubble {
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  animation: quo-pop 0.2s ease-out both;
  max-width: 70%;
  padding: 10px 12px;
}
.quo-bubble--mine {
  background: #dbeafe;
  color: #0f172a;
}
.quo-bubble--theirs {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
.quo-composer {
  padding: 16px 20px 20px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}
@keyframes quo-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes quo-pop {
  from { transform: scale(0.98); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

.quo-message-row {
    display: flex;
    margin-bottom: 10px;
}
.quo-message-row--mine {
    justify-content: flex-end;
}
.quo-message-row--theirs {
    justify-content: flex-start;
}
.quo-text {
    white-space: pre-wrap;
    word-break: break-word;
}
.quo-time {
    font-size: 0.72rem;
    margin-top: 4px;
    color: #7a8793;
    text-align: right;
}
.quo-message-row--theirs .quo-time {
    text-align: left;
}
