/* Admin Panel Styles */

/* Layout */
.admin-body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: var(--ypads-text);
}

.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.admin-sidebar {
  width: 280px;
  background-color: var(--ypads-brand);
  color: white;
  padding: 0;
  box-shadow: 2px 0 8px var(--ypads-shadow);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.admin-sidebar.collapsed {
  transform: translateX(-100%);
}

/* Ensure sidebar is visible on desktop by default */
@media (min-width: 769px) {
  .admin-sidebar {
    transform: translateX(0) !important;
  }
  
  .admin-main {
    margin-left: 280px !important;
  }
}

.admin-sidebar__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-sidebar__overlay.active {
  display: block;
  opacity: 1;
}

.admin-sidebar__header {
  padding: 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.admin-sidebar__brand img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

/* Navigation */
.admin-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.admin-nav__section {
  padding: 0 12px 12px;
}

.admin-nav__section:first-child {
  padding-top: 12px;
}

.admin-nav__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 12px;
  opacity: 0.7;
  margin: 0;
}

.admin-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.admin-nav__link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-nav__link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: white;
  font-weight: 600;
}

.admin-nav__icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.admin-sidebar__footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logout-btn {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  transition: margin-left 0.3s ease;
}

.admin-main.sidebar-collapsed {
  margin-left: 0;
}

/* Top Bar */
.admin-topbar {
  background: white;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px var(--ypads-shadow);
  border-bottom: 1px solid #e0e0e0;
}

.admin-topbar__left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.admin-burger-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--ypads-text);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.admin-burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.admin-burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.admin-burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.admin-topbar__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--ypads-text);
}

.admin-topbar__right {
  display: flex;
  align-items: center;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.admin-profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.admin-profile-btn:hover {
  background: #333;
  border-color: #333;
  transform: scale(1.05);
}

.admin-profile-btn:focus-visible {
  outline: 2px solid var(--ypads-ring);
  outline-offset: 2px;
}

.admin-profile-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Profile dropdown positioning in admin panel */
.admin-topbar__right .ypads-profile-dropdown {
  position: relative;
}

.admin-topbar__right .ypads-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
}

/* Legacy styles for backward compatibility */
.admin-profile__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-profile__info {
  display: flex;
  flex-direction: column;
}

.admin-profile__name {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--ypads-text);
}

.admin-profile__role {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* Content Area */
.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.admin-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-section__container {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px var(--ypads-shadow);
  margin-bottom: 24px;
}

.admin-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ypads-text);
}

/* Grid Layouts */
.admin-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-grid--dashboard {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-grid--achievements {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Stat Cards */
.admin-stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px var(--ypads-shadow);
  border-left: 4px solid var(--ypads-brand);
}

.admin-stat-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-stat-card__label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-card__icon {
  font-size: 24px;
}

.admin-stat-card__value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--ypads-brand);
}

.admin-stat-card__change {
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
}

.admin-stat-card__change.positive {
  color: #10b981;
  font-weight: 600;
}

/* Buttons */
.admin-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

.admin-btn--primary {
  background-color: var(--ypads-brand);
  color: white;
}

.admin-btn--primary:hover {
  background-color: #6d1616;
  box-shadow: 0 4px 12px rgba(139, 30, 30, 0.25);
}

.admin-btn--secondary {
  background-color: #e0e0e0;
  color: var(--ypads-text);
}

.admin-btn--secondary:hover {
  background-color: #d0d0d0;
}

.admin-btn--verify {
  margin-left: auto;
}

.admin-action-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background-color: #f0f0f0;
}

/* Badges */
.admin-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.admin-badge--admin {
  background-color: #dbeafe;
  color: #1e40af;
}

.admin-badge--editor {
  background-color: #fef3c7;
  color: #92400e;
}

.admin-badge--viewer {
  background-color: #e0e7ff;
  color: #3730a3;
}

.admin-badge--active {
  background-color: #dcfce7;
  color: #166534;
}

.admin-badge--inactive {
  background-color: #f3f4f6;
  color: #6b7280;
}

.admin-badge--published {
  background-color: #dcfce7;
  color: #166534;
}

.admin-badge--draft {
  background-color: #fef3c7;
  color: #92400e;
}

.admin-badge--completed {
  background-color: #dcfce7;
  color: #166534;
}

/* Tables */
.admin-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.admin-table thead {
  background-color: var(--ypads-brand);
  color: white;
  border-bottom: 2px solid #e0e0e0;
}

.admin-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: white;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

.admin-table tbody tr:hover {
  background-color: #f5f5f5;
}

/* User Management Specific Styles */
.admin-user-header {
  margin-bottom: 24px;
}

.admin-user-header__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #666;
}

.admin-user-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-wrapper {
  position: relative;
  flex: 0 1 250px;
  margin-right: 24px;
}

.admin-search-wrapper--small {
  flex: 0 1 250px;
  min-width: unset;
}

.admin-search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--ypads-brand);
  box-shadow: 0 0 0 3px var(--ypads-ring);
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #999;
}

.admin-filter-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-filter-btn {
  padding: 10px 14px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ypads-text);
  transition: all 0.2s ease;
}

.admin-filter-btn:hover {
  border-color: var(--ypads-brand);
  background-color: #f9f9f9;
}

.admin-filter-btn img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

.admin-menu-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.admin-menu-btn:hover {
  background-color: #f0f0f0;
}

/* Pagination */
.admin-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.admin-pagination__text {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ypads-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-pagination__text:hover:not(.admin-pagination__next) {
  border-color: var(--ypads-brand);
  color: var(--ypads-brand);
  background-color: #f9f9f9;
}

.admin-pagination__next {
  color: var(--ypads-brand);
  font-weight: 700;
  cursor: pointer;
}

/* Content Cards */
.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.admin-content-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.admin-content-card:hover {
  box-shadow: 0 4px 12px var(--ypads-shadow);
  border-color: var(--ypads-brand);
}

.admin-content-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-content-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ypads-text);
}

.admin-content-card__description {
  margin: 8px 0 16px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.admin-content-card__meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}

.admin-content-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* Achievement Cards */
.admin-achievement-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.admin-achievement-card:hover {
  box-shadow: 0 4px 12px var(--ypads-shadow);
  border-color: var(--ypads-brand);
}

.admin-achievement-card__icon {
  font-size: 48px;
}

.admin-achievement-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ypads-text);
}

.admin-achievement-card__description {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.admin-achievement-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* News Items */
.admin-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-news-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.admin-news-item:hover {
  box-shadow: 0 4px 12px var(--ypads-shadow);
}

.admin-news-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-news-item__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ypads-text);
}

.admin-news-item__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.admin-news-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.admin-news-item__date {
  font-size: 12px;
  color: #999;
}

.admin-news-item__actions {
  display: flex;
  gap: 8px;
}

/* Activity List */
.admin-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-activity-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid var(--ypads-brand);
}

.admin-activity-item__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.admin-activity-item__content {
  flex: 1;
}

.admin-activity-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ypads-text);
}

.admin-activity-item__time {
  margin: 4px 0 0;
  font-size: 12px;
  color: #999;
}

/* Settings */
.admin-settings-group {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.admin-settings-group:last-of-type {
  border-bottom: none;
}

.admin-settings-group__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ypads-text);
}

.admin-form-group {
  margin-bottom: 16px;
}

.admin-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ypads-text);
}

.admin-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--ypads-brand);
  box-shadow: 0 0 0 3px var(--ypads-ring);
}

.admin-form-input:disabled {
  background-color: #f0f0f0;
  color: #999;
}

.admin-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ypads-text);
}

.admin-form-checkbox input {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--ypads-brand);
}

.admin-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Analytics */
.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.admin-analytics-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px var(--ypads-shadow);
}

.admin-analytics-card--full {
  grid-column: 1 / -1;
}

.admin-analytics-card__title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ypads-text);
}

.admin-analytics-card__chart {
  margin: 20px 0;
}

.admin-chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  justify-content: space-around;
}

.admin-chart-bar__item {
  flex: 1;
  background: linear-gradient(to top, var(--ypads-brand), #c44141);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  transition: all 0.2s ease;
}

.admin-chart-bar__item:hover {
  opacity: 0.8;
}

.admin-analytics-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-analytics-stat {
  text-align: center;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
}

.admin-analytics-stat__label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.admin-analytics-stat__value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--ypads-brand);
}

.admin-analytics-table {
  display: flex;
  flex-direction: column;
}

.admin-analytics-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.admin-analytics-row:last-child {
  border-bottom: none;
}

.admin-analytics-col {
  flex: 1;
  font-size: 14px;
  color: var(--ypads-text);
}

.admin-analytics-col--number {
  text-align: right;
  font-weight: 600;
  color: var(--ypads-brand);
}

/* Modal Styles */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.admin-modal.active {
  display: flex;
}

.admin-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.admin-modal__content {
  position: relative;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.admin-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ypads-text);
}

.admin-modal__close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--ypads-text);
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal__close:hover {
  background-color: #f0f0f0;
}

.admin-modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.admin-modal__table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.admin-modal__table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.admin-modal__table thead {
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-modal__table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--ypads-text);
  border-bottom: 2px solid #e0e0e0;
}

.admin-modal__table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: var(--ypads-text);
}

.admin-modal__table tbody tr:hover {
  background-color: #f9f9f9;
}

.admin-modal__table tbody tr:last-child td {
  border-bottom: none;
}

.admin-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-burger-btn {
    display: flex;
  }

  .admin-sidebar {
    width: 280px;
  }

  .admin-sidebar.collapsed {
    transform: translateX(-100%);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-topbar {
    padding: 16px 20px;
  }

  .admin-topbar__left {
    width: auto;
  }

  .admin-topbar__title {
    font-size: 20px;
  }

  .admin-topbar__title {
    font-size: 20px;
  }

  .admin-grid--dashboard {
    grid-template-columns: 1fr;
  }

  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid--achievements {
    grid-template-columns: 1fr;
  }

  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }

  .admin-analytics-card__stats {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 8px;
  }

  .admin-section__header {
    flex-direction: column;
    gap: 12px;
  }

  .admin-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    flex-wrap: wrap;
  }

  .admin-nav {
    width: 100%;
    overflow-x: auto;
  }

  .admin-profile {
    display: none;
  }

  .admin-topbar__title {
    font-size: 18px;
  }

  .admin-content {
    padding: 12px;
  }

  .admin-section__container {
    padding: 16px;
  }

  .admin-stat-card {
    padding: 16px;
  }

  .admin-news-item__header,
  .admin-news-item__footer {
    flex-direction: column;
    gap: 8px;
  }

  .admin-form-input {
    padding: 8px 10px;
    font-size: 12px;
  }
}
