:root {
  /* 進度條顏色 */
  --bs-progress-bar-color: #ffffff;
  
  /* 進度條背景色 */
  --bs-progress-bar-bg: #165dff;
  
  /* 進度條過渡動畫（例如寬度變化時） */
  --bs-progress-bar-transition: width 0.6s ease;

  --aimarker-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",'Arial';

  --aimarker-main-color:#3658d6;

  --aimarker-main-color-rgb: 13, 110, 252;

  --aimarker-secondary-color:#2c6cb9;

  --aimarker-periwinkle-purple-color:#667eea;

  --aimarker-light-red-color:#df1a1a;

  --aimarker-dark-red-color:#a71515;

  --aimarker-pale-orange-color:#FFA07A;

  --aimarker-yellow-color:#FAAD14;

  --aimarker-cream-peach-color:#ffedc8;

  --aimarker-deep-orange-color:#CC5500;

  --aimarker-green-color:#0aad3b;

  --aimarker-deep-green-color:#09812d;

  --aimarker-blue-color:#3658D6;

  --aimarker-dark-blue-color:#0b5ed7;

  --aimarker-turquoise-blue-color:#36CFC9;

  --aimarker-vivid-azure-color:#26C6F9;

  --aimarker-warm-vermilion-color:#FF6857;

  --aimarker-warm-pink-color:#ff72a2; 

  --aimarker-ice-blue-color:#c9fffd;

  --aimarker-purple-color:#945ddf;

  --aimarker-periwinkle-blue-color:#7367F0;

  --aimarker-periwinkle-light-blue-color:#9D95F5;

  --aimarker-medium-purple-color:#5d21af;

  --aimarker-gery-purple-color: #764ba2;

  --aimarker-misty-purple-color:#ebddff;

  --aimarker-charcoal-blue-color: #2c3e50;

  --aimarker-grey-color: #6c757d;

  --aimarker-medium-grey-color: #666666;

  --aimarker-deep-grey-color: #5c636a;

  --aimarker-dark-link-color:#7d8099;

  --aimarker-light-grey-color: #f2f2f2;

  --aimarker-light-bg-color: #F4F4F5;

  --aimarker-dark-color: #131133;

  --aimarker-dark-link-active-bg: rgba(47, 58, 95, 0.4);

  --aimarker-normal-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.08);

  --aimarker-btn-shadow: 0 2px 4px 1px #bdbdbd;

  --aimarker-box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.08);

  --aimarker-box-hover-shadow: rgba(0, 0, 0, 0.08) 0px 4px 20px;

  --aimarker-transition-transform: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);

  --aimarker-width-transition: width 0.3s ease;

  --aimarker-glass-gradient-flow: gradientFlow 4s linear infinite;

  --aimarker-glass-background: linear-gradient(90deg, transparent, #ffffff38, transparent) 0% 0% / 200% 100%;

  --aimarker-periwinkle-blue-gradient: linear-gradient(135deg, var(--aimarker-main-color) 0%, var(--aimarker-main-color) 100%);

  --aimarker-periwinkle-purple-gradient: linear-gradient(135deg, var(--aimarker-periwinkle-purple-color) 0%, var(--aimarker-gery-purple-color) 100%);

  --aimarker-main-color-gradient: linear-gradient(135deg, var(--aimarker-main-color) 0%, var(--aimarker-periwinkle-light-blue-color) 100%);

  --aimarker-small-border-radius: 8px;

  --aimarker-normal-border-radius: 17px;

  --aimarker-pill-border-radius: 20px;

  --aimarker-tl-tr-border-radius: 12px 12px 0 0;

  --aimarker-scale-hover: scale(1.02);

  --aimarker-common-padding:15px;
}

/*grid*/
.aimarker-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.aimarker-one-quarter {
    grid-column: span 3;
}

.aimarker-one-third {
    grid-column: span 4;
}

.aimarker-two-thirds {
    grid-column: span 8;
}

.aimarker-three-thirds {
    grid-column: span 12;
}

/* Responsive design - for medium screens */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .item:nth-child(-n+4),
    .item:nth-child(n+5):nth-child(-n+10),
    .item:nth-child(11),
    .item:nth-child(12) {
        grid-column: span 4; /* Occupies 1/2 width on medium-sized screens */
    }
}

/* Responsive design - small screens */
@media (max-width: 768px) {
    .aimarker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .aimarker-one-quarter,
    .aimarker-one-third,
    .aimarker-two-thirds,
    .aimarker-three-thirds{
        grid-column: span 4; /* Occupies the full width when on small screens */
    }
}
/**/
.aimarker-normal-title {
    font-size: 20px;
    line-height: 35px !important;
    font-weight: 600;
}

.aimarker-button-normal {
    position: relative;
    overflow: hidden;
    background-color: var(--aimarker-warm-pink-color);
    background-repeat: no-repeat;
    background-position: 20px center;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--aimarker-normal-border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
}

.aimarker-button-normal.aimarker-button-outline-deco:not(:hover) {
    color: #6D788D;
    background: #fff;
    border: 1px solid #6D788D;
    margin-bottom: -2px;
}

.aimarker-grading-result .aimarker-button-normal {
    margin-top: 15px;
}

.aimarker-button-normal:hover::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--aimarker-glass-background);
    animation: var(--aimarker-glass-gradient-flow);
}

.aimarker-button-normal:hover::after {
    content: '';
    width: 5px;
    height: 5px;
    position: absolute;
    right: 5px;
    top: 5px;
    background: #ffffff;
    border-radius: 50%;
}

.aimarker-button-normal:hover {
    transform: translateY(-5px);
    box-shadow: 0px 2px 8px 0px #00000021;
}

.outline-btn {
    border: 1px solid #ffffff;
}

.aimarker-button-radiant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--aimarker-pill-border-radius);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: none;
}
.aimarker-button-radiant::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b, #86a8e7, #91eae4, #ff7e5f);
    background-size: 400% 400%;
    border-radius: var(--aimarker-pill-border-radius);
    z-index: -1;
    animation: rotateGradient 4s linear infinite;
}
        
.aimarker-button-radiant::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: linear-gradient(135deg, var(--aimarker-blue-color) 0%, var(--aimarker-medium-purple-color) 100%);
    border-radius: var(--aimarker-pill-border-radius);
    z-index: -1;
}

.aimarker-button-radiant:hover::after {
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(45deg, var(--aimarker-blue-color) 0%, var(--aimarker-medium-purple-color) 100%);
}

.aimarker-button-radiant:hover::before {
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    animation: rotateGradient 2s linear infinite;
}

.aimarker-button-adorn {
    font-size: 14px;
    display: flex;
    color: #fff;
    background: #7e8eeb;
    width: fit-content;
    padding: 2px 5px;
    border-radius: var(--aimarker-normal-border-radius);
    align-items: center;
    gap: 5px;
}

.float-rb {
    position: fixed;
    right: 5px;
    bottom: 5px;
    z-index: 99999;
}

/*pagination*/

.aimarker-history-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.aimarker-pagination-btn {
    display: flex;
    width: 40px;
    height: 40px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.aimarker-pagination-btn:hover {
  background: #f0f0f0;
}

.aimarker-pagination-btn.active {
    background: var(--aimarker-main-color);
    border-color: var(--aimarker-main-color);
    color: #fff;
}

.aimarker-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/*pagination*/

.aimarker-button-normal:disabled {
    background-color: #7099d6;
    opacity: .5;
    pointer-events: none;
}
.aimarker-button-normal:disabled:hover{
    background-color: #7099d6;
    transform: translateY(0px);
    box-shadow: none;
}

.grey-button-normal {
    display: inline-block;
    background-color: var(--aimarker-grey-color);
    background-repeat: no-repeat;
    background-position: 12px center;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--aimarker-normal-border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sm-btn {
    padding: 5px 13px;
    border-radius: var(--aimarker-small-border-radius);
    font-size: 13px;
    line-height: 20px;
    padding: 2px 10px;
}

.big-btn {
    font-size: 18px;
    padding: 10px 40px;
}
.btn-green,.btn-green:hover{
    background-color: #00c56a;
}

.full-btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.grey-button-normal:hover {
    background-color: var(--aimarker-deep-grey-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.orange-color {
    background-color: var(--aimarker-pale-orange-color);
}

.orange-color:hover {
    background-color: var(--aimarker-deep-orange-color);
}

.red-color {
    background-color: var(--aimarker-light-red-color);
}
.red-color:hover {
    background-color: var(--aimarker-dark-red-color);
}

.grey-color{
    background-color: var(--aimarker-grey-color);
}

.grey-color:hover{
    background-color: var(--aimarker-deep-grey-color);
}
/*提示類型*/
.hint-v1 {
    text-align: left;
    color: #000;
    font-size: 15px;
    margin: 10px 0;
    padding: 10px;
    background: #c6e6ff;
    border-radius: var(--aimarker-normal-border-radius);
    flex: 1 0 100%;
}
.aimarker-notice-color {
    border-color: var(--aimarker-deep-green-color);
}
.hint-v1 .aimarker-icon{
    width: 13px;
    height: 13px;
    margin-bottom: -1px;
    margin-right: 5px;
}

/*通用信息模塊*/
.aimarker-info-item-box {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) and (max-width:1023px) {
    .aimarker-info-item-box {
        grid-template-columns: repeat(2, minmax(0px, 1fr));
    }
}

@media (min-width: 1024px) {
    .aimarker-info-item-box {
        grid-template-columns: repeat(3, minmax(0px, 1fr));
    }
}

.aimarker-info-item {
    position: relative;
    overflow: hidden;
    box-shadow: var(--aimarker-box-shadow);
    transition: var(--aimarker-transition-transform);
    box-sizing: border-box;
    background: rgb(255, 255, 255);
    padding: 1rem;
    border-color: var(--aimarker-blue-color);
    border-radius: var(--aimarker-normal-border-radius);
    border-width: 0px 0px 0px 4px;
    border-style: solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aimarker-info-item:hover {
    transform: var(--aimarker-scale-hover);
    box-shadow: var(--aimarker-box-hover-shadow);
}

.aimarker-info-text {
    width: 100%;
    display: flex;
    align-items: center;
}

.aimarker-info-icon svg {
    fill: var(--aimarker-blue-color);
    box-sizing: content-box;
    background: rgb(219, 234, 254);
    border-radius: 50%;
    padding: 10px;
}

.aimarker-info-inner-text  {
    display: inline-block;
    margin-bottom: 0px;
    color: initial;
    font-size: initial;
}

.aimarker-small-area-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #8d8d8da3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aimarker-small-area-loading .aimarker-icon {
    width: 40px;
    height: 40px;
}


@media (min-width: 1024px) and (max-width: 1239px) {
    .aimarker-info-inner-text  {
        text-overflow: ellipsis;
        max-width: 120px;
        overflow: hidden;
        white-space: nowrap;
    }
}

.aimarker-purple {
    border-color: var(--aimarker-purple-color);
}
.aimarker-purple svg {
    fill: var(--aimarker-purple-color);
    background: rgb(243, 232, 255);
}


/* fade in and out */
.aimarker-fade-in {
  animation: aimarker-fadeIn 0.6s ease-in-out forwards;
}

.aimarker-fade-out {
  animation: aimarker-fadeOut 0.6s ease-in-out forwards;
}

.infinite-rotation {
    animation: rotate-animation 1s linear infinite;
}

@keyframes rotateGradient {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
        transform: rotate(360deg);
    }
}

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

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

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

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

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


/* slide up */
.aimarker-slide-up {
  animation: aimarker-slideUp 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes aimarker-slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide down */
.aimarker-slide-down {
  animation: aimarker-slideDown 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes aimarker-slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from the left */
.aimarker-slide-left {
  animation: aimarker-slideLeft 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes aimarker-slideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from the right */
.aimarker-slide-right {
  animation: aimarker-slideRight 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes aimarker-slideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom and fade in */
.aimarker-scale-fade {
  animation: aimarker-scaleFade 0.4s ease-out forwards;
  opacity: 0;
}

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

/* Slight bounce */
.aimarker-subtle-bounce {
  animation: aimarker-subtleBounce 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes aimarker-subtleBounce {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Typewriter effect */
.aimarker-typewriter {
  animation: aimarker-typewriter 1s steps(20) forwards;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes aimarker-typewriter {
  to {
    width: 100%;
  }
}

/* Blur fade in */
.aimarker-blur-fade {
  animation: aimarker-blurFade 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes aimarker-blurFade {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Rotate to enter */
.aimarker-rotate-in {
  animation: aimarker-rotateIn 0.6s ease-out forwards;
  opacity: 0;
  transform-origin: center;
}

@keyframes aimarker-rotateIn {
  from {
    opacity: 0;
    transform: rotate(-15deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Delay animation */
.aimarker-delay-1 { animation-delay: 0.1s; }
.aimarker-delay-2 { animation-delay: 0.2s; }
.aimarker-delay-3 { animation-delay: 0.3s; }
.aimarker-delay-4 { animation-delay: 0.4s; }
.aimarker-delay-5 { animation-delay: 0.5s; }

/* Duration variant */
.aimarker-duration-fast { animation-duration: 0.3s; }
.aimarker-duration-normal { animation-duration: 0.6s; }
.aimarker-duration-slow { animation-duration: 0.9s; }

/* Fill mode */
.aimarker-forwards { animation-fill-mode: forwards; }
.aimarker-backwards { animation-fill-mode: backwards; }
.aimarker-both { animation-fill-mode: both; }

/* Disable animation for users */
@media (prefers-reduced-motion: reduce) {
    .aimarker-fade-in,
    .aimarker-fade-out,
    .aimarker-slide-up,
    .aimarker-slide-down,
    .aimarker-slide-left,
    .aimarker-slide-right,
    .aimarker-scale-fade,
    .aimarker-subtle-bounce,
    .aimarker-typewriter,
    .aimarker-blur-fade,
    .aimarker-rotate-in,
    [class*="aimarker-delay"],
    [class*="aimarker-duration"] {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.vivid-azure-color {
    color: #ffffff;
}


.vivid-azure-bg {
    background-color: #ffffff;
    color: #000000;
}

.warm-vermilion-color {
    color: #fff;
}
.warm-vermilion-bg {
    background-color: #ffffff;
    color: #000000;
}

.vivid-azure-content-box {
    background: #DCF6FE;
}
.warm-vermilion-content-box {
    background: #ffe2f2;
}

.vivid-azure-content-box .aimarker-description-text {
    color: #ffffff;
}

.warm-vermilion-content-box .aimarker-description-text {
    color: #fff;
}

/*woocommerce received*/
.woocommerce-order-received .page-content {
    max-width: 1000px;
    margin: 20px;
    border-radius: var(--aimarker-normal-border-radius);
    border: 1px solid #f2f2f2;
    padding: 20px;
}

/* File cleanup notice styles */
.aimarker-file-cleanup-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.aimarker-file-cleanup-notice .aimarker-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.aimarker-file-cleanup-notice .aimarker-icon.warning-m::before {
    content: "⚠️";
    font-size: 16px;
}