/* ===== Root Variables ===== */
:root {
  --bg-dark: #0f1724;
  --bg-light: #f6f8fb;
  --sidebar-dark: #1a2238;
  --sidebar-light: #ffffff;
  --text-dark: #e6eef8;
  --text-light: #1f2937;
  --muted-dark: #9aa4bf;
  --muted-light: #6b7280;
  --accent: #FF8800;
  --transition-speed: 0.3s;
}
/* Theme classes */
body.dark {
  --bg: var(--bg-dark);
  --sidebar: var(--sidebar-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
}
body.light {
  --bg: var(--bg-light);
  --sidebar: var(--sidebar-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
}

.error-msg {
    text-align: center;
    color: #FF8800;
    font-weight: bold;
    margin-top: 20px;
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* ===== Layout ===== */
.admin-container {
  display: flex;
  min-height: 100vh;
  padding-top: 10%; /* Space for fixed header */
}

/* ===== Top Header ===== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--sidebar);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== Sidebar Toggle ===== */
.sidebar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* ===== Notification ===== */
.notif-dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.notif-dropdown i {
  font-size: 1.4rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.notif-dropdown:hover i {
  color: var(--accent);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e3342f;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ===== User Profile ===== */
.account-dropdown {
  position: relative;
  cursor: pointer;
}

.user-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.user-profile:hover {
  background-color: rgba(255,255,255,0.1);
}

.user-profile i {
  font-size: 1.5rem;
  color: var(--accent);
}

/* ===== Dropdowns ===== */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--sidebar);
  padding: 15px;
  border-radius: 8px;
  width: 220px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  z-index: 1001;
  margin-top: 5px;
}

.dropdown p, .dropdown button {
  color: var(--text);
  background: none;
  border: none;
  padding: 8px 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.dropdown button {
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 8px;
  transition: opacity 0.3s ease;
}

.dropdown button:hover {
  opacity: 0.8;
}

.notif-dropdown.active .dropdown,
.account-dropdown.active .dropdown {
  display: block;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 250px;
  background-color: var(--sidebar);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: calc(100vh - 70px); /* Subtract header height */
  top: 70px; /* Below the header */
  left: 0;
  transition: transform var(--transition-speed) ease-in-out;
  z-index: 999;
  overflow-y: auto;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
  text-align: center;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar ul li a i {
  margin-right: 10px;
}

.sidebar ul li a:hover {
  background-color: var(--accent);
  color: white;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 59, 123, 0.5);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: 250px; /* Same as sidebar width */
    width: calc(100% - 250px); /* Adjust width to account for sidebar */
    transition: margin-left var(--transition-speed) ease-in-out;
}

.main-content.full {
  margin-left: 0;
  width: 100%;
}

/* ===== Page Content ===== */
.page-content {
  padding: 20px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Dashboard Cards ===== */
.dashboard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1 1 180px;
  min-width: 150px;
  background: var(--sidebar);
  color: var(--text);
  padding: 18px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-title {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
}

.dashboard-table {
  margin-bottom: 20px;
  overflow-x: auto;
}

.dashboard-table table {
  width: 100%;
  border-collapse: collapse;
  background: none;
}

.dashboard-table th, .dashboard-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dashboard-table th {
  color: var(--accent);
  font-weight: 600;
  background: none;
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

.chart-placeholder {
  text-align: center;
  color: var(--muted);
  background: var(--sidebar);
  border-radius: 10px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 7px 16px;
  border: none;
  border-radius: 6px;
  background: var(--muted);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 4px;
  transition: background 0.2s;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-danger {
  background: #e3342f;
  color: #fff;
}

.btn:hover, .btn-accent:hover, .btn-danger:hover {
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  .main-content {
    margin-left: 200px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100vh - 70px);
    width: 70vw;
    max-width: 300px;
    background: var(--sidebar);
    z-index: 999;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0px;
    width: 100vw;
  }
  .top-header {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 90vw;
    padding: 10px;
  }
  .main-content {
    padding: 5px;
  }
  .top-header {
    padding: 0 10px;
  }
  .sidebar .logo {
    font-size: 1.1rem;
  }
  .sidebar ul li a {
    font-size: 0.95rem;
    padding: 8px;
  }
  .card {
    font-size: 0.95rem;
    padding: 10px;
  }
}

.page-content {
  width: 100%;
  overflow-x: auto;
}

.card {
  min-width: 0;
  word-break: break-word;
  background: var(--sidebar);
  color: var(--text);
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .dashboard-cards {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== Videos Page Styles ===== */
/* .videos-page {
  padding: 20px;
  
} */

.videos-header {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filters-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-section {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.search-input {
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 10px 15px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #FF8800;
}

/* ===== Video Cards Grid ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.video-card {
  background: var(--sidebar);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.video-thumbnail {
  position: relative;
  height: 180px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thumbnail-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.play-button {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  z-index: 2;
}

.play-button.youtube {
  background: #ff0000;
}

.play-button.twitch {
  background: #9146ff;
}

.play-button.facebook {
  background: #1877f2;
}

.duration-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--muted);
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.video-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.action-btn.edit {
  background: var(--accent);
  color: white;
}

.action-btn.view {
  background: #28a745;
  color: white;
}

.action-btn.delete {
  background: #dc3545;
  color: white;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Responsive Design for Videos ===== */
@media (max-width: 1200px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .videos-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filters-section {
    justify-content: center;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 120px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    min-width: auto;
    flex: 1;
  }
  
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
  }
  
  .video-thumbnail {
    height: 160px;
  }
  
  .video-info {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .videos-page {
    padding: 15px;
  }
  
  .videos-header {
    padding: 15px;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .video-thumbnail {
    height: 140px;
  }
  
  .video-title {
    font-size: 1rem;
  }
  
  .video-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .video-actions {
    justify-content: center;
  }
}

/* ===== Add Video Button ===== */
.add-video-section {
  margin-bottom: 20px;
}

.add-video-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-video-btn i {
  font-size: 1.1rem;
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--sidebar);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* ===== Form Styles ===== */
.video-form {
  padding: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input[type="file"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background: var(--muted);
  color: white;
}

/* ===== Responsive Modal ===== */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    margin: 10px;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h2 {
    font-size: 1.2rem;
  }
  
  .video-form {
    padding: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-width: 100vw;
    margin: 0;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .video-form {
    padding: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ===== Posts Page Styles ===== */
.posts-page {
  padding: 20px;
}

.posts-header {
  background: var(--sidebar);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.header-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.header-content p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.add-post-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-post-btn i {
  font-size: 1rem;
}

/* ===== Posts Filters ===== */
.posts-filters {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filters-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-section {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.search-input {
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 10px 15px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #FF8800;
}

/* ===== Posts Table ===== */
.posts-table-container {
  background: var(--sidebar);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.posts-table {
  width: 100%;
  border-collapse: collapse;
  background: none;
}

.posts-table th {
  background: rgba(255,255,255,0.05);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.posts-table td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.posts-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.checkbox-col {
  width: 50px;
  text-align: center;
}

.posts-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.post-title-cell {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 300px;
}

.post-thumbnail {
  width: 60px;
  height: 45px;
  background: var(--bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thumbnail-placeholder {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
}

.post-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.post-slug {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: monospace;
}

/* ===== Category and Status Tags ===== */
.category-tag, .status-tag {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.category-tag.gaming {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.category-tag.tech {
  background: rgba(147, 51, 234, 0.2);
  color: #9333ea;
}

.category-tag.esports {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.category-tag.reviews {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-tag.published {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-tag.draft {
  background: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.status-tag.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-tag.archived {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ===== Actions ===== */
.actions-cell {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.action-btn.edit {
  background: var(--accent);
  color: white;
}

.action-btn.view {
  background: #28a745;
  color: white;
}

.action-btn.delete {
  background: #dc3545;
  color: white;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Responsive Design for Posts ===== */
@media (max-width: 1200px) {
  .posts-table th,
  .posts-table td {
    padding: 12px 8px;
  }
  
  .post-title-cell {
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .posts-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
  }
  
  .header-actions {
    justify-content: flex-start;
  }
  
  .posts-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filters-section {
    justify-content: center;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 120px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    min-width: auto;
    flex: 1;
  }
  
  .posts-table-container {
    overflow-x: auto;
  }
  
  .posts-table {
    min-width: 800px;
  }
  
  .post-title-cell {
    min-width: 200px;
    gap: 10px;
  }
  
  .post-thumbnail {
    width: 50px;
    height: 38px;
  }
  
  .post-info h3 {
    font-size: 0.9rem;
  }
  
  .post-slug {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .posts-page {
    padding: 15px;
  }
  
  .posts-header {
    padding: 15px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .posts-filters {
    padding: 15px;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .posts-table th,
  .posts-table td {
    padding: 10px 6px;
  }
  
  .post-title-cell {
    min-width: 180px;
    gap: 8px;
  }
  
  .post-thumbnail {
    width: 45px;
    height: 34px;
  }
  
  .post-info h3 {
    font-size: 0.85rem;
  }
  
  .actions-cell {
    gap: 6px;
  }
  
  .action-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ===== Esports Page Styles ===== */
.esports-page {
  padding: 20px;
}

.esports-header {
  background: var(--sidebar);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.header-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.header-content p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.add-event-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-event-btn i {
  font-size: 1rem;
}

/* ===== Esports Filters ===== */
.esports-filters {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filters-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-section {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.search-input {
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 10px 15px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #FF8800;
}

/* ===== Events Section ===== */
.events-section {
  margin-bottom: 30px;
}

.events-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 25px;
}

/* ===== Event Cards ===== */
.event-card {
  background: var(--sidebar);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.game-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-icon {
  font-size: 1.2rem;
  color: var(--accent);
}

.game-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
}

.status-tag {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-tag.upcoming {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.status-tag.ongoing {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-tag.completed {
  background: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.status-tag.cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.event-content {
  margin-bottom: 20px;
}

.event-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.3;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.detail-item i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.organizer {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

/* ===== Event Actions ===== */
.event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.action-btn.website {
  background: #3b82f6;
  color: white;
}

.action-btn.rules {
  background: #8b5cf6;
  color: white;
}

.action-btn.register {
  background: #10b981;
  color: white;
}

.action-btn.edit {
  background: var(--accent);
  color: white;
}

.action-btn.delete {
  background: #dc3545;
  color: white;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Responsive Design for Esports ===== */
@media (max-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .esports-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
  }
  
  .header-actions {
    justify-content: flex-start;
  }
  
  .esports-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filters-section {
    justify-content: center;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 120px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    min-width: auto;
    flex: 1;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .event-card {
    padding: 15px;
  }
  
  .event-title {
    font-size: 1.1rem;
  }
  
  .event-actions {
    gap: 6px;
  }
  
  .action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .esports-page {
    padding: 15px;
  }
  
  .esports-header {
    padding: 15px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .esports-filters {
    padding: 15px;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .events-grid {
    gap: 15px;
  }
  
  .event-card {
    padding: 12px;
  }
  
  .event-title {
    font-size: 1rem;
  }
  
  .detail-item {
    font-size: 0.85rem;
  }
  
  .event-actions {
    justify-content: center;
    gap: 8px;
  }
  
  .action-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

/* ===== Games Page Styles ===== */
.games-page {
  padding: 20px;
}

.games-header {
  background: var(--sidebar);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.header-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.header-content p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.add-game-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-game-btn i {
  font-size: 1rem;
}

/* ===== Games Filters ===== */
.games-filters {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filters-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-section {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.search-input {
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 10px 15px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #FF8800;
}

/* ===== Games Section ===== */
.games-section {
  margin-bottom: 30px;
}

.games-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 25px;
}

/* ===== Game Cards ===== */
.game-card {
  background: var(--sidebar);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.game-icon-container {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.status-tag {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-tag.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-tag.maintenance {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-tag.discontinued {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.status-tag.beta {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.game-content {
  margin-bottom: 20px;
}

.game-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.3;
}

.game-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

.detail-item i {
  color: var(--accent);
  width: 14px;
  text-align: center;
}

.game-description {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.4;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.meta-item {
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ===== Game Actions ===== */
.game-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.action-btn.view {
  background: #3b82f6;
  color: white;
}

.action-btn.edit {
  background: var(--accent);
  color: white;
}

.action-btn.update {
  background: #10b981;
  color: white;
}

.action-btn.delete {
  background: #dc3545;
  color: white;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Responsive Design for Games ===== */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .games-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
  }
  
  .header-actions {
    justify-content: flex-start;
  }
  
  .games-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filters-section {
    justify-content: center;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 120px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    min-width: auto;
    flex: 1;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .game-card {
    padding: 15px;
  }
  
  .game-title {
    font-size: 1.1rem;
  }
  
  .game-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .game-actions {
    gap: 6px;
  }
  
  .action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .games-page {
    padding: 15px;
  }
  
  .games-header {
    padding: 15px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .games-filters {
    padding: 15px;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .games-grid {
    gap: 15px;
  }
  
  .game-card {
    padding: 12px;
  }
  
  .game-title {
    font-size: 1rem;
  }
  
  .detail-item {
    font-size: 0.8rem;
  }
  
  .game-actions {
    justify-content: center;
    gap: 8px;
  }
  
  .action-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

/* ===== Users Page Styles ===== */
.users-page {
  padding: 20px;
}

.users-header {
  background: var(--sidebar);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.header-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.header-content p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.add-user-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-user-btn i {
  font-size: 1rem;
}

/* ===== Users Filters ===== */
.users-filters {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filters-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-section {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.search-input {
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 10px 15px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #FF8800;
}

/* ===== Users Section ===== */
.users-section {
  margin-bottom: 30px;
}

.users-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 25px;
}

/* ===== User Cards ===== */
.user-card {
  background: var(--sidebar);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.user-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-icon {
  font-size: 1.8rem;
  color: var(--accent);
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border: 3px solid var(--sidebar);
  border-radius: 50%;
}

.online-indicator.offline {
  background: #6b7280;
}

.status-tag {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-tag.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-tag.inactive {
  background: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.status-tag.suspended {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.status-tag.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.user-content {
  margin-bottom: 20px;
}

.user-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
}

.user-email {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 15px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.detail-item i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.user-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ===== User Actions ===== */
.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.action-btn.view {
  background: #3b82f6;
  color: white;
}

.action-btn.edit {
  background: var(--accent);
  color: white;
}

.action-btn.message {
  background: #10b981;
  color: white;
}

.action-btn.delete {
  background: #dc3545;
  color: white;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Responsive Design for Users ===== */
@media (max-width: 1200px) {
  .users-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .users-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
  }
  
  .header-actions {
    justify-content: flex-start;
  }
  
  .users-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filters-section {
    justify-content: center;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 120px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    min-width: auto;
    flex: 1;
  }
  
  .users-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .user-card {
    padding: 15px;
  }
  
  .user-name {
    font-size: 1.1rem;
  }
  
  .user-stats {
    gap: 15px;
  }
  
  .user-actions {
    gap: 6px;
  }
  
  .action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .users-page {
    padding: 15px;
  }
  
  .users-header {
    padding: 15px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .users-filters {
    padding: 15px;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .users-grid {
    gap: 15px;
  }
  
  .user-card {
    padding: 12px;
  }
  
  .user-name {
    font-size: 1rem;
  }
  
  .detail-item {
    font-size: 0.8rem;
  }
  
  .user-stats {
    gap: 10px;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .user-actions {
    justify-content: center;
    gap: 8px;
  }
  
  .action-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

/* ===== Trash Page Styles ===== */
.trash-page {
  padding: 20px;
}

.trash-header {
  background: var(--sidebar);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.header-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.header-content p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.empty-trash-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc3545;
  border-color: #dc3545;
}

.empty-trash-btn:hover {
  background: #c82333;
  border-color: #bd2130;
}

.empty-trash-btn i {
  font-size: 1rem;
}

/* ===== Trash Filters ===== */
.trash-filters {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filters-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.search-section {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}

.search-input {
  padding: 10px 15px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  min-width: 250px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 10px 15px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #FF8800;
}

/* ===== Trash Section ===== */
.trash-section {
  margin-bottom: 30px;
}

/* ===== Trash Statistics ===== */
.trash-stats {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

/* ===== Trash Table ===== */
.trash-table-container {
  background: var(--sidebar);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.trash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.trash-table th {
  background: rgba(255,255,255,0.05);
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.trash-table td {
  padding: 15px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.trash-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.trash-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ===== Item Info ===== */
.item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.item-thumbnail {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-thumbnail i {
  font-size: 1.5rem;
  color: var(--accent);
}

.item-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.item-details p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ===== Type Tags ===== */
.type-tag {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
  display: inline-block;
}

.type-tag.post {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.type-tag.video {
  background: rgba(255, 136, 0, 0.2);
  color: #FF8800;
}

.type-tag.user {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.type-tag.game {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.type-tag.event {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

/* ===== Actions ===== */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.action-btn.restore {
  background: #10b981;
  color: white;
}

.action-btn.delete-permanent {
  background: #dc3545;
  color: white;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Bulk Actions ===== */
.bulk-actions {
  background: var(--sidebar);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bulk-info {
  font-size: 0.9rem;
  color: var(--text);
}

.bulk-info span {
  font-weight: 600;
  color: var(--accent);
}

.bulk-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bulk-restore-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bulk-delete-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc3545;
  border-color: #dc3545;
}

.bulk-delete-btn:hover {
  background: #c82333;
  border-color: #bd2130;
}

.bulk-restore-btn:disabled,
.bulk-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Empty Trash Modal ===== */
.modal-body {
  padding: 20px;
}

.warning-message {
  text-align: center;
  padding: 20px;
}

.warning-message i {
  font-size: 3rem;
  color: #f59e0b;
  margin-bottom: 15px;
}

.warning-message h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f59e0b;
  margin: 0 0 15px 0;
}

.warning-message p {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.warning-message p:last-child {
  margin-bottom: 0;
}

.warning-message strong {
  color: var(--accent);
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===== Responsive Design for Trash ===== */
@media (max-width: 1200px) {
  .trash-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .trash-table th,
  .trash-table td {
    padding: 12px 8px;
  }
  
  .item-info {
    gap: 12px;
  }
  
  .item-thumbnail {
    width: 45px;
    height: 45px;
  }
  
  .item-thumbnail i {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .trash-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px;
  }
  
  .header-actions {
    justify-content: flex-start;
  }
  
  .trash-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filters-section {
    justify-content: center;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 120px;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-input {
    min-width: auto;
    flex: 1;
  }
  
  .trash-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .trash-table-container {
    overflow-x: auto;
  }
  
  .trash-table {
    min-width: 700px;
  }
  
  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px;
  }
  
  .bulk-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trash-page {
    padding: 15px;
  }
  
  .trash-header {
    padding: 15px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .trash-filters {
    padding: 15px;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .trash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .item-info {
    gap: 10px;
  }
  
  .item-thumbnail {
    width: 40px;
    height: 40px;
  }
  
  .item-thumbnail i {
    font-size: 1.2rem;
  }
  
  .item-details h4 {
    font-size: 0.9rem;
  }
  
  .item-details p {
    font-size: 0.8rem;
  }
  
  .actions {
    gap: 6px;
  }
  
  .action-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .bulk-actions {
    padding: 12px;
  }
  
  .bulk-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .bulk-restore-btn,
  .bulk-delete-btn {
    width: 100%;
    justify-content: center;
  }
}
