@import('https://dev.wuaze.com/styleSheets/fonts.css');

/* ===== GitHub Dark Dimmed Complete UI System ===== */

:root {
  /* Core Colors */
  --gh-bg-primary: #22272e;
  --gh-bg-secondary: #2d333b;
  --gh-bg-tertiary: #373e47;
  --gh-bg-overlay: rgba(34, 39, 46, 0.95);
  
  /* Borders */
  --gh-border-default: #444c56;
  --gh-border-muted: #373e47;
  --gh-border-subtle: rgba(68, 76, 86, 0.5);
  
  /* Text */
  --gh-text-primary: #cdd9e5;
  --gh-text-secondary: #adbac7;
  --gh-text-muted: #768390;
  --gh-text-placeholder: #636e7b;
  
  /* Accents */
  --gh-accent-primary: #539bf5;
  --gh-accent-success: #57ab5a;
  --gh-accent-warning: #c69026;
  --gh-accent-danger: #e5534b;
  --gh-accent-info: #6cb6ff;
  
  /* Effects */
  --gh-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --gh-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --gh-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --gh-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
  
  /* Animations */
  --gh-duration-fast: 150ms;
  --gh-duration-normal: 250ms;
  --gh-duration-slow: 400ms;
  --gh-easing-default: cubic-bezier(0.4, 0, 0.2, 1);
  --gh-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Layout */
  --gh-radius-sm: 4px;
  --gh-radius-md: 6px;
  --gh-radius-lg: 8px;
  --gh-radius-xl: 12px;
  --gh-radius-full: 9999px;
  
  /* Z-Index Scale */
  --gh-z-dropdown: 1000;
  --gh-z-sticky: 1020;
  --gh-z-fixed: 1030;
  --gh-z-backdrop: 1040;
  --gh-z-modal: 1050;
  --gh-z-popover: 1060;
  --gh-z-tooltip: 1070;
  --gh-z-toast: 1080;
  --gh-z-max: 9999;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.gh-ui * {
  margin: 0;
  padding: 0;
}

/* ===== Utility Classes ===== */
.gh-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--gh-z-backdrop);
  opacity: 0;
  transition: opacity var(--gh-duration-normal) var(--gh-easing-default);
}

.gh-backdrop.gh-show {
  opacity: 1;
}

.gh-glass {
  background: rgba(34, 39, 46, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gh-glow {
  box-shadow: 0 0 20px rgba(83, 155, 245, 0.3);
}

/* ===== Base Floating Element ===== */
.gh-floating {
  position: absolute;
  background: var(--gh-bg-primary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  box-shadow: var(--gh-shadow-md);
  color: var(--gh-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  z-index: var(--gh-z-popover);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(-4px);
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
  pointer-events: none;
}

.gh-floating.gh-show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* ===== Tooltip Styles ===== */
.gh-tooltip {
  padding: 6px 10px;
  max-width: 250px;
  font-size: 12px;
  z-index: var(--gh-z-tooltip);
}

.gh-tooltip.gh-tooltip-rich {
  padding: 10px 12px;
  max-width: 320px;
}

/* Tooltip Arrow */
.gh-tooltip::before,
.gh-tooltip::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}

.gh-tooltip[data-placement="top"]::before {
  bottom: -12px;
  left: calc(50% - 6px);
  border-top-color: var(--gh-border-default);
}

.gh-tooltip[data-placement="top"]::after {
  bottom: -11px;
  left: calc(50% - 6px);
  border-top-color: var(--gh-bg-primary);
}

.gh-tooltip[data-placement="bottom"]::before {
  top: -12px;
  left: calc(50% - 6px);
  border-bottom-color: var(--gh-border-default);
}

.gh-tooltip[data-placement="bottom"]::after {
  top: -11px;
  left: calc(50% - 6px);
  border-bottom-color: var(--gh-bg-primary);
}

.gh-tooltip[data-placement="left"]::before {
  right: -12px;
  top: calc(50% - 6px);
  border-left-color: var(--gh-border-default);
}

.gh-tooltip[data-placement="left"]::after {
  right: -11px;
  top: calc(50% - 6px);
  border-left-color: var(--gh-bg-primary);
}

.gh-tooltip[data-placement="right"]::before {
  left: -12px;
  top: calc(50% - 6px);
  border-right-color: var(--gh-border-default);
}

.gh-tooltip[data-placement="right"]::after {
  left: -11px;
  top: calc(50% - 6px);
  border-right-color: var(--gh-bg-primary);
}

/* ===== Popover Styles ===== */
.gh-popover {
  padding: 12px;
  min-width: 200px;
  max-width: 360px;
  z-index: var(--gh-z-popover);
}

.gh-popover-header {
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gh-border-muted);
}

.gh-popover-content {
  color: var(--gh-text-secondary);
}

.gh-popover-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gh-border-muted);
  display: flex;
  gap: 8px;
}

/* ===== Dropdown Menu Styles ===== */
.gh-dropdown {
  min-width: 180px;
  max-width: 280px;
  padding: 4px;
  max-height: 320px;
  overflow-y: auto;
  z-index: var(--gh-z-dropdown);
}

.gh-dropdown-item {
  padding: 8px 12px;
  border-radius: var(--gh-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gh-text-secondary);
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
  position: relative;
  overflow: hidden;
}

.gh-dropdown-item:hover {
  background: var(--gh-bg-secondary);
  color: var(--gh-text-primary);
}

.gh-dropdown-item:active {
  transform: scale(0.98);
}

.gh-dropdown-item.gh-active {
  background: var(--gh-accent-primary);
  color: white;
}

.gh-dropdown-item.gh-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.gh-dropdown-divider {
  height: 1px;
  background: var(--gh-border-muted);
  margin: 4px 0;
}

.gh-dropdown-header {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Icon support */
.gh-dropdown-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gh-dropdown-item-label {
  flex: 1;
}

.gh-dropdown-item-shortcut {
  font-size: 11px;
  color: var(--gh-text-muted);
  margin-left: auto;
}

/* ===== Modal Styles ===== */
.gh-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--gh-bg-primary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow-xl);
  z-index: var(--gh-z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--gh-duration-normal) var(--gh-easing-default);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.gh-modal.gh-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.gh-modal-sm { width: 90%; max-width: 400px; }
.gh-modal-md { width: 90%; max-width: 560px; }
.gh-modal-lg { width: 90%; max-width: 720px; }
.gh-modal-xl { width: 90%; max-width: 960px; }
.gh-modal-full { width: calc(100% - 32px); height: calc(100% - 32px); max-width: none; }

.gh-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gh-border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.gh-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gh-text-primary);
}

.gh-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gh-radius-md);
  background: transparent;
  border: none;
  color: var(--gh-text-muted);
  cursor: pointer;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-modal-close:hover {
  background: var(--gh-bg-secondary);
  color: var(--gh-text-primary);
}

.gh-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  color: var(--gh-text-secondary);
}

.gh-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gh-border-muted);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== Dialog Styles ===== */
.gh-dialog {
  width: 90%;
  max-width: 400px;
}

.gh-dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--gh-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.gh-dialog-icon.gh-dialog-success {
  background: rgba(87, 171, 90, 0.1);
  color: var(--gh-accent-success);
}

.gh-dialog-icon.gh-dialog-warning {
  background: rgba(198, 144, 38, 0.1);
  color: var(--gh-accent-warning);
}

.gh-dialog-icon.gh-dialog-danger {
  background: rgba(229, 83, 75, 0.1);
  color: var(--gh-accent-danger);
}

.gh-dialog-icon.gh-dialog-info {
  background: rgba(108, 182, 255, 0.1);
  color: var(--gh-accent-info);
}

.gh-dialog-content {
  text-align: center;
  padding: 0 12px;
}

.gh-dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 8px;
}

.gh-dialog-message {
  color: var(--gh-text-secondary);
  line-height: 1.6;
}

/* ===== Toast Notification Styles ===== */
.gh-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--gh-z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.gh-toast {
  background: var(--gh-bg-primary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  box-shadow: var(--gh-shadow-lg);
  padding: 12px 16px;
  min-width: 300px;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  pointer-events: auto;
  animation: slideInRight var(--gh-duration-normal) var(--gh-easing-bounce);
  overflow: hidden;
}

.gh-toast.gh-toast-removing {
  animation: slideOutRight var(--gh-duration-normal) var(--gh-easing-default) forwards;
}

.gh-toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.gh-toast-title {
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 4px;
}

.gh-toast-message {
  color: var(--gh-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.gh-toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.gh-toast-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--gh-accent-primary);
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--gh-radius-sm);
  cursor: pointer;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-toast-action:hover {
  background: var(--gh-bg-secondary);
}

.gh-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gh-text-muted);
  cursor: pointer;
  border-radius: var(--gh-radius-sm);
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-toast-close:hover {
  background: var(--gh-bg-secondary);
  color: var(--gh-text-primary);
}

/* Toast Progress Bar */
.gh-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gh-accent-primary);
  border-radius: 0 0 var(--gh-radius-md) var(--gh-radius-md);
  transition: width linear;
  transform-origin: left;
}

/* Toast Variants */
.gh-toast.gh-toast-success .gh-toast-icon { color: var(--gh-accent-success); }
.gh-toast.gh-toast-success .gh-toast-progress { background: var(--gh-accent-success); }

.gh-toast.gh-toast-warning .gh-toast-icon { color: var(--gh-accent-warning); }
.gh-toast.gh-toast-warning .gh-toast-progress { background: var(--gh-accent-warning); }

.gh-toast.gh-toast-danger .gh-toast-icon { color: var(--gh-accent-danger); }
.gh-toast.gh-toast-danger .gh-toast-progress { background: var(--gh-accent-danger); }

.gh-toast.gh-toast-info .gh-toast-icon { color: var(--gh-accent-info); }
.gh-toast.gh-toast-info .gh-toast-progress { background: var(--gh-accent-info); }

/* ===== Banner/Notification Bar Styles ===== */
.gh-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gh-bg-secondary);
  border-bottom: 1px solid var(--gh-border-default);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: var(--gh-z-sticky);
  transform: translateY(-100%);
  transition: transform var(--gh-duration-normal) var(--gh-easing-default);
}

.gh-banner.gh-show {
  transform: translateY(0);
}

.gh-banner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.gh-banner-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-banner-title {
  font-weight: 600;
  color: var(--gh-text-primary);
}

.gh-banner-message {
  color: var(--gh-text-secondary);
  font-size: 13px;
}

.gh-banner-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.gh-banner-dismiss {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gh-text-muted);
  cursor: pointer;
  border-radius: var(--gh-radius-sm);
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-banner-dismiss:hover {
  background: var(--gh-bg-tertiary);
  color: var(--gh-text-primary);
}

/* Banner Variants */
.gh-banner.gh-banner-success { background: rgba(87, 171, 90, 0.1); border-color: var(--gh-accent-success); }
.gh-banner.gh-banner-warning { background: rgba(198, 144, 38, 0.1); border-color: var(--gh-accent-warning); }
.gh-banner.gh-banner-danger { background: rgba(229, 83, 75, 0.1); border-color: var(--gh-accent-danger); }
.gh-banner.gh-banner-info { background: rgba(108, 182, 255, 0.1); border-color: var(--gh-accent-info); }

/* ===== Search Modal Styles ===== */
.gh-search-modal {
  width: 90%;
  max-width: 640px;
  max-height: 480px;
}

.gh-search-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.gh-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--gh-text-muted);
  pointer-events: none;
}

.gh-search-input {
  width: 100%;
  padding: 12px 48px 12px 48px;
  background: var(--gh-bg-secondary);
  border: 2px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  color: var(--gh-text-primary);
  font-size: 16px;
  outline: none;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-search-input:focus {
  border-color: var(--gh-accent-primary);
  background: var(--gh-bg-primary);
}

.gh-search-input::placeholder {
  color: var(--gh-text-placeholder);
}

.gh-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gh-text-muted);
  cursor: pointer;
  border-radius: var(--gh-radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-search-input:not(:placeholder-shown) ~ .gh-search-clear {
  opacity: 1;
  visibility: visible;
}

.gh-search-clear:hover {
  background: var(--gh-bg-tertiary);
  color: var(--gh-text-primary);
}

.gh-search-results {
  max-height: 320px;
  overflow-y: auto;
  margin: -8px;
  padding: 8px;
}

.gh-search-result {
  padding: 12px 16px;
  border-radius: var(--gh-radius-md);
  cursor: pointer;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-search-result:hover {
  background: var(--gh-bg-secondary);
}

.gh-search-result.gh-active {
  background: var(--gh-accent-primary);
  color: white;
}

.gh-search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--gh-radius-md);
  background: var(--gh-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-search-result-content {
  flex: 1;
  min-width: 0;
}

.gh-search-result-title {
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 2px;
}

.gh-search-result-description {
  font-size: 12px;
  color: var(--gh-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-search-result.gh-active .gh-search-result-title,
.gh-search-result.gh-active .gh-search-result-description {
  color: white;
}

.gh-search-shortcuts {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gh-border-muted);
}

.gh-search-shortcut {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--gh-text-muted);
}

.gh-kbd {
  padding: 2px 6px;
  background: var(--gh-bg-tertiary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-sm);
  font-family: monospace;
  font-size: 10px;
  color: var(--gh-text-secondary);
}

/* ===== Form Modal Styles ===== */
.gh-form-group {
  margin-bottom: 20px;
}

.gh-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gh-text-primary);
}

.gh-form-input,
.gh-form-select,
.gh-form-textarea {
  width: 100%;
  padding: 8px 12px;
  background: var(--gh-bg-secondary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  color: var(--gh-text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-form-input:focus,
.gh-form-select:focus,
.gh-form-textarea:focus {
  border-color: var(--gh-accent-primary);
  background: var(--gh-bg-primary);
  box-shadow: 0 0 0 3px rgba(83, 155, 245, 0.1);
}

.gh-form-input::placeholder,
.gh-form-textarea::placeholder {
  color: var(--gh-text-placeholder);
}

.gh-form-textarea {
  min-height: 100px;
  resize: vertical;
}

.gh-form-helper {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gh-text-muted);
}

.gh-form-error {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gh-accent-danger);
}

.gh-form-checkbox,
.gh-form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gh-form-checkbox input[type="checkbox"],
.gh-form-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gh-accent-primary);
  cursor: pointer;
}

/* ===== Button Styles ===== */
.gh-btn {
  padding: 8px 8px;
  background: /*var(--gh-bg-secondary);*/ rgba(100, 117, 135, 1);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  color: var(--gh-text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.gh-btn:hover {
  background: /*var(--gh-bg-tertiary);*/ rgba(100, 117, 135, 0.5);
  transform: scale(0.98);
  transition: all 0.35s ease-in-out;
}

.gh-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.gh-btn-primary {
  background: var(--gh-accent-primary);
  border-color: var(--gh-accent-primary);
  color: white;
}

.gh-btn-primary:hover {
  background: #4a8de8;
  border-color: #4a8de8;
}

.gh-btn-success {
  background: var(--gh-accent-success);
  border-color: var(--gh-accent-success);
  color: white;
}

.gh-btn-danger {
  background: var(--gh-accent-danger);
  border-color: var(--gh-accent-danger);
  color: white;
}

.gh-btn-ghost {
  background: transparent;
  border-color: transparent;
}

.gh-btn-ghost:hover {
  background: var(--gh-bg-secondary);
}

/* ===== Animation Keyframes ===== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ===== Context Menu Styles ===== */
.gh-context-menu {
  position: fixed;
  background: var(--gh-bg-primary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  box-shadow: var(--gh-shadow-lg);
  padding: 4px;
  min-width: 200px;
  z-index: var(--gh-z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-context-menu.gh-show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.gh-context-menu-item {
  padding: 8px 12px;
  border-radius: var(--gh-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gh-text-secondary);
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-context-menu-item:hover {
  background: var(--gh-bg-secondary);
  color: var(--gh-text-primary);
}

.gh-context-menu-item.gh-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.gh-context-menu-divider {
  height: 1px;
  background: var(--gh-border-muted);
  margin: 4px 0;
}

/* ===== Tabs Component ===== */
.gh-tabs {
  display: flex;
  flex-direction: column;
}

.gh-tabs-list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--gh-border-muted);
  padding-bottom: 0;
}

.gh-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gh-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
  position: relative;
  margin-bottom: -1px;
}

.gh-tab:hover {
  color: var(--gh-text-secondary);
  background: var(--gh-bg-secondary);
}

.gh-tab.gh-active {
  color: var(--gh-text-primary);
  border-bottom-color: var(--gh-accent-primary);
}

.gh-tab-panel {
  padding: 20px 0;
  animation: fadeIn var(--gh-duration-normal) var(--gh-easing-default);
}

/* ===== Accordion Component ===== */
.gh-accordion {
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  overflow: hidden;
}

.gh-accordion-item {
  border-bottom: 1px solid var(--gh-border-muted);
}

.gh-accordion-item:last-child {
  border-bottom: none;
}

.gh-accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: var(--gh-bg-primary);
  border: none;
  color: var(--gh-text-primary);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-accordion-header:hover {
  background: var(--gh-bg-secondary);
}

.gh-accordion-header.gh-active {
  background: var(--gh-bg-secondary);
}

.gh-accordion-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--gh-duration-fast) var(--gh-easing-default);
}

.gh-accordion-header.gh-active .gh-accordion-icon {
  transform: rotate(180deg);
}

.gh-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--gh-duration-normal) var(--gh-easing-default);
}

.gh-accordion-content.gh-show {
  max-height: 500px;
}

.gh-accordion-body {
  padding: 16px 20px;
  color: var(--gh-text-secondary);
}

/* ===== Progress Indicators ===== */
.gh-progress {
  width: 100%;
  height: 8px;
  background: var(--gh-bg-secondary);
  border-radius: var(--gh-radius-full);
  overflow: hidden;
  position: relative;
}

.gh-progress-bar {
  height: 100%;
  background: var(--gh-accent-primary);
  border-radius: var(--gh-radius-full);
  transition: width var(--gh-duration-normal) var(--gh-easing-default);
  position: relative;
  overflow: hidden;
}

.gh-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

.gh-progress-indeterminate .gh-progress-bar {
  width: 30%;
  animation: indeterminate 1.5s infinite ease-in-out;
}

@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ===== Spinner/Loader ===== */
.gh-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gh-border-muted);
  border-top-color: var(--gh-accent-primary);
  border-radius: var(--gh-radius-full);
  animation: spin 0.8s linear infinite;
}

.gh-spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.gh-spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 4px;
}

/* ===== Badge/Chip Component ===== */
.gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--gh-bg-secondary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--gh-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gh-badge-primary {
  background: rgba(83, 155, 245, 0.1);
  border-color: var(--gh-accent-primary);
  color: var(--gh-accent-primary);
}

.gh-badge-success {
  background: rgba(87, 171, 90, 0.1);
  border-color: var(--gh-accent-success);
  color: var(--gh-accent-success);
}

.gh-badge-warning {
  background: rgba(198, 144, 38, 0.1);
  border-color: var(--gh-accent-warning);
  color: var(--gh-accent-warning);
}

.gh-badge-danger {
  background: rgba(229, 83, 75, 0.1);
  border-color: var(--gh-accent-danger);
  color: var(--gh-accent-danger);
}

/* ===== Alert Component ===== */
.gh-alert {
  padding: 12px 16px;
  background: var(--gh-bg-secondary);
  border: 1px solid var(--gh-border-default);
  border-radius: var(--gh-radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.gh-alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.gh-alert-title {
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 4px;
}

.gh-alert-description {
  color: var(--gh-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.gh-alert-success {
  background: rgba(87, 171, 90, 0.1);
  border-color: var(--gh-accent-success);
}

.gh-alert-success .gh-alert-icon {
  color: var(--gh-accent-success);
}

.gh-alert-warning {
  background: rgba(198, 144, 38, 0.1);
  border-color: var(--gh-accent-warning);
}

.gh-alert-warning .gh-alert-icon {
  color: var(--gh-accent-warning);
}

.gh-alert-danger {
  background: rgba(229, 83, 75, 0.1);
  border-color: var(--gh-accent-danger);
}

.gh-alert-danger .gh-alert-icon {
  color: var(--gh-accent-danger);
}

.gh-alert-info {
  background: rgba(108, 182, 255, 0.1);
  border-color: var(--gh-accent-info);
}

.gh-alert-info .gh-alert-icon {
  color: var(--gh-accent-info);
}

/* ===== Skeleton Loader ===== */
.gh-skeleton {
  background: var(--gh-bg-secondary);
  background-image: linear-gradient(
    90deg,
    var(--gh-bg-secondary) 0%,
    var(--gh-bg-tertiary) 50%,
    var(--gh-bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--gh-radius-sm);
}

.gh-skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: var(--gh-radius-sm);
}

.gh-skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
  border-radius: var(--gh-radius-sm);
}

.gh-skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--gh-radius-full);
}

.gh-skeleton-button {
  height: 36px;
  width: 120px;
  border-radius: var(--gh-radius-md);
}

/* ===== Utility Animations ===== */
.gh-fade-in {
  animation: fadeIn var(--gh-duration-normal) var(--gh-easing-default);
}

.gh-fade-out {
  animation: fadeOut var(--gh-duration-normal) var(--gh-easing-default);
}

.gh-slide-up {
  animation: slideInUp var(--gh-duration-normal) var(--gh-easing-default);
}

.gh-slide-down {
  animation: slideInDown var(--gh-duration-normal) var(--gh-easing-default);
}

.gh-scale-in {
  animation: scaleIn var(--gh-duration-normal) var(--gh-easing-bounce);
}

.gh-pulse {
  animation: pulse 2s infinite;
}

.gh-bounce {
  animation: bounce 1s infinite;
}

/* ===== Responsive Utilities ===== */
@media (max-width: 640px) {
  .gh-modal {
    width: 95%;
    margin: 16px;
  }
  
  .gh-toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }
  
  .gh-toast {
    min-width: auto;
    width: 100%;
  }
}

/* ===== Print Styles ===== */
@media print {
  .gh-modal,
  .gh-toast,
  .gh-banner,
  .gh-backdrop {
    display: none !important;
  }
}
