.custom-card{
    margin-top: 2rem;
}

.transaction-item {
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.transaction-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.transaction-amount.income {
    color: var(--success);
}

.transaction-amount.expense {
    color: var(--danger);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .transaction-image {
        width: 40px;
        height: 40px;
    }

    .transaction-amount {
        font-size: 0.95rem;
    }

    .transaction-info {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .transaction-actions .btn-sm {
        padding: 0.35rem 0.65rem;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .transaction-image {
        width: 35px;
        height: 35px;
    }

    h6.fw-semibold {
        font-size: 0.9rem;
    }

    .fs-12 {
        font-size: 0.7rem !important;
    }

    .transaction-amount {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .transaction-actions .btn-sm {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .transaction-actions .btn-sm i {
        font-size: 0.9rem;
    }
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prevent button overflow */
.transaction-actions {
    flex-shrink: 0;
}

.btn-sm {
white-space: nowrap;
}

 .detail-card {
    transition: all 0.3s ease;
  }
  
  .budget-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .file-item {
    transition: all 0.2s ease;
  }
  
  .file-item:hover {
    background-color: var(--light);
    transform: translateX(5px);
  }
  
  /* Responsive adjustments */
  @media (max-width: 576px) {
    .card-title {
      font-size: 0.95rem;
    }
    
    h4.text-danger {
      font-size: 1.5rem;
    }
    
    .btn-sm {
      padding: 0.25rem 0.5rem;
      font-size: 0.875rem;
    }
  }
  
  /* Text overflow handling */
.text-break {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.overflow-hidden {
    overflow: hidden;
}
  
  /* Gap utility fallback for older browsers */
.gap-2 {
    gap: 0.5rem;
}

  .transaction-item {
    transition: all 0.3s ease;
  }
  
  .transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .transaction-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
  }
  
  .transaction-amount.income {
    color: var(--success);
  }
  
  .transaction-amount.expense {
    color: var(--danger);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .transaction-image {
      width: 40px;
      height: 40px;
    }
    
    .transaction-amount {
      font-size: 0.95rem;
    }
    
    .transaction-info {
      flex-direction: column;
      align-items: flex-start !important;
    }
    
    .transaction-actions .btn-sm {
      padding: 0.35rem 0.65rem;
      white-space: nowrap;
    }
  }
  
  @media (max-width: 576px) {
    .transaction-image {
      width: 35px;
      height: 35px;
    }
    
    h6.fw-semibold {
      font-size: 0.9rem;
    }
    
    .fs-12 {
      font-size: 0.7rem !important;
    }
    
    .transaction-amount {
      font-size: 0.85rem;
    }
    
    .badge {
      font-size: 0.7rem;
      padding: 0.25rem 0.5rem;
    }
    
    .transaction-actions .btn-sm {
      padding: 0.3rem 0.5rem;
      font-size: 0.8rem;
    }
    
    .transaction-actions .btn-sm i {
      font-size: 0.9rem;
    }
  }
  
  .text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Prevent button overflow */
  .transaction-actions {
    flex-shrink: 0;
  }
  
  .btn-sm {
    white-space: nowrap;
  }

/* Profile Page Styles */
.profile-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.profile-header {
  background: linear-gradient(135deg, #5b4bff 0%, #8b5cf6 100%);
  padding: 2rem;
  text-align: center;
  color: white;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 3rem;
  color: white;
  border: 4px solid rgba(255,255,255,0.3);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-email {
  opacity: 0.9;
  font-size: 0.95rem;
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--default-border);
  transition: background-color 0.2s;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item:hover {
  background-color: var(--light);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.info-value {
  font-weight: 500;
  color: var(--default-text-color);
}

.department-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 0.25rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.department-item {
  transition: all 0.3s ease;
}

.department-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.department-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .department-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .department-info h6 {
    font-size: 0.9rem;
  }
  
  .department-info p {
    font-size: 0.7rem;
  }
  
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .department-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .card-title {
    font-size: 0.95rem;
  }
}

 .stat-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
  }
  
  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .stat-card.primary {
    border-left-color: var(--primary);
  }
  
  .stat-card.success {
    border-left-color: var(--success);
  }
  
  .stat-card.danger {
    border-left-color: var(--danger);
  }
  
  .stat-card.info {
    border-left-color: var(--info);
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
  }
  
  .transaction-item {
    transition: all 0.3s ease;
  }
  
  .transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .stat-icon {
      width: 50px;
      height: 50px;
      font-size: 1.5rem;
    }
    
    .stat-card h4 {
      font-size: 1.2rem;
    }
  }
  
  @media (max-width: 576px) {
    .stat-icon {
      width: 45px;
      height: 45px;
      font-size: 1.3rem;
    }
    
    .stat-card h4 {
      font-size: 1rem;
    }
    
    .stat-card small {
      font-size: 0.75rem;
    }
  }