/* ========================================
   users.css - User Management Styles
   ======================================== */

/* User list and management page styles */
.user-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  background: #f9f9f9;
  transition: box-shadow 0.3s;
}

.user-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #79b8b9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

.user-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.user-status.active {
  background: #28a745;
  color: white;
}

.user-status.inactive {
  background: #6c757d;
  color: white;
}

/* Table styles for users list */
.users-table th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

.users-table tbody tr:hover {
  background: #f5f5f5;
}

/* Form styles for user creation/editing */
.user-form-group {
  margin-bottom: 20px;
}

.user-form-group label {
  font-weight: 600;
  margin-bottom: 8px;
}

.user-form-group input,
.user-form-group select,
.user-form-group textarea {
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 10px;
}

.user-form-group input:focus,
.user-form-group select:focus,
.user-form-group textarea:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Role badge styles */
.role-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin: 2px;
}

.role-badge.admin {
  background: #dc3545;
  color: white;
}

.role-badge.staff {
  background: #17a2b8;
  color: white;
}

.role-badge.manager {
  background: #ffc107;
  color: #333;
}

/* Action buttons */
.user-actions {
  white-space: nowrap;
}

.user-actions .btn {
  margin: 2px;
  padding: 5px 10px;
  font-size: 12px;
}

/* Modal styles for user forms */
.user-modal .modal-body {
  padding: 30px;
}

.user-modal .form-control {
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-card {
    padding: 10px;
  }
  
  .user-actions {
    display: flex;
    flex-direction: column;
  }
  
  .user-actions .btn {
    width: 100%;
    margin: 3px 0;
  }
}

/* All Users header color */
.bg-primary {
  background-color: #79b8b9 !important;
  border-color: #79b8b9 !important;
  color: #000000 !important;
}

/* Pagination active page */
.page-item.active .page-link {
  background-color: #79b8b9 !important;
  border-color: #79b8b9 !important;
  color: #000000 !important;
}

/* Pagination hover */
.page-link:hover {
  background-color: #5fa6a7 !important;
  border-color: #5fa6a7 !important;
  color: #000000 !important;
}