/**
 * Post Management Frontend Styles
 */

:root {
  --pm-primary-color: #3b82f6;
  --pm-primary-hover: #2563eb;
  --pm-secondary-color: #64748b;
  --pm-secondary-hover: #475569;
  --pm-success-color: #22c55e;
  --pm-danger-color: #ef4444;
  --pm-warning-color: #f59e0b;
  --pm-info-color: #06b6d4;
  --pm-light-color: #e5e7eb;
  --pm-dark-color: #1e293b;
  --pm-border-color: #e2e8f0;
  --pm-background-color: #f8fafc;
  --pm-text-color: #334155;
  --pm-muted-color: #64748b;
  --pm-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --pm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --pm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --pm-radius: 0.375rem;
  --pm-transition: all 0.2s ease-in-out;
}

/* Base Container */
.pm-frontend-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  color: var(--pm-text-color);
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Page Header */
.pm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pm-page-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pm-page-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--pm-dark-color);
}

/* Breadcrumb */
.pm-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.pm-breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--pm-secondary-color);
  text-decoration: none;
  transition: var(--pm-transition);
}

.pm-breadcrumb-item:hover {
  color: var(--pm-primary-color);
}

.pm-breadcrumb-item svg {
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
}

.pm-breadcrumb-separator {
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
  color: var(--pm-secondary-color);
}

.pm-breadcrumb-separator svg {
  width: 14px;
  height: 14px;
}

.pm-breadcrumb-active {
  font-weight: 500;
  color: var(--pm-dark-color);
}

/* Dashboard Header */
.pm-dashboard-header,
.pm-frontend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pm-dashboard-title,
.pm-frontend-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--pm-dark-color);
  margin: 0;
}

.pm-dashboard-actions,
.pm-frontend-actions {
  display: flex;
  gap: 0.75rem;
}

/* Stats Cards */
.pm-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pm-stat-card {
  background-color: #ffffff;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--pm-transition);
}

.pm-stat-card:hover {
  box-shadow: var(--pm-shadow-md);
  transform: translateY(-2px);
}

.pm-stat-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--pm-primary-color);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pm-stat-icon .dashicons {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.pm-stat-info {
  flex: 1;
}

.pm-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--pm-dark-color);
}

.pm-stat-label {
  font-size: 0.875rem;
  color: var(--pm-secondary-color);
  margin: 0;
}

/* Dashboard Grid */
.pm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pm-dashboard-section {
  background-color: #ffffff;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  overflow: hidden;
}

.pm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--pm-border-color);
}

.pm-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--pm-dark-color);
}

.pm-section-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pm-primary-color);
  text-decoration: none;
  transition: var(--pm-transition);
}

.pm-section-link:hover {
  color: var(--pm-primary-hover);
  text-decoration: underline;
}

.pm-section-content {
  padding: 1.5rem;
}

/* Course List */
.pm-course-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-course-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--pm-radius);
  background-color: var(--pm-background-color);
  transition: var(--pm-transition);
}

.pm-course-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.pm-course-image {
  width: 80px;
  height: 80px;
  border-radius: var(--pm-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.pm-course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-course-details {
  flex: 1;
  min-width: 0;
}

.pm-course-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-course-title a {
  color: var(--pm-dark-color);
  text-decoration: none;
  transition: var(--pm-transition);
}

.pm-course-title a:hover {
  color: var(--pm-primary-color);
}

.pm-course-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--pm-muted-color);
  flex-wrap: wrap;
}

.pm-course-status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: uppercase;
}

.pm-status-publish {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--pm-success-color);
}

.pm-status-draft {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--pm-secondary-color);
}

.pm-status-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--pm-warning-color);
}

.pm-course-date,
.pm-course-views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pm-course-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

/* Recent List */
.pm-recent-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pm-recent-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--pm-radius);
  transition: var(--pm-transition);
}

.pm-recent-item:hover {
  background-color: var(--pm-background-color);
}

.pm-recent-image {
  width: 60px;
  height: 60px;
  border-radius: var(--pm-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.pm-recent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-recent-details {
  flex: 1;
  min-width: 0;
}

.pm-recent-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-recent-title a {
  color: var(--pm-dark-color);
  text-decoration: none;
  transition: var(--pm-transition);
}

.pm-recent-title a:hover {
  color: var(--pm-primary-color);
}

.pm-recent-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--pm-muted-color);
}

/* Empty States */
.pm-empty-state {
  padding: 3rem 1rem;
  text-align: center;
}

.pm-empty-state-icon {
  margin-bottom: 1rem;
}

.pm-empty-state-icon .dashicons {
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  color: var(--pm-secondary-color);
  opacity: 0.5;
}

.pm-empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pm-dark-color);
  margin: 0 0 0.75rem;
}

.pm-empty-state-description {
  color: var(--pm-muted-color);
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

/* Buttons */
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--pm-radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--pm-transition);
}

.pm-btn svg {
  width: 16px;
  height: 16px;
}

.pm-btn-primary {
  background-color: var(--pm-primary-color);
  color: white;
}

.pm-btn-primary:hover {
  background-color: var(--pm-primary-hover);
  color: white;
}

.pm-btn-secondary {
  background-color: var(--pm-secondary-color);
  color: white;
}

.pm-btn-secondary:hover {
  background-color: var(--pm-secondary-hover);
  color: white;
}

.pm-btn-success {
  background-color: var(--pm-success-color);
  color: white;
}

.pm-btn-danger {
  background-color: var(--pm-danger-color);
  color: white;
}

.pm-btn-outline {
  background-color: transparent;
  border: 1px solid var(--pm-border-color);
  color: var(--pm-text-color);
}

.pm-btn-outline:hover {
  background-color: var(--pm-background-color);
  color: var(--pm-dark-color);
}

.pm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--pm-radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--pm-transition);
}

.pm-button-primary {
  background-color: var(--pm-primary-color);
  color: white;
}

.pm-button-primary:hover {
  background-color: var(--pm-primary-hover);
  color: white;
}

.pm-button-secondary {
  background-color: var(--pm-secondary-color);
  color: white;
}

.pm-button-secondary:hover {
  background-color: var(--pm-secondary-hover);
  color: white;
}

.pm-button-success {
  background-color: var(--pm-success-color);
  color: white;
}

.pm-button-danger {
  background-color: var(--pm-danger-color);
  color: white;
}

.pm-button-warning {
  background-color: var(--pm-warning-color);
  color: white;
}

.pm-button-info {
  background-color: var(--pm-info-color);
  color: white;
}

.pm-button-outline {
  background-color: transparent;
  border: 1px solid var(--pm-border-color);
  color: var(--pm-text-color);
}

.pm-button-outline:hover {
  background-color: var(--pm-background-color);
  color: var(--pm-dark-color);
}

.pm-button-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.pm-button .dashicons {
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
}

/* Status Tabs */
.pm-status-tabs {
  display: flex;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.pm-status-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--pm-radius);
  background-color: var(--pm-background-color);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pm-text-color);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--pm-transition);
}

.pm-status-tab:hover {
  background-color: var(--pm-light-color);
  color: var(--pm-dark-color);
}

.pm-status-tab.active {
  background-color: var(--pm-primary-color);
  color: white;
}

.pm-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  padding: 0 0.375rem;
}

.pm-status-tab.active .pm-count {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Form Styling */
.pm-form {
  background-color: #ffffff;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  padding: 1.5rem;
}

.pm-form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pm-border-color);
}

.pm-form-section:last-child {
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none;
}

.pm-form-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--pm-dark-color);
}

.pm-form-row {
  margin-bottom: 1.5rem;
}

.pm-form-row:last-child {
  margin-bottom: 0;
}

.pm-form-row-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pm-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pm-dark-color);
}

.pm-form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pm-text-color);
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  transition: var(--pm-transition);
}

.pm-form-control:focus {
  border-color: var(--pm-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.pm-form-help {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--pm-muted-color);
}

.pm-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.required {
  color: var(--pm-danger-color);
}

/* Featured Image */
.pm-featured-image-container {
  margin-bottom: 1rem;
}

.pm-featured-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  border: 2px dashed var(--pm-border-color);
  border-radius: var(--pm-radius);
  background-color: var(--pm-background-color);
  cursor: pointer;
  transition: var(--pm-transition);
}

.pm-featured-image-placeholder:hover {
  border-color: var(--pm-primary-color);
  background-color: rgba(59, 130, 246, 0.05);
}

.pm-featured-image-placeholder .dashicons {
  font-size: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--pm-secondary-color);
}

.pm-featured-image-placeholder p {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--pm-dark-color);
}

.pm-featured-image-placeholder small {
  font-size: 0.75rem;
  color: var(--pm-muted-color);
}

.pm-featured-image-preview {
  position: relative;
  border-radius: var(--pm-radius);
  overflow: hidden;
  height: 200px;
}

.pm-featured-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-remove-featured-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--pm-transition);
}

.pm-remove-featured-image:hover {
  background-color: var(--pm-danger-color);
}

/* Button Management */
.pm-buttons-container {
  margin-bottom: 1rem;
}

.pm-no-buttons {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--pm-background-color);
  border-radius: var(--pm-radius);
  color: var(--pm-muted-color);
}

.pm-button-item {
  margin-bottom: 1rem;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  overflow: hidden;
}

.pm-button-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--pm-background-color);
  border-bottom: 1px solid var(--pm-border-color);
}

.pm-button-header h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pm-dark-color);
}

.pm-button-header-actions {
  display: flex;
  gap: 0.5rem;
}

.pm-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  color: var(--pm-secondary-color);
  cursor: pointer;
  transition: var(--pm-transition);
}

.pm-btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--pm-dark-color);
}

.pm-btn-remove:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--pm-danger-color);
}

.pm-button-content {
  padding: 1rem;
}

.pm-button-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.pm-button-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pm-dark-color);
}

.pm-button-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.pm-button-preview label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pm-dark-color);
}

/* Filters Card */
.pm-filters-card {
  background-color: white;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.pm-filters-form {
  width: 100%;
}

.pm-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.pm-filter-group {
  flex: 1;
  min-width: 200px;
}

.pm-filter-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--pm-dark-color);
}

.pm-search-input {
  position: relative;
}

.pm-search-input input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  font-size: 0.875rem;
  transition: var(--pm-transition);
}

.pm-search-input input:focus {
  border-color: var(--pm-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.pm-search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  background: transparent;
  border: none;
  color: var(--pm-secondary-color);
  cursor: pointer;
  transition: var(--pm-transition);
}

.pm-search-button:hover {
  color: var(--pm-primary-color);
}

.pm-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  font-size: 0.875rem;
  background-color: white;
  transition: var(--pm-transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

.pm-select:focus {
  border-color: var(--pm-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.pm-filter-actions {
  display: flex;
  gap: 0.5rem;
}

/* Search Form */
.pm-search-form {
  flex: 1;
  max-width: 300px;
}

.pm-search-input {
  position: relative;
}

.pm-search-input input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  font-size: 0.875rem;
  transition: var(--pm-transition);
}

.pm-search-input input:focus {
  border-color: var(--pm-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.pm-search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  background: transparent;
  border: none;
  color: var(--pm-secondary-color);
  cursor: pointer;
  transition: var(--pm-transition);
}

.pm-search-button:hover {
  color: var(--pm-primary-color);
}

/* Table Card */
.pm-table-card {
  background-color: white;
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.pm-table {
  width: 100%;
  border-collapse: collapse;
}

.pm-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pm-secondary-color);
  background-color: var(--pm-background-color);
  border-bottom: 1px solid var(--pm-border-color);
}

.pm-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--pm-border-color);
  font-size: 0.875rem;
  vertical-align: middle;
}

.pm-table tr:last-child td {
  border-bottom: none;
}

.pm-table tr:hover td {
  background-color: rgba(59, 130, 246, 0.05);
}

.pm-col-thumbnail {
  width: 60px;
}

.pm-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: var(--pm-radius);
  object-fit: cover;
}

.pm-no-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: var(--pm-radius);
  background-color: var(--pm-background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pm-secondary-color);
}

.pm-post-excerpt {
  font-size: 0.75rem;
  color: var(--pm-muted-color);
  margin-top: 0.25rem;
}

.pm-col-category,
.pm-col-duration {
  width: 150px;
}

.pm-category-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--pm-primary-color);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pm-duration-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--pm-success-color);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pm-duration-empty {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--pm-secondary-color);
}

.pm-col-date {
  width: 120px;
  color: var(--pm-muted-color);
  font-size: 0.75rem;
}

.pm-status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-published {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--pm-success-color);
}

.status-draft {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--pm-secondary-color);
}

.status-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--pm-warning-color);
}

.pm-action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pm-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--pm-radius);
  background-color: var(--pm-background-color);
  color: var(--pm-secondary-color);
  border: none;
  cursor: pointer;
  transition: var(--pm-transition);
}

.pm-action-button svg {
  width: 16px;
  height: 16px;
}

.pm-action-button:hover {
  background-color: var(--pm-light-color);
  color: var(--pm-dark-color);
}

.pm-edit-button:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--pm-primary-color);
}

.pm-view-button:hover {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--pm-success-color);
}

.pm-delete-button:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--pm-danger-color);
}

/* Pagination */
.pm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem;
  border-top: 1px solid var(--pm-border-color);
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--pm-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pm-text-color);
  text-decoration: none;
  transition: var(--pm-transition);
}

.page-numbers:hover {
  background-color: var(--pm-background-color);
  color: var(--pm-dark-color);
}

.page-numbers.current {
  background-color: var(--pm-primary-color);
  color: white;
}

.page-numbers.prev,
.page-numbers.next {
  background-color: var(--pm-background-color);
}

.page-numbers svg {
  width: 16px;
  height: 16px;
}

/* Empty State */
.pm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.pm-empty-state svg {
  color: var(--pm-secondary-color);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.pm-empty-state p {
  font-size: 1rem;
  color: var(--pm-muted-color);
  margin-bottom: 1.5rem;
}

/* Alert */
.pm-alert {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--pm-radius);
  margin-bottom: 1.5rem;
  background-color: white;
  box-shadow: var(--pm-shadow);
}

.pm-alert svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
}

.pm-alert-content {
  flex: 1;
}

.pm-alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pm-alert-description {
  font-size: 0.875rem;
  color: var(--pm-muted-color);
}

.pm-alert-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--pm-secondary-color);
  cursor: pointer;
  padding: 0;
  margin-left: 0.75rem;
}

.pm-alert-close svg {
  width: 16px;
  height: 16px;
  margin: 0;
}

.pm-alert-success {
  border-left: 4px solid var(--pm-success-color);
}

.pm-alert-success svg {
  color: var(--pm-success-color);
}

.pm-alert-error {
  border-left: 4px solid var(--pm-danger-color);
}

.pm-alert-error svg {
  color: var(--pm-danger-color);
}

/* Toast */
.pm-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 350px;
}

.pm-toast {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--pm-radius);
  background-color: white;
  box-shadow: var(--pm-shadow-md);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.pm-toast-icon {
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.pm-toast-content {
  flex: 1;
}

.pm-toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pm-toast-message {
  font-size: 0.875rem;
  color: var(--pm-muted-color);
}

.pm-toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--pm-secondary-color);
  cursor: pointer;
  padding: 0;
  margin-left: 0.75rem;
}

.pm-toast-close svg {
  width: 16px;
  height: 16px;
}

.pm-toast.success .pm-toast-icon svg {
  color: var(--pm-success-color);
}

.pm-toast.error .pm-toast-icon svg {
  color: var(--pm-danger-color);
}

.pm-toast.info .pm-toast-icon svg {
  color: var(--pm-info-color);
}

/* Modal Styling */
.modal-content {
  border-radius: var(--pm-radius);
  border: none;
  box-shadow: var(--pm-shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--pm-border-color);
  padding: 1rem 1.5rem;
}

.modal-title {
  font-weight: 600;
  color: var(--pm-dark-color);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--pm-border-color);
  padding: 1rem 1.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pm-dark-color);
  margin-bottom: 0.375rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pm-text-color);
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  transition: var(--pm-transition);
}

.form-control:focus {
  border-color: var(--pm-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--pm-muted-color);
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--pm-text-color);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  appearance: none;
  padding-right: 2rem;
  transition: var(--pm-transition);
}

.form-select:focus {
  border-color: var(--pm-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  font-size: 0.875rem;
}

.featured-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
  border: 2px dashed var(--pm-border-color);
  border-radius: var(--pm-radius);
  background-color: var(--pm-background-color);
  cursor: pointer;
  transition: var(--pm-transition);
}

.featured-image-placeholder:hover {
  border-color: var(--pm-primary-color);
  background-color: rgba(59, 130, 246, 0.05);
}

.featured-image-placeholder svg {
  color: var(--pm-secondary-color);
  margin-bottom: 0.75rem;
}

.featured-image-placeholder p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--pm-muted-color);
}

.featured-image-preview {
  position: relative;
  border-radius: var(--pm-radius);
  overflow: hidden;
  height: 150px;
}

.featured-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-featured-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
}

.categories-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  padding: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .pm-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm-filters-row {
    flex-direction: column;
  }

  .pm-filter-group {
    width: 100%;
  }

  .pm-filter-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pm-action-buttons {
    flex-wrap: wrap;
  }

  .pm-table th:nth-child(3),
  .pm-table td:nth-child(3),
  .pm-table th:nth-child(4),
  .pm-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 576px) {
  .pm-table th:nth-child(5),
  .pm-table td:nth-child(5) {
    display: none;
  }

  .pm-action-button {
    width: 28px;
    height: 28px;
  }

  .pm-action-button svg {
    width: 14px;
    height: 14px;
  }
}

/* Modal Styles */
.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
  margin: 0.25rem;
}

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: #000;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
}

.btn-close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

.btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  opacity: 1;
}

/* Responsive modal sizes */
@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }

  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }

  .modal-dialog-scrollable {
    height: calc(100% - 3.5rem);
  }

  .modal-sm {
    max-width: 300px;
  }
}

@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}

/* Fix for multiple backdrops 
body > .modal-backdrop:not(:first-of-type) {
  display: none !important;
} */

/* Fix for modal stacking */
.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure modals are on top of everything */
.modal {
  z-index: 1050 !important;
}

.modal-backdrop {
  z-index: 1040 !important;
}

/* Ensure body padding is removed when modal is closed */
body {
  padding-right: 0 !important;
}

/* Fix for scrollbar jump */
.modal-open {
  padding-right: 0 !important;
}

/* Admin-like styling for frontend */
.pm-admin-wrap {
  margin: 20px auto;
  max-width: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  color: #333;
}

.pm-admin-wrap h1.wp-heading-inline {
  display: inline-block;
  margin-right: 5px;
  font-size: 23px;
  font-weight: 400;
  margin: 0;
  padding: 9px 0 4px 0;
  line-height: 1.3;
}

.pm-admin-wrap .page-title-action {
  margin-left: 4px;
  padding: 4px 8px;
  position: relative;
  top: -3px;
  text-decoration: none;
  border: 1px solid #0071a1;
  border-radius: 2px;
  background: #f3f5f6;
  text-shadow: none;
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  color: #0071a1;
  cursor: pointer;
  outline: 0;
}

.pm-admin-wrap .page-title-action:hover {
  background: #f1f1f1;
  border-color: #016087;
  color: #016087;
}

.pm-admin-wrap hr.wp-header-end {
  visibility: hidden;
  margin: 0;
  border: 0;
  padding: 0;
  clear: both;
}

.notice {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-left-width: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin: 5px 15px 2px;
  padding: 1px 12px;
}

.notice-success {
  border-left-color: #00a32a;
}

.notice-error {
  border-left-color: #d63638;
}

.notice-warning {
  border-left-color: #dba617;
}

.notice-info {
  border-left-color: #72aee6;
}

.notice p {
  margin: 0.5em 0;
  padding: 2px;
}

.pm-filters-container {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 3px;
}

.pm-filters-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
}

.pm-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
  width: 100%;
}

.pm-filter-item {
  margin-bottom: 10px;
  min-width: 200px;
  flex: 1;
}

.pm-filter-item label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 13px;
}

.pm-filter-item select,
.pm-filter-item input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 0 8px;
  height: 30px;
  border-radius: 3px;
  border: 1px solid #7e8993;
  box-shadow: 0 0 0 transparent;
  font-size: 14px;
}

.pm-filter-item select:focus,
.pm-filter-item input[type="text"]:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

.pm-search-box {
  flex-grow: 1;
}

.pm-filter-actions {
  display: flex;
  gap: 5px;
}

.pm-filter-actions .button {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  -webkit-appearance: none;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
}

.pm-filter-actions .button:first-child {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.pm-filter-actions .button:first-child:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}

.pm-filter-actions .button:last-child {
  color: #2271b1;
  border-color: #2271b1;
  background: #f6f7f7;
}

.pm-filter-actions .button:last-child:hover {
  background: #f0f0f1;
  border-color: #0a4b78;
  color: #0a4b78;
}

.pm-posts-table-container {
  margin-bottom: 20px;
}

.wp-list-table {
  border-spacing: 0;
  width: 100%;
  clear: both;
  margin: 0;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  background: #fff;
  border-radius: 3px;
}

.wp-list-table thead th,
.wp-list-table tfoot th {
  text-align: left;
  line-height: 1.4em;
  font-weight: 400;
}

.wp-list-table thead th {
  border-bottom: 1px solid #c3c4c7;
  padding: 8px 10px;
  font-weight: 600;
}

.wp-list-table tfoot th {
  border-top: 1px solid #c3c4c7;
  padding: 8px 10px;
  font-weight: 600;
}

.wp-list-table td {
  padding: 8px 10px;
  vertical-align: middle;
  line-height: 1.5em;
  border-bottom: 1px solid #f0f0f1;
}

.wp-list-table tr:last-child td {
  border-bottom: none;
}

.wp-list-table tr:nth-child(odd) {
  background-color: #f6f7f7;
}

.wp-list-table tr:hover {
  background-color: #f0f0f1;
}

.column-title {
  width: 30%;
}

.column-categories {
  width: 15%;
}

.column-date {
  width: 15%;
}

.column-status {
  width: 10%;
}

.column-actions {
  width: 15%;
  text-align: right;
}

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

.post-status-publish {
  background-color: #dff0d8;
  color: #3c763d;
}

.post-status-draft {
  background-color: #f5f5f5;
  color: #777;
}

.post-status-pending {
  background-color: #fcf8e3;
  color: #8a6d3b;
}

.row-actions {
  color: #666;
  font-size: 12px;
  padding: 2px 0 0;
  visibility: hidden;
}

tr:hover .row-actions {
  visibility: visible;
}

.row-actions span {
  padding: 0 4px;
}

.row-actions span:first-child {
  padding-left: 0;
}

.row-actions a {
  text-decoration: none;
}

.row-actions .edit a {
  color: #2271b1;
}

.row-actions .view a {
  color: #3c434a;
}

.row-actions .trash a {
  color: #b32d2e;
}

.row-actions .edit a:hover,
.row-actions .view a:hover {
  color: #135e96;
  text-decoration: underline;
}

.row-actions .trash a:hover {
  color: #d63638;
  text-decoration: underline;
}

.pm-pagination {
  margin-top: 20px;
  text-align: right;
}

.tablenav-pages {
  float: right;
  margin: 0 0 9px;
  text-align: right;
  font-size: 13px;
}

.tablenav-pages .displaying-num {
  margin-right: 10px;
  color: #555;
}

.tablenav-pages .pagination-links {
  display: inline-block;
  vertical-align: middle;
}

.tablenav-pages .button,
.tablenav-pages .tablenav-pages-navspan {
  display: inline-block;
  vertical-align: baseline;
  min-width: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1.625;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #7e8993;
  background: #f6f7f7;
  color: #2271b1;
}

.tablenav-pages .button:hover {
  background: #f0f0f1;
  border-color: #0a4b78;
  color: #0a4b78;
}

.tablenav-pages .button.disabled,
.tablenav-pages .tablenav-pages-navspan {
  color: #a7aaad;
  border-color: #dcdcde;
  background: #f6f7f7;
  cursor: default;
}

.tablenav-pages .paging-input {
  margin: 0 6px;
  font-size: 13px;
}

/* Dashboard styling */
.pm-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pm-dashboard-title {
  font-size: 23px;
  font-weight: 400;
  margin: 0;
  padding: 9px 0 4px 0;
  line-height: 1.3;
}

.pm-dashboard-actions {
  display: flex;
  gap: 10px;
}

.pm-dashboard-actions .button {
  margin-left: 4px;
  padding: 4px 8px;
  position: relative;
  text-decoration: none;
  border: 1px solid #0071a1;
  border-radius: 2px;
  background: #f3f5f6;
  text-shadow: none;
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  color: #0071a1;
  cursor: pointer;
  outline: 0;
}

.pm-dashboard-actions .button:hover {
  background: #f1f1f1;
  border-color: #016087;
  color: #016087;
}

.pm-dashboard-actions .button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.pm-dashboard-actions .button-primary:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}

.pm-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.pm-stat-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  padding: 15px;
  border-radius: 3px;
  display: flex;
  align-items: center;
}

.pm-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(34, 113, 177, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.pm-stat-icon .dashicons {
  color: #2271b1;
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.pm-stat-content {
  flex: 1;
}

.pm-stat-value {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.pm-stat-label {
  color: #666;
  margin: 0;
}

.pm-dashboard-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.pm-content-card,
.pm-sidebar-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.pm-card-header {
  padding: 8px 12px;
  border-bottom: 1px solid #c3c4c7;
  background: #f6f7f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pm-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.pm-card-actions {
  display: flex;
  align-items: center;
}

.pm-card-body {
  padding: 12px;
}

.pm-recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-recent-post-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f1;
  display: flex;
  align-items: center;
}

.pm-recent-post-item:last-child {
  border-bottom: none;
}

.pm-recent-post-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  margin-right: 10px;
  overflow: hidden;
}

.pm-recent-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-recent-post-content {
  flex: 1;
}

.pm-recent-post-title {
  margin: 0 0 5px 0;
  font-size: 14px;
  font-weight: 600;
}

.pm-recent-post-title a {
  color: #2271b1;
  text-decoration: none;
}

.pm-recent-post-title a:hover {
  color: #135e96;
  text-decoration: underline;
}

.pm-recent-post-meta {
  color: #666;
  font-size: 12px;
}

.pm-recent-post-actions {
  display: flex;
  gap: 5px;
}

.pm-recent-post-actions a {
  color: #2271b1;
  text-decoration: none;
  font-size: 12px;
}

.pm-recent-post-actions a:hover {
  color: #135e96;
  text-decoration: underline;
}

.pm-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-activity-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f1;
}

.pm-activity-item:last-child {
  border-bottom: none;
}

.pm-activity-content {
  margin: 0 0 5px 0;
  font-size: 13px;
}

.pm-activity-meta {
  color: #666;
  font-size: 12px;
}

.pm-quick-draft {
  margin-bottom: 15px;
}

.pm-quick-draft-title {
  margin-bottom: 10px;
}

.pm-quick-draft-title input {
  width: 100%;
  padding: 5px 8px;
  border-radius: 3px;
  border: 1px solid #7e8993;
}

.pm-quick-draft-content {
  margin-bottom: 10px;
}

.pm-quick-draft-content textarea {
  width: 100%;
  height: 100px;
  padding: 5px 8px;
  border-radius: 3px;
  border: 1px solid #7e8993;
}

.pm-quick-draft-actions {
  text-align: right;
}

.pm-empty-state {
  text-align: center;
  padding: 20px;
  color: #666;
}

.pm-empty-state .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #ddd;
  margin-bottom: 10px;
}

.pm-empty-state p {
  margin-bottom: 15px;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
  .pm-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-filter-item {
    width: 100%;
  }

  .column-categories,
  .column-date {
    display: none;
  }

  .pm-admin-wrap h1.wp-heading-inline {
    display: block;
    margin-bottom: 15px;
  }

  .pm-admin-wrap .page-title-action {
    display: inline-block;
    margin-bottom: 15px;
  }

  .pm-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm-dashboard-actions {
    margin-top: 10px;
  }

  .pm-dashboard-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .column-status {
    display: none;
  }

  .tablenav-pages .button,
  .tablenav-pages .tablenav-pages-navspan {
    min-width: 24px;
    min-height: 24px;
    font-size: 14px;
  }

  .tablenav-pages .paging-input {
    margin: 0 2px;
  }
}

/* Modern Add Post Page Styling */
.post-management-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  color: #333;
  background-color: #f0f2f5;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Header Styling */
.pm-header {
  margin-bottom: 25px;
  position: relative;
}

.pm-breadcrumbs {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.pm-breadcrumb-item {
  color: #2271b1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pm-breadcrumb-item:hover {
  color: #135e96;
  text-decoration: underline;
}

.pm-breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.pm-breadcrumb-active {
  color: #666;
  font-weight: 500;
}

.pm-page-title {
  font-size: 28px;
  font-weight: 600;
  color: #1d2327;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

/* Form Layout */
.pm-form-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

@media (max-width: 782px) {
  .pm-form-layout {
    grid-template-columns: 1fr;
  }
}

/* Card Styling */
.pm-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.pm-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.pm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
}

.pm-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1d2327;
}

.pm-card-actions {
  display: flex;
  align-items: center;
}

.pm-card-body {
  padding: 20px;
}

/* Title Input */
.pm-title-card {
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-left: 4px solid #2271b1;
}

.pm-title-input {
  width: 100%;
  font-size: 24px;
  font-weight: 600;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pm-title-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.pm-title-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

/* Editor Card */
.pm-editor-card {
  margin-bottom: 25px;
}

/* Excerpt Card */
.pm-excerpt-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.pm-excerpt-description {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

/* Publish Card */
.pm-publish-card {
  background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.pm-publish-actions {
  margin-bottom: 20px;
}

.pm-status-selector,
.pm-visibility-selector,
.pm-password-field {
  margin-bottom: 15px;
}

.pm-publish-date {
  margin-bottom: 20px;
}

.pm-button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Categories Card */
.pm-categories-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

.pm-category-item {
  margin-bottom: 8px;
}

.pm-no-categories {
  color: #777;
  font-style: italic;
}

/* Tags Card */
.pm-tags-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.pm-tags-description {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

/* Featured Image Card */
.pm-featured-image-container {
  text-align: center;
}

.pm-featured-image-preview {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
  border: 1px dashed #ddd;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.pm-featured-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pm-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
}

.pm-no-image .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.pm-featured-image-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Form Elements */
.pm-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1d2327;
}

.pm-input,
.pm-select,
.pm-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pm-input:focus,
.pm-select:focus,
.pm-textarea:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.pm-date-input {
  font-family: inherit;
}

.pm-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.pm-checkbox {
  margin-right: 8px;
}

.pm-field-description {
  margin-top: 5px;
  font-size: 12px;
  color: #777;
}

/* Buttons */
.pm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.pm-button-primary {
  background-color: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.pm-button-primary:hover {
  background-color: #135e96;
  border-color: #135e96;
}

.pm-button-secondary {
  background-color: #f0f0f1;
  color: #1d2327;
  border-color: #ddd;
}

.pm-button-secondary:hover {
  background-color: #e5e5e5;
  border-color: #ccc;
}

.pm-button-link {
  background: none;
  color: #2271b1;
  border: none;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
}

.pm-button-link:hover {
  color: #135e96;
}

/* Modal */
.pm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.pm-modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 0;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

.pm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
  border-radius: 8px 8px 0 0;
}

.pm-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #1d2327;
}

.pm-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #777;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pm-modal-close:hover {
  color: #d63638;
}

.pm-modal-body {
  padding: 20px;
}

.pm-form-group {
  margin-bottom: 20px;
}

.pm-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 782px) {
  .post-management-container {
    padding: 20px 15px;
  }

  .pm-page-title {
    font-size: 24px;
  }

  .pm-title-input {
    font-size: 20px;
    padding: 10px;
  }

  .pm-button-group {
    flex-direction: column;
  }

  .pm-button {
    width: 100%;
  }

  .pm-modal-content {
    width: 95%;
    margin: 5% auto;
  }
}

/* Custom Scrollbar */
.pm-categories-scroll::-webkit-scrollbar {
  width: 8px;
}

.pm-categories-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.pm-categories-scroll::-webkit-scrollbar-thumb {
  background: #c3c4c7;
  border-radius: 4px;
}

.pm-categories-scroll::-webkit-scrollbar-thumb:hover {
  background: #a7aaad;
}

/* WordPress Editor Customizations */
.wp-editor-container {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.wp-editor-tabs {
  background-color: #f9f9f9;
}

.wp-switch-editor {
  background-color: #f0f0f1;
  border-color: #ddd;
  color: #50575e;
}

.wp-switch-editor:hover {
  background-color: #e5e5e5;
  color: #1d2327;
}

.html-active .switch-html,
.tmce-active .switch-tmce {
  background-color: #fff;
  border-bottom-color: #fff;
  color: #1d2327;
}

/* Focus States for Accessibility */
.pm-input:focus,
.pm-select:focus,
.pm-textarea:focus,
.pm-button:focus,
.pm-checkbox:focus {
  outline: 2px solid #2271b1;
  outline-offset: 1px;
}

/* Status Indicators */
.pm-status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.pm-status-published {
  background-color: #edfaef;
  color: #00a32a;
}

.pm-status-draft {
  background-color: #f0f0f1;
  color: #50575e;
}

.pm-status-pending {
  background-color: #fcf9e8;
  color: #996800;
}

/* Hover Effects */
.pm-card {
  position: relative;
  overflow: hidden;
}

.pm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2271b1, #72aee6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pm-card:hover::before {
  opacity: 1;
}

/* Loading State */
.pm-loading {
  position: relative;
  pointer-events: none;
}

.pm-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.pm-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2271b1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Enhanced Dropdown Styling */
.pm-select-wrapper {
  position: relative;
  display: block;
}

.pm-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.625rem 0.75rem;
  padding-right: 2.5rem;
  border: 1px solid var(--pm-border-color);
  border-radius: var(--pm-radius);
  font-size: 0.875rem;
  background-color: white;
  cursor: pointer;
  color: var(--pm-text-color);
  transition: var(--pm-transition);
}

.pm-select-wrapper select:focus {
  border-color: var(--pm-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.pm-select-wrapper::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--pm-secondary-color);
  pointer-events: none;
  transition: var(--pm-transition);
}

.pm-select-wrapper:hover::after {
  border-top-color: var(--pm-primary-color);
}

.pm-select-wrapper select:disabled {
  background-color: var(--pm-background-color);
  opacity: 0.7;
  cursor: not-allowed;
}

.pm-select-disabled::after {
  opacity: 0.5;
}

/* Remove default arrow in IE */
.pm-select-wrapper select::-ms-expand {
  display: none;
}

/* Categories list scrollable */
.pm-categories-list-full {
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(145deg, #ffffff, var(--pm-background-color));
  border-radius: var(--pm-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pm-categories-list-full::-webkit-scrollbar {
  width: 8px;
}

.pm-categories-list-full::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.pm-categories-list-full::-webkit-scrollbar-thumb {
  background: #c3c4c7;
  border-radius: 10px;
}

.pm-categories-list-full::-webkit-scrollbar-thumb:hover {
  background: #a7aaad;
}
