.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #f8fafc;
  min-height: 100vh;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title {
  text-align: left;
}

.admin-title h1 {
  color: #1e293b;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-title p {
  color: #64748b;
  font-size: 1.1rem;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.user-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
}

.user-role {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  background: #f1f5f9;
  border-radius: 4px;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Tabs */
.admin-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background-color: #f1f5f9;
  color: #334155;
}

.tab-button.active {
  background-color: #3b82f6;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Content */
.admin-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.section-header h3 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.refresh-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
}

.refresh-button:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.refresh-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.filter-group select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #374151;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Submissions List */
.submissions-list {
  padding: 2rem;
}

.loading, .no-data {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-size: 1.1rem;
}

.submission-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: white;
  transition: all 0.2s ease;
}

.submission-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0.75rem;
}

.submission-title h4 {
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.submission-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.submission-meta span {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-transform: capitalize;
}

.submission-type {
  background-color: #dbeafe;
  color: #1e40af;
}

.submission-category {
  background-color: #f3f4f6;
  color: #374151;
}

.submission-priority {
  font-weight: 600;
}

.priority-low {
  background-color: #d1fae5;
  color: #065f46;
}

.priority-medium {
  background-color: #fef3c7;
  color: #92400e;
}

.priority-high {
  background-color: #fee2e2;
  color: #991b1b;
}

.submission-location {
  background-color: #e0f2fe;
  color: #0c4a6e;
}

.submission-work-id {
  background-color: #f0f9ff;
  color: #0369a1;
}

.submission-body {
  padding: 0 1.5rem 1rem;
}

.submission-description {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.submission-details {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.submission-details span {
  display: flex;
  align-items: center;
}

/* Status Badges */
.status-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-open {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-progress {
  background-color: #fef3c7;
  color: #92400e;
}

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

.status-closed {
  background-color: #f3f4f6;
  color: #374151;
}

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

.status-investigating {
  background-color: #fbbf24;
  color: #92400e;
}

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

.status-invalid {
  background-color: #f3f4f6;
  color: #6b7280;
}

/* Action Buttons */
.submission-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.action-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-button.progress {
  background-color: #fbbf24;
  color: #92400e;
}

.action-button.progress:hover:not(:disabled) {
  background-color: #f59e0b;
}

.action-button.resolved,
.action-button.fixed {
  background-color: #10b981;
  color: white;
}

.action-button.resolved:hover:not(:disabled),
.action-button.fixed:hover:not(:disabled) {
  background-color: #059669;
}

.action-button.closed,
.action-button.invalid {
  background-color: #6b7280;
  color: white;
}

.action-button.closed:hover:not(:disabled),
.action-button.invalid:hover:not(:disabled) {
  background-color: #4b5563;
}

.action-button.investigating {
  background-color: #f59e0b;
  color: white;
}

.action-button.investigating:hover:not(:disabled) {
  background-color: #d97706;
}

.action-button.delete {
  background-color: #ef4444;
  color: white;
}

.action-button.delete:hover:not(:disabled) {
  background-color: #dc2626;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-page {
    padding: 1rem 0.5rem;
  }

  .admin-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .admin-title {
    text-align: center;
    width: 100%;
  }

  .admin-title h1 {
    font-size: 2rem;
  }

  .admin-user-info {
    width: 100%;
    justify-content: space-between;
  }

  .user-details {
    align-items: flex-start;
  }

  .admin-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    min-width: auto;
  }

  .submissions-list {
    padding: 1rem;
  }

  .submission-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .submission-actions {
    flex-direction: column;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .pagination-info {
    order: -1;
  }
}