.customAdmonition {
  position: relative;
  border-radius: 12px;
  background: transparent !important;
  overflow: hidden;
  z-index: 2;
  margin: 24px 0;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
  
  &::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -2;
    border-radius: 12px;
    opacity: 0.8;
    background: linear-gradient(135deg, var(--admonition-color), var(--admonition-color-secondary));
  }
  
  &::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    z-index: -1;
    border-radius: 10px;
    background: var(--ifm-background-surface-color);
  }
  
  &:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--admonition-color-secondary), var(--admonition-color));
  }
}

.admonitionHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 3;
}

.admonitionIcon {
  font-size: 20px;
  line-height: 1;
}

.admonitionTitle {
  font-family: var(--ifm-font-family-base);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  flex: 1;
}

.admonitionContent {
  padding: 16px 20px 20px 20px;
  position: relative;
  z-index: 3;
  
  :global(p) {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ifm-font-color-base);
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  :global(ul), :global(ol) {
    margin: 12px 0;
    padding-left: 20px;
    
    li {
      margin-bottom: 8px;
      color: var(--ifm-font-color-base);
    }
  }
  
  :global(code) {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--admonition-color);
  }
  
  :global(pre) {
    background: var(--ifm-background-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
  }
}

// Special styling for inline code in info admonitions
.customAdmonition[data-type="info"] .admonitionContent :global(code) {
  color: #00D4FF !important;
}

// Responsive design
@media (max-width: 768px) {
  .customAdmonition {
    margin: 16px 0;
    
    &::before {
      top: -1px;
      left: -1px;
      right: -1px;
      bottom: -1px;
    }
    
    &::after {
      top: 1px;
      left: 1px;
      right: 1px;
      bottom: 1px;
    }
  }
  
  .admonitionHeader {
    padding: 12px 16px 8px 16px;
    gap: 8px;
  }
  
  .admonitionIcon {
    font-size: 18px;
  }
  
  .admonitionTitle {
    font-size: 14px;
  }
  
  .admonitionContent {
    padding: 12px 16px 16px 16px;
    
    :global(p) {
      font-size: 15px;
    }
  }
} 