/* ========== Global Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #212529;
    overflow-x: hidden;
  }
  
  /* ========== Main Container ========== */
  main.container-fluid {
    margin-left: 260px; /* Sidebar width */
    padding: 90px 20px 100px 20px;
    min-height: 100vh;
    overflow: auto;
    position: relative;
    margin-top: 70px;
  }
  
  body::after {
    content: '';
    display: block;
    height: 60px;
  }
  
  /* ========== Cards ========== */
  .card {
    border: none;
    border-radius: 10px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  h4{
    margin-top: 70px;
  }
  .card h6 {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
  }
  
  .card h5 {
    font-size: 20px;
    font-weight: bold;
    color: #198754;
  }
  
  /* Special color for summaries */
  .bg-success.bg-opacity-10 h5 {
    color: #198754;
  }
  .bg-warning.bg-opacity-10 h5 {
    color: #fd7e14;
  }
  .bg-info.bg-opacity-10 h5 {
    color: #0dcaf0;
  }
  .bg-danger.bg-opacity-10 h5 {
    color: #dc3545;
  }
  
  /* ========== Chart Styling ========== */
  #feeAnalyticsChart {
    display: block;
    max-width: 100%;
    height: 320px !important;
  }
  
  /* ========== Chart Card ========== */
  .card#analytics-card {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    margin-top: 40px;
    margin-bottom: 80px;
  }
  
  /* ========== Table Styling ========== */
  .table thead th {
    background-color: #f1f3f5;
    font-size: 15px;
    font-weight: 600;
  }
  .table td, .table th {
    vertical-align: middle;
    font-size: 14px;
  }
  .table td {
    font-weight: 500;
  }
  .table-bordered {
    border: 1px solid #dee2e6;
  }
  .table-bordered th,
  .table-bordered td {
    border: 1px solid #dee2e6;
  }
  .table-responsive {
    overflow-x: auto;
    margin-bottom: 50px;
  }
  
  /* ========== Form Filters ========== */
  form .form-label {
    font-weight: 500;
  }
  form select {
    height: 45px;
  }
  
  /* ========== Responsive Fix ========== */
  @media (max-width: 768px) {
    main.container-fluid {
      margin-left: 0;
      padding: 80px 10px 100px 10px;
    }
  
    .row.text-center .col-md-3,
    .row.text-center .col-md-4 {
      margin-bottom: 20px;
    }
  
    #feeAnalyticsChart {
      height: 280px !important;
    }
  
    canvas {
      width: 100% !important;
    }
  }

  
  /* ========== DASHBOARD CARDS ========== */
.dashboard-card {
    background-color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid transparent;
  }
  
  .dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .dashboard-card .card-body {
    padding: 0.875rem 1rem 0.625rem;
    flex-grow: 1;
  }
  
  .dashboard-card .card-title {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }
  
  .dashboard-card .card-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
  }
  
  .dashboard-card:hover .card-value {
    transform: scale(1.05);
  }
  
  .dashboard-card .card-text {
    font-size: 0.75rem;
    color: #666;
  }
  
  .dashboard-card .icon-check {
    position: absolute;
    top: 0.625rem;
    right: 0.75rem;
    font-size: 1.125rem;
  }
  
  /* ========== CARD FOOTER BUTTON ========== */
  .card-footer-btn {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.625rem 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-radius: 0 0 0.75rem 0;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
  }
  
  .card-footer-btn:hover {
    opacity: 0.9;
  }
  
  .card-footer-btn i {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
  }
  
  .card-footer-btn:hover i {
    transform: translateX(4px);
  }
  
  /* ========== UTILITY: BORDER COLORS ========== */
  .border-primary   { border-left-color: #007bff !important; }
  .border-info      { border-left-color: #17a2b8 !important; }
  .border-danger    { border-left-color: #dc3545 !important; }
  .border-secondary { border-left-color: #6c757d !important; }
  .border-warning   { border-left-color: #ffc107 !important; }
  .border-success   { border-left-color: #28a745 !important; }
  .border-purple    { border-left-color: #8e44ad !important; }
  .border-orange    { border-left-color: #fd7e14 !important; }
  .border-pink      { border-left-color: #e83e8c !important; }
  .border-cyan      { border-left-color: #00bcd4 !important; }
  .border-brown     { border-left-color: #795548 !important; }
  .border-indigo    { border-left-color: #3f51b5 !important; }
  .border-teal      { border-left-color: #009688 !important; }