/* extracted from components/Sidebar.vue */
.sidebar-account-avatar {
  background: var(--surface);
}

.sidebar-account-avatar.is-current {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.sidebar-account-avatar.is-option {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.sidebar-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.3);
  border-radius: 2px;
}
.custom-scrollbar:hover::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
}

/* Active router link styling */
.router-link-active {
  background-color: var(--active-bg) !important;
  background-color: color-mix(in srgb, var(--theme-primary) 10%, transparent) !important;
  color: var(--theme-primary) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 0 0 1px color-mix(in srgb, var(--theme-primary) 15%, transparent) !important;
}

.router-link-exact-active {
  background-color: color-mix(in srgb, var(--theme-primary) 10%, transparent) !important;
  color: var(--theme-primary) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 0 0 1px color-mix(in srgb, var(--theme-primary) 15%, transparent) !important;
}

/* Dropdown active item */
.bg-green-50 {
  background-color: color-mix(in srgb, var(--theme-primary) 10%, transparent) !important;
}

.dark\:bg-green-900\/10 {
  background-color: color-mix(in srgb, var(--theme-primary) 15%, transparent) !important;
}

.announcement-view-backdrop {
  background: color-mix(in srgb, var(--theme-secondary) 48%, transparent);
  backdrop-filter: blur(12px);
}

.announcement-view-modal {
  width: min(560px, 90vw);
  height: min(640px, calc(100dvh - 32px));
  min-height: 340px;
  margin: auto;
  max-height: calc(100dvh - 32px);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

@media (max-width: 640px) {
  .announcement-view-modal {
    min-width: 0;
    width: calc(100vw - 20px);
    height: min(620px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
}

.announcement-view-modal-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.announcement-view-modal-header {
  position: relative;
  min-height: 116px;
  display: flex;
  flex: none;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background: var(--theme-gradient);
}

.announcement-view-modal-header::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 24%, rgba(255,255,255,.18) 46%, transparent 68%);
  content: '';
  transform: translateX(-110%);
  animation: announcement-sheen 1.15s .18s var(--motion-ease) both;
}

.announcement-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.announcement-header-icon {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  font-size: 23px;
  backdrop-filter: blur(8px);
}

.announcement-header-copy small {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.announcement-header-copy h3 {
  margin: 3px 0 2px;
  font-size: 21px;
  font-weight: 820;
  letter-spacing: 0;
}

.announcement-header-copy p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 11px;
}

.announcement-view-modal-body {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.announcement-content {
  flex: 1;
  min-height: 80px;
  overflow-y: auto;
  padding: 17px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--theme-primary) 5%, var(--surface-muted));
  box-shadow: inset 0 1px 4px color-mix(in srgb, var(--theme-secondary) 5%, transparent);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  animation: announcement-content-enter .4s .12s var(--motion-ease) both;
}

.announcement-actions {
  display: flex;
  flex: none;
  justify-content: flex-end;
}

.announcement-confirm {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--theme-gradient);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--theme-primary) 24%, transparent);
  font-size: 13px;
  font-weight: 750;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, filter var(--motion-fast) ease;
}

.announcement-confirm:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.announcement-confirm:active {
  transform: translateY(0) scale(.98);
}

.announcement-motion-enter-active,
.announcement-motion-leave-active {
  transition: opacity .24s ease;
}

.announcement-motion-enter-active .announcement-view-modal,
.announcement-motion-leave-active .announcement-view-modal {
  transition: opacity .24s ease, transform .36s var(--motion-ease);
}

.announcement-motion-enter-from,
.announcement-motion-leave-to {
  opacity: 0;
}

.announcement-motion-enter-from .announcement-view-modal,
.announcement-motion-leave-to .announcement-view-modal {
  opacity: 0;
  transform: translateY(12px) scale(.985);
}

@keyframes announcement-sheen {
  to { transform: translateX(110%); }
}

@keyframes announcement-content-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-view-modal-header::after,
  .announcement-content {
    animation: none;
  }

  .announcement-motion-enter-active,
  .announcement-motion-leave-active,
  .announcement-motion-enter-active .announcement-view-modal,
  .announcement-motion-leave-active .announcement-view-modal {
    transition-duration: .01ms;
  }
}
