:root {
  --primary-color: #0a1128; /* Deepest Navy */
  --primary-light: #1c2541; /* Lighter Navy */
  --secondary-color: #d4af37; /* Metallic Gold */
  --accent-color: #f3e5ab; /* Pale Gold */
  --text-color: #1b263b;
  --light-text: #415a77;
  --white: #ffffff;
  --bg-color: #f0f2f5;
  
  /* Modern UI Variables */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.6);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 25px 50px -12px rgba(10, 17, 40, 0.25);
  --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, #0a1128 0%, #1c2541 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.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
}

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: 
    radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(10, 17, 40, 0.05) 0px, transparent 50%);
}

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

a {
  text-decoration: none;
  color: var(--primary-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.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  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(--primary-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);
}

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

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

.btn-secondary:hover {
    background: #c5a028;
    color: var(--white);
}

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

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

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

.btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    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);
}

.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(--primary-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-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-primary);
  -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.5);
}

/* Features Section */
.feature-card {
  padding: 2.5rem;
  border-radius: var(--border-radius);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.03);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(10, 17, 40, 0.2);
}

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

/* Stats Section */
.stats-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 6rem 0;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
  margin-top: -5rem;
  position: relative;
  z-index: 2;
}

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

/* Footer */
footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

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

footer a {
  color: rgba(255, 255, 255, 0.7);
}

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(255,255,255,0.02);
    transform: skewY(-10deg);
}

/* 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;
  }
}

/* Modern Login Page Styles */
.login-body {
    background: var(--primary-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.2), rgba(10, 17, 40, 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.15); }
.shard-2 { width: 500px; height: 500px; bottom: -50px; right: -50px; animation-delay: 2s; background: rgba(28, 37, 65, 0.6); }
.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;
    padding: 2rem;
}

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

.login-visual-side {
    flex: 1;
    min-width: 350px;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.8), rgba(28, 37, 65, 0.9)), url('/images/trust-printer.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    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.2), transparent 70%);
}

.login-form-side {
    flex: 1;
    min-width: 350px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 17, 40, 0.6);
}

.glass-input-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

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

.glass-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 10px 0;
    outline: none;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-btn {
    background: var(--gradient-gold);
    color: var(--primary-color);
    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.3);
}

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

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

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

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

/* Glass Sidebar */
.sidebar-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--white);
    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 .nav-link {
    color: rgba(255, 255, 255, 0.7) !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 .nav-link:hover, .sidebar-glass .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-glass .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !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(--white);
}

/* Glass Top Navbar */
.top-navbar-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--white);
    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: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

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

.metric-card-glass .metric-value {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

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

/* Tables Glass */
.table-glass {
    color: var(--white);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 1rem;
}

.table-glass th {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

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

.table-glass tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

/* 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.2); color: #75b798; border: 1px solid rgba(25, 135, 84, 0.3); }
.status-pending, .status-draft { background-color: rgba(255, 193, 7, 0.2); color: #ffda6a; border: 1px solid rgba(255, 193, 7, 0.3); }
.status-failed, .status-overdue, .status-cancelled { background-color: rgba(220, 53, 69, 0.2); color: #ea868f; border: 1px solid rgba(220, 53, 69, 0.3); }
.no-invoices-message {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 2rem;
}

/* Content Wrapper Adjustment */
.content-wrapper-glass {
    padding: 1rem;
    width: 100%;
    color: var(--white);
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.glass-form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    color: var(--white);
    outline: none;
}

.glass-form-control option {
    background-color: var(--primary-color);
    color: var(--white);
}

.glass-form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    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='%23ffffff' 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: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    color: var(--white);
    outline: none;
}

.glass-form-select option {
    background-color: var(--primary-color);
    color: var(--white);
}

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

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