/**
 * ------------------------------------------------------------------
 *     File Name: custom.css
 * -------------------------------------------------------------------
 *
 * @format
 */

/** ADD YOUR AWESOME CODES HERE **/

/* Custom CSS for Dashboard */

/* Modern Card Structure */
.card-widget-separator-wrapper {
  padding: 0;
}

.card-widget-separator {
  padding: 0rem;
}

 
.card-widget-4 {
  background: linear-gradient(135deg, #fff4fc 0%, #ffb5fb 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 0rem;
  transition: all 0.3s ease;
  height: 100%;
}
.card-widget-1 {
  background: linear-gradient(135deg, #baecff 0%, #c9ffce 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 0rem;
  transition: all 0.3s ease;
  height: 100%;
} 
.card-widget-2  {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 0rem;
  transition: all 0.3s ease;
  height: 100%;
} 
.card-widget-3  {
   background: linear-gradient(135deg, #f3ffc4 0%, #fff888 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 0rem;
  transition: all 0.3s ease;
  height: 100%;
}
.card-widget-1:hover,
.card-widget-2:hover,
.card-widget-3:hover,
.card-widget-4:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
 

.w-px-42 {
  width: 42px;
}

.h-px-42 {
  height: 42px;
}

.icon-26px {
  font-size: 26px;
}

/* Card Content Styling */
.card-widget-1 h4,
.card-widget-2 h4,
.card-widget-3 h4,
.card-widget-4 h4 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #495057;
}

.card-widget-1 p,
.card-widget-2 p,
.card-widget-3 p,
.card-widget-4 p {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
  font-weight: 500;
}

/* Border End Styling */
.border-end {
  border-right: 1px solid #dee2e6 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-widget-1,
  .card-widget-2,
  .card-widget-3,
  .card-widget-4 {
    padding: 1.5rem;
  }

  .card-widget-1 h4,
  .card-widget-2 h4,
  .card-widget-3 h4,
  .card-widget-4 h4 {
    font-size: 2rem;
  }

  .w-px-42 {
    width: 36px;
  }

  .h-px-42 {
    height: 36px;
  }

  .icon-26px {
    font-size: 22px;
  }
}

/* Table Styling */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: #343a40;
  color: white;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.table tbody td {
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

/* Search Box Styling */
#transaction-search {
  border-radius: 20px;
  border: 2px solid #e9ecef;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

#transaction-search:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Badge Styling */
.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
}

.badge-primary {
  background-color: #007bff;
}

.badge-success {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
}

/* Chart Loading */
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-style: italic;
  color: #6c757d;
}

/* Responsive Table */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
    overflow-x: auto;
    margin-bottom: 1rem;
  }

  .table thead th {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .table tbody td {
    padding: 0.5rem;
    font-size: 18px;
  }

  #transaction-search {
    font-size: 0.875rem;
    padding: 8px 12px;
  }
} 

/* Text Colors */
.text-danger {
  color: #dc3545 !important;
  font-weight: 600;
}

.text-success {
  color: #28a745 !important;
  font-weight: 600;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Background Label Classes */
.bg-label-secondary {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
}

.text-heading {
  color: #495057 !important;
}
