/**
 * @file
 * Styles for the UHB Dashboard.
 */

.uhb-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header-content {
  flex: 1;
  min-width: 250px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dashboard-title {
  margin: 0 0 10px 0;
  font-size: 2em;
  font-weight: 600;
}

.user-info {
  opacity: 0.95;
  font-size: 1.1em;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-section {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e8ed;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px 0;
  font-size: 1.5em;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.section-title .icon {
  font-size: 1.2em;
}

.count-badge {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7em;
  font-weight: 600;
  margin-left: auto;
}

.count-badge-warning {
  background: #f59e0b;
}

.table-responsive {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.dashboard-table thead {
  background: #f8f9fa;
}

.dashboard-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #dee2e6;
}

.dashboard-table td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.dashboard-table tbody tr:hover {
  background: #f8f9fa;
}

.dashboard-table tbody tr.moderation-row:hover {
  background: #fff7ed;
}

.role-badge,
.group-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 4px;
  font-size: 0.85em;
  margin-right: 5px;
  font-weight: 500;
}

.group-badge {
  background: #dbeafe;
  color: #1e40af;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
  margin-left: 8px;
}

.badge-primary {
  background: #fef3c7;
  color: #92400e;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.status-published {
  background: #d1fae5;
  color: #065f46;
}

.status-unpublished {
  background: #fee2e2;
  color: #991b1b;
}

.moderation-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.moderation-draft {
  background: #e5e7eb;
  color: #374151;
}

.moderation-needs_review,
.moderation-pending {
  background: #fef3c7;
  color: #92400e;
}

.moderation-published {
  background: #d1fae5;
  color: #065f46;
}

.button {
  display: inline-block;
  padding: 6px 14px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #5568d3;
  color: white;
  text-decoration: none;
}

.button-small {
  padding: 6px 12px;
  font-size: 0.9em;
}

.button-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.button-success {
  background: #16a34a;
  color: white;
}

.button-success:hover {
  background: #15803d;
}

.button-secondary {
  background: #6b7280;
}

.button-secondary:hover {
  background: #4b5563;
}

.button-primary {
  background: #10b981;
}

.button-primary:hover {
  background: #059669;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.empty-state p {
  margin: 0;
  font-size: 1.1em;
}

.text-muted {
  color: #9ca3af;
}

.language-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.language-ar {
  background: #dcfce7;
  color: #166534;
}

.language-en {
  background: #dbeafe;
  color: #1e40af;
}

.arabic-moderation {
  border-left: 4px solid #16a34a;
}

.english-moderation {
  border-left: 4px solid #2563eb;
}

.arabic-content:hover {
  background: #f0fdf4 !important;
}

.english-content:hover {
  background: #eff6ff !important;
}

/* Create Content Dropdown */
.create-content-dropdown {
  position: relative;
}

.create-content-btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.create-content-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.create-content-btn .icon {
  font-size: 1.2em;
}

.create-content-btn .arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.create-content-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.create-content-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.dropdown-item:hover {
  background: #f8f9fa;
  color: #667eea;
}

/* Moderation Tabs */
.moderation-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-link {
  flex: 1;
  padding: 15px 20px;
  text-align: center;
  text-decoration: none;
  color: #555;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border-right: 1px solid #e1e8ed;
  position: relative;
}

.tab-link:last-child {
  border-right: none;
}

.tab-link:hover {
  background: #f8f9fa;
  color: #667eea;
}

.tab-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.tab-link:hover::after {
  background: #667eea;
}

.tab-english:hover::after {
  background: #2563eb;
}

.tab-arabic:hover::after {
  background: #16a34a;
}

.tab-icon {
  font-size: 1.2em;
}

/* Group Management Page */
.uhb-group-manage-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.group-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.group-header .header-content {
  flex: 1;
  min-width: 300px;
}

.group-header .page-title {
  margin: 0 0 15px 0;
  font-size: 1.5em;
  font-weight: 600;
  opacity: 0.9;
}

.group-header .group-name {
  margin: 0 0 10px 0;
  font-size: 2em;
  font-weight: 700;
}

.group-header .group-type {
  margin: 0 0 15px 0;
  opacity: 0.9;
}

.group-header .user-roles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.group-header .role-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.9em;
}

.group-header .header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.content-creation-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-creation-section .section-title {
  margin: 0 0 25px 0;
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.content-type-card {
  background: white;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.content-type-card:hover {
  border-color: #667eea;
  background: #f8f9fa;
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.15);
}

.content-type-card .card-icon {
  font-size: 3em;
  opacity: 0.8;
}

.content-type-card .card-label {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}

.content-type-card .card-action {
  font-size: 0.9em;
  color: #667eea;
  font-weight: 500;
}

.content-type-card:hover .card-action {
  color: #764ba2;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state .empty-message {
  font-size: 1.1em;
  color: #666;
}

/* Moderation Page Styles */
.uhb-moderation-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

.moderation-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-title {
  margin: 0 0 10px 0;
  font-size: 2em;
  font-weight: 600;
}

.page-description {
  margin: 0;
  opacity: 0.95;
  font-size: 1.1em;
}

.moderation-filters {
  background: white;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e8ed;
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.9em;
}

.filter-input,
.filter-select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95em;
  transition: border-color 0.2s;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.moderation-results {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e8ed;
}

.results-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.results-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.moderation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.moderation-table thead {
  background: #f8f9fa;
}

.moderation-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #dee2e6;
}

.moderation-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.moderation-table th.sortable:hover {
  background: #e9ecef;
}

.moderation-table td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.moderation-table tbody tr:hover {
  background: #f8f9fa;
}

.moderation-table tbody tr.language-ar:hover {
  background: #f0fdf4;
}

.moderation-table tbody tr.language-en:hover {
  background: #eff6ff;
}

.content-title {
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
}

.content-title:hover {
  text-decoration: underline;
}

.title-cell {
  max-width: 300px;
}

.author-name {
  color: #6b7280;
}

.date-cell {
  white-space: nowrap;
  color: #6b7280;
}

.operations-cell {
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 1.5em;
}

.empty-state p {
  margin: 0;
  color: #6b7280;
  font-size: 1.1em;
}

.access-denied {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.denied-icon {
  font-size: 5em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.access-denied h2 {
  margin: 0 0 15px 0;
  color: #dc2626;
  font-size: 2em;
}

.access-denied p {
  margin: 0;
  color: #6b7280;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .uhb-dashboard {
    padding: 10px;
  }

  .dashboard-header {
    padding: 20px;
  }

  .dashboard-title {
    font-size: 1.5em;
  }

  .dashboard-section {
    padding: 15px;
  }

  .section-title {
    font-size: 1.2em;
  }

  .dashboard-table {
    font-size: 0.85em;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 8px;
  }

  .uhb-moderation-page {
    padding: 10px;
  }

  .moderation-header {
    padding: 20px;
  }

  .page-title {
    font-size: 1.5em;
  }

  .filters-form {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
    width: 100%;
  }

  .filter-actions .button {
    width: 100%;
  }

  .moderation-table {
    font-size: 0.85em;
  }

  .moderation-table th,
  .moderation-table td {
    padding: 8px;
  }
}


.user-logged-in .user_account_menu ul.menu li a{
  padding-top: unset;
  background-image: unset;
  background-position: unset;
  background-repeat: unset;
  background-size: unset;
  border-radius: unset;
  padding-right: unset;
  padding-bottom: unset;
  padding-left: unset;
  position: relative;  
}