@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;500&family=Public+Sans:wght@400;500;600&display=swap');

:root {
  /* Font Family Definitions */
  --bs-font-sans-serif: 'Public Sans', sans-serif;
  --bs-font-serif: 'IBM Plex Serif', serif;
  
  /* Apply to Bootstrap Defaults */
  --bs-body-font-family: var(--bs-font-sans-serif);

  /* Overriding Bootstrap Defaults */
  --bs-primary: #1A2B3C;      /* Deep Midnight Navy */
  --bs-body-bg: #F4F7F9;      /* Soft Slate Background */
  --bs-body-color: #2D3748;   /* Softened Black Text */
  
  /* Adding Custom Theme Tokens */
  --theme-sage: #8A9A8B;      /* Muted Sage Accent */
  --theme-border: #E2E8F0;    /* Neutral Gray Border */
}

/* Customizing Component Specifics */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #2d4a66; /* Lightened shade */
}

/* Typography Overrides */
body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* Use Serif for Headings to ground the "Legal" brand */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2 {
  font-family: var(--bs-font-serif);
  color: var(--bs-primary); /* Deep Midnight Navy */
  font-weight: 500;
}

/* Ensure data-heavy elements use Tabular Figures for alignment */
.table, .data-grid {
  font-variant-numeric: tabular-nums;
}

/* Form Input Tranquil Focus Override */
.input-tranquil:focus {
  border-bottom: 2px solid var(--theme-sage) !important;
  box-shadow: none !important;
}

/* Custom Spacing Utilities */
.p-100 {
  padding: 100px !important;
}

/* Centralized Utilities from CSS Migration */
.glass-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 168, 232, 0.15);
  box-shadow: 0 8px 32px rgba(15, 43, 70, 0.06);
  transition: all 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 43, 70, 0.12);
}
.bg-gradient-primary {
  background: linear-gradient(135deg, #0F2B46 0%, #1A3A5C 100%);
}

/* Sidebar Navigation */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: #0F172A;
  --sidebar-hover: #1E293B;
  --gold: #D4AF37;
  --gold-light: #E5C158; /* Lighter shade of gold */
}
.bg-gold-light {
  background-color: var(--gold-light);
}
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg); color: #fff; z-index: 1030;
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.sidebar .brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar .brand a { text-decoration: none; color: #fff; display: flex; align-items: center; gap: 10px; }
.sidebar .brand img { height: 36px; width: auto; }
.sidebar .brand .brand-text { font-weight: 700; font-size: 18px; letter-spacing: -0.5px; color: #fff; }
.sidebar .brand .brand-text span { color: var(--gold); }
.sidebar .nav-menu { flex: 1; padding: 15px 0; }
.sidebar .nav-item { margin: 2px 0; }
.sidebar .nav-link {
  color: rgba(255,255,255,0.7); padding: 10px 25px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active { 
  background: var(--sidebar-hover); 
  color: #fff; 
}
.sidebar .nav-link .icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar .submenu { list-style: none; padding-left: 0; margin: 0; display: none; }
.sidebar .submenu.open { display: block; }
.sidebar .submenu .nav-link { padding-left: 55px; font-size: 13px; }
.sidebar .sidebar-footer {
  padding: 15px 20px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.4); text-align: center;
}
.sidebar .sidebar-footer p { margin: 0; }
.main-content { margin-left: var(--sidebar-width); min-height: 100vh; padding: 20px 30px; }
.sidebar-toggle {
  display: none; position: fixed; top: 15px; left: 15px; z-index: 1040;
  background: var(--sidebar-bg); color: #fff; border: none;
  border-radius: 5px; padding: 8px 12px; font-size: 20px;
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: block; }
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Client Login Glassmorphism */
.client-login-body {
  height: 100vh;
  font-family: 'Montserrat', sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='xMidYMid slice' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CradialGradient id='G1' cx='50%25' cy='50%25' fx='0.44%25' fy='50%25' r='.5'%3E%3Canimate attributeName='fx' dur='34s' values='0%25;3%25;0%25' repeatCount='indefinite'/%3E%3Cstop offset='0%25' stop-color='rgba(0,168,232,1)'/%3E%3Cstop offset='100%25' stop-color='rgba(0,168,232,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='G2' cx='50%25' cy='50%25' fx='2.68%25' fy='50%25' r='.5'%3E%3Canimate attributeName='fx' dur='23.5s' values='0%25;3%25;0%25' repeatCount='indefinite'/%3E%3Cstop offset='0%25' stop-color='rgba(15,43,70,1)'/%3E%3Cstop offset='100%25' stop-color='rgba(15,43,70,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='G3' cx='50%25' cy='50%25' fx='0.84%25' fy='50%25' r='.5'%3E%3Canimate attributeName='fx' dur='21.5s' values='0%25;3%25;0%25' repeatCount='indefinite'/%3E%3Cstop offset='0%25' stop-color='rgba(245,158,11,1)'/%3E%3Cstop offset='100%25' stop-color='rgba(245,158,11,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='G4' cx='50%25' cy='50%25' fx='4.56%25' fy='50%25' r='.5'%3E%3Canimate attributeName='fx' dur='23s' values='0%25;5%25;0%25' repeatCount='indefinite'/%3E%3Cstop offset='0%25' stop-color='rgba(0,168,232,1)'/%3E%3Cstop offset='100%25' stop-color='rgba(0,168,232,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='G5' cx='50%25' cy='50%25' fx='2.65%25' fy='50%25' r='.5'%3E%3Canimate attributeName='fx' dur='24.5s' values='0%25;5%25;0%25' repeatCount='indefinite'/%3E%3Cstop offset='0%25' stop-color='rgba(26,58,92,1)'/%3E%3Cstop offset='100%25' stop-color='rgba(26,58,92,0)'/%3E%3C/radialGradient%3E%3CradialGradient id='G6' cx='50%25' cy='50%25' fx='0.98%25' fy='50%25' r='.5'%3E%3Canimate attributeName='fx' dur='25.5s' values='0%25;5%25;0%25' repeatCount='indefinite'/%3E%3Cstop offset='0%25' stop-color='rgba(0,168,232,1)'/%3E%3Cstop offset='100%25' stop-color='rgba(0,168,232,0)'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23G1)'/%3E%3Crect width='100' height='100' fill='url(%23G2)'/%3E%3Crect width='100' height='100' fill='url(%23G3)'/%3E%3Crect width='100' height='100' fill='url(%23G4)'/%3E%3Crect width='100' height='100' fill='url(%23G5)'/%3E%3Crect width='100' height='100' fill='url(%23G6)'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-color: #0F2B46;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-login-body .limiter { width: 100%; margin: 0 auto; animation: fadeInUp 0.8s ease both; }
.client-login-body .container-login100 { width: 100%; min-height: 100vh; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 15px; }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
.client-login-body .wrap-login100 { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3); overflow: hidden; display: flex; flex-wrap: wrap; padding: 40px 35px; max-width: 500px; width: 100%; }
.client-login-body .login100-pic { width: 100%; text-align: center; margin-bottom: 25px; }
.client-login-body .login100-pic img { width: 100px; height: 100px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); transition: transform 0.1s ease; }
.client-login-body .login100-form-title { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; text-align: center; width: 100%; display: block; padding-bottom: 8px; }
.client-login-body .login100-form-subtitle { font-size: 13px; color: rgba(255, 255, 255, 0.7); text-align: center; display: block; padding-bottom: 24px; }
.client-login-body .wrap-input100 { position: relative; width: 100%; z-index: 1; margin-bottom: 16px; }
.client-login-body .input100 { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; line-height: 1.5; color: #1E293B; display: block; width: 100%; background: #fff !important; height: 52px; border-radius: 26px; border: none; padding: 0 30px 0 55px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; }
.client-login-body .input100:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.3), 0 3px 10px rgba(0, 0, 0, 0.15); }
.client-login-body .symbol-input100 { font-size: 18px; display: flex; align-items: center; position: absolute; border-radius: 26px 0 0 26px; bottom: 0; left: 0; width: 55px; height: 100%; justify-content: center; color: #94A3B8; pointer-events: none; transition: all 0.4s; }
.client-login-body .input100:focus~.symbol-input100 { color: #00A8E8; }
.client-login-body .showpass { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94A3B8; font-size: 16px; transition: color 0.3s; }
.client-login-body .showpass:hover { color: #00A8E8; }
.client-login-body .alert-error { background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3); color: #FCA5A5; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; font-weight: 500; text-align: center; }
.client-login-body .container-login100-form-btn { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; padding-top: 10px; }
.client-login-body .login100-form-btn { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.5; color: #fff; width: 100%; height: 52px; border-radius: 26px; border: none; background: linear-gradient(135deg, #00A8E8 0%, #0077B6 100%); display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 25px; cursor: pointer; transition: all 0.4s; box-shadow: 0 5px 20px rgba(0, 168, 232, 0.3); }
.client-login-body .login100-form-btn:hover { background: linear-gradient(135deg, #0077B6 0%, #005A8C 100%); box-shadow: 0 8px 30px rgba(0, 168, 232, 0.4); transform: translateY(-1px); }
.client-login-body .login100-form-btn:active { transform: translateY(0); }
.client-login-body .footer-links { text-align: center; padding-top: 18px; }
.client-login-body .footer-links a { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s; }
.client-login-body .footer-links a:hover { color: #00A8E8; }
.client-login-body .footer-links span { color: rgba(255, 255, 255, 0.4); margin: 0 8px; }
@media (max-width: 576px) { .client-login-body .wrap-login100 { padding: 30px 25px; } .client-login-body .login100-pic img { width: 80px; height: 80px; } .client-login-body .login100-form-title { font-size: 19px; } }

/* Print Styles */
@media print {
    .sidebar, .sidebar-footer, .main-content .d-flex, .btn, .navbar, footer, .no-print, .filter-card form, .sidebar-toggle, .print-icon {
        display: none !important;
    }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    .card { border: 1px solid #ccc !important; break-inside: avoid; }
    .table { width: 100%; border-collapse: collapse; }
    .table th, .table td { border: 1px solid #ddd !important; }
    body { background: white; font-size: 12pt; }
    h2, h4 { margin-top: 20px; }
    .filter-card { display: none; }
}
.print-icon { cursor: pointer; }

/* Stat Card */
.stat-card { border-left: 4px solid; border-radius: 8px; background: white; padding: 15px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-card h3 { margin: 0; font-size: 1.8rem; }
.stat-card p { margin: 0; color: #6c757d; font-size: 0.9rem; }

/* Floating Add Button */
.floating-btn { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.floating-btn .btn { width: 60px; height: 60px; font-size: 28px; border-radius: 50%; background-color: #0a2b4e !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: none; display: flex; align-items: center; justify-content: center; }
.floating-btn .btn:hover { background-color: #123a60 !important; transform: scale(1.05); }

/* Reduce Data Font-size */
.table tbody td {
    font-size: 0.85rem;
}
