* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background-color: #f5f7fb;
    line-height: 1.6;
  }
  
  /* Admin Container */
  .admin-container {
    display: flex;
    min-height: 100vh;
  }
  .btn-danger {
    background-color: var(--error-color);
    color: white;
  }
  
  .btn-danger:hover {
    opacity: 0.9;
  }
  
  @media (min-width: 992px) {
    .sidebar {
      left: 0;
    }
    
    #shade {
      display: none !important;
    }
    
    #main-content {
      margin-left: 280px;
    }
  }
  
  /* Filter Section */
  .filter-section {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
  }
  
  .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .filter-group {
    margin-bottom: 0;
  }
  
  .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
  }
  
  .filter-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 10px;
  }
  
  .pagination button {
    padding: 8px 12px;
    border: 1px solid var(--medium-gray);
    background: white;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px; /* Increased width for create due form */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
  }
  
  @keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  .modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--medium-gray);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  /* Create Due Form Styles (Adapted from createDueStyles.css) */
  .create-due-form {
    max-width: 100%;
  }
  
  .form-header {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .form-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .form-header p {
    color: var(--dark-gray);
    font-size: 0.9rem;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  @media (min-width: 768px) {
    .form-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .full-width {
      grid-column: span 2;
    }
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
  }
  
  .form-group label i {
    color: var(--dark-gray);
    font-weight: normal;
    font-size: 0.8em;
  }
  
  .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
  }
  
  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
  }
  
  .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
  }
  
  .checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
  }
  
  .amount-input {
    position: relative;
  }
  
  .amount-input:before {
    content: "₦";
    position: absolute;
    left: 12px;
    top: 50%;
    font-weight: 600;
    color: var(--text-color);
  }
  .amount-input:before #dueCharge {
    content: "₦";
    position: absolute;
    left: 12px;
    top: 60%;
    font-weight: 600;
    color: var(--text-color);
  }
  
  .amount-input input {
    padding-left: 30px !important;
  }
  
  /* Make all modals consistent */
  .view-due-modal .modal-content,
  .edit-due-modal .modal-content,
  .create-due-modal .modal-content {
    max-width: 800px;
  }
  
  /* Detail view styles */
  .due-details .detail-row {
    display: flex;
    margin-bottom: 12px;
  }
  
  .due-details .detail-label {
    font-weight: 600;
    min-width: 120px;
    color: var(--dark-gray);
  }
  
  .due-details .detail-value {
    flex: 1;
  }
  
  /* Stats cards */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
  }
  
  .stat-card {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
  }
  
  .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .stat-label {
    font-size: 0.8rem;
    color: var(--dark-gray);
  }
  
  /* Loading Spinner */
  .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
  }
  
  .empty-state i {
    font-size: 3rem;
    color: var(--medium-gray);
    margin-bottom: 15px;
  }
  
  .empty-state p {
    margin-top: 10px;
  }