/* Admin Components Enhanced Styles */

/* AdminStatsCard Enhancements */
.admin-stats-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 129, 140, 0.1);
  font-family: 'Nunito', sans-serif;
}

.admin-stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 129, 140, 0.15) !important;
  border-color: rgba(0, 129, 140, 0.2);
}

/* Stats card layout improvements */
.admin-stats-card .stat-icon {
  transition: all 0.3s ease;
  background-color: rgba(0, 129, 140, 0.08) !important;
}

.admin-stats-card:hover .stat-icon {
  transform: scale(1.05);
  background-color: rgba(0, 129, 140, 0.12) !important;
}

/* Ensure FontAwesome icons are clearly visible */
.admin-stats-card .stat-icon i {
  color: #00818C !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 900 !important;
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free" !important;
}

.admin-stats-card .badge {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .admin-stats-card .card-body {
    padding: 1rem !important;
  }
  
  .admin-stats-card .stat-icon {
    width: 40px !important;
    height: 40px !important;
  }
}

/* AdminQuickActions Enhancements */
.action-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 129, 140, 0.1);
}

.action-card:hover {
  border-color: rgba(0, 129, 140, 0.3);
}

.featured-action {
  border-color: rgba(255, 193, 7, 0.3) !important;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Mobile grid adjustments */
@media (max-width: 576px) {
  .action-card .card-body {
    padding: 1.5rem 1rem !important;
  }
  
  .action-card .action-icon {
    width: 50px !important;
    height: 50px !important;
  }
}

/* AdminRecentUsers Table Enhancements */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 129, 140, 0.05) !important;
}

.user-avatar {
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 129, 140, 0.2);
}

/* Mobile table adjustments */
@media (max-width: 768px) {
  .table td {
    padding: 0.5rem 0.25rem !important;
    vertical-align: middle;
  }
  
  .table th {
    padding: 0.75rem 0.25rem !important;
    font-size: 0.75rem !important;
  }
  
  .min-width-0 {
    min-width: 0;
    flex: 1;
  }
}

/* AdminRevenueChart Enhancements */
.revenue-chart {
  position: relative;
}

.chart-bar-container {
  position: relative;
}

.chart-bar {
  position: relative;
  overflow: hidden;
}

.chart-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-bar:hover::before {
  opacity: 1;
}

/* Mobile chart adjustments */
@media (max-width: 768px) {
  .revenue-chart {
    padding: 0 0.5rem;
  }
  
  .chart-bar-container {
    min-width: 35px !important;
  }
  
  .chart-value {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
}

/* AdminOverviewCard Enhancements */
.admin-overview-card {
  border: 1px solid rgba(0, 129, 140, 0.1);
  transition: all 0.3s ease;
}

.admin-overview-card:hover {
  border-color: rgba(0, 129, 140, 0.2);
  box-shadow: 0 4px 20px rgba(0, 129, 140, 0.1) !important;
}

.property__data__title {
  margin-bottom: 1rem;
}

/* General Admin Component Utilities */
/* Apply Nunito font to all admin components */
.admin-stats-card,
.action-card,
.admin-overview-card,
.property__data__area {
  font-family: 'Nunito', sans-serif;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Icon fallback styles */
.fas, .far, .fab {
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Specific admin stats card icon fixes */
.admin-stats-card .stat-icon i {
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: inherit !important;
}

/* Responsive utilities */
@media (max-width: 576px) {
  .property__data__area {
    margin-bottom: 1.5rem;
  }
  
  .property__data__title h4 {
    font-size: 1.1rem !important;
  }
  
  .card-body {
    padding: 1rem !important;
  }
}

/* Loading states */
.admin-loading {
  opacity: 0.6;
  pointer-events: none;
}

.admin-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
}
