:root {
  /* Brand colors - Minimal palette */
  --primary-soft: rgba(43, 139, 19, 0.8);
  --primary-light: rgba(19, 105, 139, 0.1);
  --primary-ultra-light: rgba(19, 105, 139, 0.05);

  /* Neutral palette - Ultra clean */
  --white: #ffffff;
  --gray-50: #fafbfc;
  --gray-100: #f4f6f8;
  --gray-200: #e8ecef;
  --gray-300: #d6dce2;
  --gray-600: #64748b;
  --gray-700: #475569;
  --gray-800: #334155;

  /* Shadows with brand color */
  --shadow-soft: 0 2px 8px rgba(19, 105, 139, 0.06);
  --shadow-medium: 0 4px 16px rgba(19, 105, 139, 0.08);
  --shadow-strong: 0 8px 32px rgba(19, 105, 139, 0.12);

  /* Animation variables */
  --timing-fast: 0.2s;
  --timing-medium: 0.4s;
  --timing-slow: 0.6s;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Beautiful floating animation */
@keyframes float {

  0%,
  100% {
      transform: translateY(0px) scale(1);
  }

  50% {
      transform: translateY(-4px) scale(1.005);
  }
}

@keyframes slideInUp {
  from {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
  }

  to {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {

  0%,
  100% {
      opacity: 0.8;
  }

  50% {
      opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
      transform: scale(1);
  }

  50% {
      transform: scale(1.02);
  }
}

.home-admin-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  padding: 15px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  margin: 20px auto;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  animation: slideInUp var(--timing-slow) var(--easing);
}

.home-admin-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: var(--primary);
  animation: shimmer 2s ease-in-out infinite;
}

.home-admin-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-ultra-light) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--timing-slow) var(--easing);
  pointer-events: none;
}

.home-admin-container h2 {
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  letter-spacing: -0.02em;
  animation: slideInUp var(--timing-medium) var(--easing) 0.1s both;
}

.home-admin-container h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  animation: slideInUp var(--timing-medium) var(--easing) 0.3s both,
      scaleX 0.8s var(--easing) 0.5s both;
}

@keyframes scaleX {
  to {
      width: 50px;
  }
}

/* Content List - Ultra smooth */
.home-admin-container .content-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.home-admin-container .content-counter {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-admin-container .content-counter li {
  margin-bottom: 8px;
}

.home-admin-container .content-counter li:nth-child(1) {
  animation-delay: 0.1s;
}

.content-counter li:nth-child(2) {
  animation-delay: 0.15s;
}

.content-counter li:nth-child(3) {
  animation-delay: 0.2s;
}

.content-counter li:nth-child(4) {
  animation-delay: 0.25s;
}

.content-counter li:nth-child(5) {
  animation-delay: 0.3s;
}

.content-counter li:hover {
  transform: translateY(-3px) scale(1.005);
  animation: float 2s ease-in-out infinite;
}

.content-counter li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--gray-700);
  background: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: all var(--timing-medium) var(--easing);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.content-counter li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--timing-medium) var(--easing);
}

.content-counter li a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--timing-medium) var(--easing);
}

.content-counter li a:hover {
  background: var(--gray-50);
  box-shadow: var(--shadow-medium);
  color: var(--gray-800);
  border-color: var(--primary-light);
  transform: translateX(2px);
}

.content-counter li a:hover::before {
  transform: scaleY(1);
}

.content-counter .text {
  font-size: 13px;
  flex-grow: 1;
  padding-right: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.9;
  transition: opacity var(--timing-fast) var(--easing);
}

.content-counter li:hover .text {
  opacity: 1;
}

.content-counter .number {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  min-width: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--timing-medium) var(--easing-bounce);
  position: relative;
  overflow: hidden;
}

.content-counter .number::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  border-radius: 8px;
  transition: opacity var(--timing-medium) var(--easing);
}

.content-counter li:hover .number {
  background: var(--primary-soft);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-medium);
}

.content-counter li:hover .number::before {
  opacity: 1;
}

/* Quick Menu - Spectacular */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.quick-button:hover {
  transform: translateY(-6px) scale(1.02);
  animation: pulse 1.5s ease-in-out infinite;
}

.home-admin-toolbar {
  width: 100%;
  border-collapse: collapse;
  height: 100%;
}

.home-admin-toolbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gray-700);
  background: var(--white);
  padding: 20px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: all var(--timing-medium) var(--easing);
  height: 100%;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-size: 12px;
}

.home-admin-toolbar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--primary-ultra-light) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--timing-medium) var(--easing);
}

.home-admin-toolbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width var(--timing-medium) var(--easing);
  border-radius: 2px;
}

.home-admin-toolbar a:hover {
  background: var(--gray-50);
  box-shadow: var(--shadow-medium);
  color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-4px) scale(1.02);
}

.home-admin-toolbar a:hover::before {
  opacity: 1;
}

.home-admin-toolbar a:hover::after {
  width: 60%;
}

.icon-48-button {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all var(--timing-medium) var(--easing-bounce);
  opacity: 0.8;
  filter: grayscale(0.3);
}

.home-admin-toolbar a:hover .icon-48-button {
  transform: scale(1.15) rotate(5deg);
  opacity: 1;
  filter: grayscale(0);
}

/* Staggered hover effects */
.quick-menu .quick-button:nth-child(even):hover {
  transform: translateY(-6px) scale(1.02) rotate(1deg);
}

.quick-menu .quick-button:nth-child(odd):hover {
  transform: translateY(-6px) scale(1.02) rotate(-1deg);
}

/* Ultra responsive */
@media (max-width: 992px) {
  .home-admin-container .content-list {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
  }

  .quick-menu {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .home-admin-container h2 {
      font-size: 20px;
  }
}

@media (max-width: 768px) {
  .home-admin-container .content-list {
      grid-template-columns: 1fr;
  }

  .home-admin-wrapper {
      padding: 20px;
      margin: 12px auto;
  }

  .home-admin-container h2 {
      font-size: 18px;
      margin-bottom: 20px;
  }

  .content-counter .text {
      font-size: 12px;
  }

  .content-counter .number {
      font-size: 10px;
      padding: 5px 8px;
  }

  .icon-48-button {
      width: 36px;
      height: 36px;
  }

  .home-admin-toolbar a {
      padding: 16px 8px;
      font-size: 11px;
  }
}

@media (max-width: 576px) {
  .quick-menu {
      grid-template-columns: repeat(2, 1fr);
  }

  .content-counter li a {
      padding: 14px 16px;
  }

  .home-admin-wrapper {
      padding: 16px;
  }
}

/* Performance optimizations */
* {
  will-change: auto;
}

.content-counter li:hover,
.quick-button:hover,
.home-admin-toolbar a:hover {
  will-change: transform;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
      --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.2);
      --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}