/* ===== DASHBOARD ADMINISTRATIVO ===== */

/* Variables de colores */
:root {
  --color-primary: #371559;
  --color-secondary: #7749A6;
  --color-accent: #A2A0D9;
  --color-info: #4B93BF;
  --color-warning: #ffc107;
  --color-success: #28a745;
  --color-danger: #dc3545;
}

/* Cards de métricas */
.border-left-primary {
  border-left: 4px solid var(--color-primary) !important;
}

.border-left-success {
  border-left: 4px solid var(--color-secondary) !important;
}

.border-left-info {
  border-left: 4px solid var(--color-info) !important;
}

.border-left-warning {
  border-left: 4px solid var(--color-accent) !important;
}

/* Progress bars personalizados */
.progress {
  background-color: #f8f9fa;
  border-radius: 4px;
}

.progress-bar {
  transition: width 0.6s ease;
}

/* Badges personalizados */
.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

/* Tablas responsivas */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table td {
  vertical-align: middle;
  padding: 0.75rem;
}

/* Cards con sombras */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.15s ease-in-out;
}
/*
.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}*/

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* Iconos en cards */
.text-gray-300 {
  color: #d1d3e2 !important;
}

.text-gray-600 {
  color: #858796 !important;
}

.text-gray-800 {
  color: #5a5c69 !important;
}

/* Botones personalizados */
.btn-group-sm > .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.2rem;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .container-fluid {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Estados de hover */
.table-hover tbody tr:hover {
  background-color: rgba(55, 21, 89, 0.05);
}

/* Estilos para imágenes de propiedades */
.property-image {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

.property-placeholder {
  width: 32px;
  height: 32px;
  background-color: #6c757d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

/* Estilos para badges de estado */
.badge.bg-success {
  background-color: var(--color-success) !important;
}

.badge.bg-warning {
  background-color: var(--color-warning) !important;
  color: #212529 !important;
}

.badge.bg-danger {
  background-color: var(--color-danger) !important;
}

.badge.bg-info {
  background-color: var(--color-info) !important;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
}

.badge.bg-primary {
  background-color: var(--color-primary) !important;
}

/* Estilos para badges bg-label-* */
.badge.bg-label-primary {
  background-color: rgba(119, 73, 166, 0.1) !important;
  color: var(--color-primary) !important;
  border: 1px solid rgba(119, 73, 166, 0.2);
}

.badge.bg-label-success {
  background-color: rgba(40, 167, 69, 0.1) !important;
  color: var(--color-success) !important;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.badge.bg-label-info {
  background-color: rgba(23, 162, 184, 0.1) !important;
  color: var(--color-info) !important;
  border: 1px solid rgba(23, 162, 184, 0.2);
}

.badge.bg-label-warning {
  background-color: rgba(255, 193, 7, 0.1) !important;
  color: var(--color-warning) !important;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.badge.bg-label-secondary {
  background-color: rgba(108, 117, 125, 0.1) !important;
  color: #6c757d !important;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

.badge.bg-label-dark {
  background-color: rgba(52, 58, 64, 0.1) !important;
  color: #343a40 !important;
  border: 1px solid rgba(52, 58, 64, 0.2);
}

.fa-home {
  pointer-events: none;
  opacity: 0.5;
}