/* GC Loading Overlay ------------------------------------------------------ */
#gc-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 48, 52, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
#gc-progress-bar.gc-loading,
#gc-progress-bar.gc-complete {
    opacity: 1;
    pointer-events: all;
}

/* Card */
.gc-overlay-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 44px 28px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border-top: 4px solid #6c6335;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.14),
        0 28px 64px rgba(0, 0, 0, 0.22);
    animation: gc-card-in 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes gc-card-in {
    from { transform: translateY(12px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Logo */
.gc-overlay-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

/* Progress bar track */
.gc-bar-track {
    width: 100%;
    height: 7px;
    background: #ede9df;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Progress bar fill */
.gc-bar {
    height: 100%;
    background: linear-gradient(90deg, #89825d, #6c6335, #4e4826);
    width: 0%;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.gc-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    bottom: 0;
    width: 55%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    animation: gc-shimmer 1.4s ease-in-out infinite;
}
@keyframes gc-shimmer {
    0%   { left: -70%; }
    100% { left: 115%; }
}
@keyframes gc-progress {
    0%   { width: 8%;  }
    15%  { width: 38%; }
    40%  { width: 60%; }
    70%  { width: 78%; }
    100% { width: 90%; }
}
#gc-progress-bar.gc-loading .gc-bar {
    animation: gc-progress 12s ease forwards;
}
#gc-progress-bar.gc-complete .gc-bar {
    width: 100% !important;
    animation: none;
    transition: width 0.14s ease;
}

/* Label with animated dots */
.gc-overlay-label {
    color: #6b7075;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 1px;
}
.gc-dots {
    display: inline-block;
    overflow: hidden;
    width: 0;
    animation: gc-dots 1.6s steps(4, end) infinite;
    white-space: nowrap;
}
@keyframes gc-dots {
    0%   { width: 0;      }
    25%  { width: 0.45em; }
    50%  { width: 0.9em;  }
    75%  { width: 1.35em; }
    100% { width: 0;      }
}

@media print {
    #gc-progress-bar,
    #gc-toast-container {
        display: none !important;
    }
}

/* GC Toast Container ------------------------------------------------------- */
#gc-toast-container {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}
.gc-toast {
    background: #2e3538;
    color: #f0f0f0;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.22),
        0 1px 3px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 310px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-left: 4px solid #6c6335;
    word-break: break-word;
}
.gc-toast.gc-toast-show {
    opacity: 1;
    transform: translateX(0);
}
.gc-toast.gc-toast-success { border-left-color: #5cb85c; }
.gc-toast.gc-toast-error   { border-left-color: #d9534f; }
.gc-toast i {
    flex-shrink: 0;
    font-size: 15px;
    opacity: 0.9;
}
