/* GCWCC (Government of Canada Workplace Charitable Campaign) Styles */
/* Premium modern design with rich visuals and professional styling */
/* Isolated styling to prevent conflicts with main site */

/* ========================================
   GCWCC Chatbot Styles 
   ======================================== */

/* GCWCC Chatbot Styles */
.gcwcc-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.gcwcc-chat-toggle {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gcwcc-chat-toggle:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.gcwcc-chat-toggle i {
    font-size: 18px;
}

.chat-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}

.gcwcc-chat-window {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 450px;
    height: 520px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(40, 167, 69, 0.1);
    overflow: hidden;
    border: 2px solid rgba(40, 167, 69, 0.15);
}

.gcwcc-chat-window.active {
    display: flex;
    flex-direction: column;
}

.gcwcc-chat-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.15);
}

.gcwcc-chat-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    opacity: 1;
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.gcwcc-chat-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gcwcc-chat-header .btn-close:before {
    content: "✕";
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.gcwcc-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 350px;
    background: #f8f9fa;
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
    gap: 10px;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.user-message .message-avatar {
    background: #6c757d;
    color: white;
}

.message-content {
    background: white;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 340px;
    color: #2c3e50;
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
}

.bot-message .message-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #2c3e50;
    border: 2px solid rgba(40, 167, 69, 0.1);
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(40, 167, 69, 0.1);
    padding: 16px 20px;
    line-height: 1.6;
    position: relative;
}

.user-message .message-content {
    background: #007bff;
    color: white;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 4px;
}

.message-content .bullet-point {
    margin: 8px 0;
    padding-left: 10px;
}

.message-content strong {
    font-weight: 600;
    color: #28a745;
}

.bot-message .message-content strong {
    color: #28a745;
}

.user-message .message-content strong {
    color: #ffffff;
    font-weight: 700;
}

.gcwcc-chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-disclaimer {
    text-align: center;
}

.gcwcc-chat-input .btn {
    border-radius: 0 5px 5px 0;
}

.gcwcc-chat-input .form-control {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.gcwcc-chat-input .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-style: italic;
}

.chat-typing .typing-indicator {
    display: flex;
    gap: 3px;
}

.chat-typing .typing-dot {
    width: 6px;
    height: 6px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite both;
}

.chat-typing .typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing .typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* AI Assistant Feature Styling */
.bot-message .message-content p {
    margin-bottom: 12px;
}

.bot-message .message-content strong {
    color: #dc3545;
    font-weight: 700;
    text-shadow: none;
}

.bot-message .message-content small {
    color: #6c757d;
    font-size: 0.85em;
    line-height: 1.4;
}

.bot-message .message-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.bot-message .message-content li {
    margin-bottom: 6px;
    color: #495057;
}

/* AI Feature Boxes */
.bot-message .message-content div[style*="background: rgba(40,167,69,0.1)"] {
    background: linear-gradient(135deg, rgba(40,167,69,0.08) 0%, rgba(32,201,151,0.12) 100%) !important;
    border-left: 4px solid #28a745 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin: 12px 0 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.bot-message .message-content div[style*="background: rgba(40,167,69,0.1)"]:hover {
    background: linear-gradient(135deg, rgba(40,167,69,0.12) 0%, rgba(32,201,151,0.16) 100%) !important;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

/* Loading Animation for Bot Messages */
.bot-message.typing .message-content::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #28a745;
    margin-left: 4px;
    animation: typing-dots 1.5s infinite;
}

@keyframes typing-dots {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

/* ========================================
   Confetti Animation for Milestone Achievement
   ======================================== */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    animation: confetti-fall 3s linear infinite;
    opacity: 0;
}

.confetti-piece:nth-child(odd) {
    background: #4ecdc4;
    width: 6px;
    height: 12px;
    border-radius: 1px;
}

.confetti-piece:nth-child(even) {
    background: #45b7d1;
    border-radius: 50%;
}

.confetti-piece:nth-child(3n) {
    background: #f9ca24;
    width: 10px;
    height: 6px;
}

.confetti-piece:nth-child(4n) {
    background: #6c5ce7;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.confetti-piece:nth-child(5n) {
    background: #a29bfe;
    width: 12px;
    height: 4px;
}

.confetti-piece:nth-child(6n) {
    background: #fd79a8;
    border-radius: 50%;
    width: 6px;
    height: 6px;
}

.confetti-piece:nth-child(7n) {
    background: #00b894;
    width: 8px;
    height: 10px;
    border-radius: 1px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotateZ(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

.confetti-piece.delay-1 { animation-delay: 0.1s; }
.confetti-piece.delay-2 { animation-delay: 0.2s; }
.confetti-piece.delay-3 { animation-delay: 0.3s; }
.confetti-piece.delay-4 { animation-delay: 0.4s; }
.confetti-piece.delay-5 { animation-delay: 0.5s; }
.confetti-piece.delay-6 { animation-delay: 0.6s; }
.confetti-piece.delay-7 { animation-delay: 0.7s; }
.confetti-piece.delay-8 { animation-delay: 0.8s; }
.confetti-piece.delay-9 { animation-delay: 0.9s; }
.confetti-piece.delay-10 { animation-delay: 1.0s; }

/* Special milestone celebration styling */
.milestone-celebration {
    animation: milestone-pulse 2s ease-in-out;
}

@keyframes milestone-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(220, 53, 69, 0.6); }
    100% { transform: scale(1); }
}

.gcwcc-milestone-achieved {
    position: relative;
    overflow: visible;
}

.gcwcc-milestone-achieved::before {
    content: '🎉';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    z-index: 10;
    animation: celebration-bounce 2s ease-in-out infinite;
}

@keyframes celebration-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Mobile responsiveness for chatbot */
@media (max-width: 768px) {
    .gcwcc-chat-window {
        width: 380px;
        height: 480px;
    }
    
    .gcwcc-chat-toggle {
        padding: 12px 16px;
    }
    
    .chat-badge {
        display: none;
    }
}

/* ========================================
   GCWCC Global Styles & Background
   ======================================== */

.gcwcc-container * {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gcwcc-page {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    min-height: 100vh;
    position: relative;
    color: white;
}

/* Header styling - force all text to be visible on red background */
.gcwcc-header {
    color: white !important;
    background: transparent;
}

.gcwcc-header h1,
.gcwcc-header h1.mb-1 {
    color: white !important;
    font-weight: 700;
}

.gcwcc-header p,
.gcwcc-header p.mb-0,
.gcwcc-header p.fs-5 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.gcwcc-header i,
.gcwcc-header .fas {
    color: white !important;
}

/* Ensure all header content is visible */
.gcwcc-header * {
    color: white !important;
}

.gcwcc-header .text-white,
.gcwcc-header .text-white * {
    color: white !important;
}

.gcwcc-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}



.gcwcc-header .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   Modern Progress Display
   ======================================== */

.gcwcc-main-amount {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gcwcc-target-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 500;
}

.gcwcc-sleek-progress {
    max-width: 600px;
    margin: 0 auto;
}

.gcwcc-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gcwcc-progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 1.5s ease-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gcwcc-progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes liquid-surface {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.3); }
}

/* Premium thermometer scale marks */
.gcwcc-thermometer-scale {
    position: absolute;
    right: -60px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
}

.gcwcc-thermometer-scale .scale-mark {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.gcwcc-thermometer-scale .scale-mark:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px) scale(1.05);
}

.gcwcc-thermometer-scale .scale-mark::before {
    content: '';
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    margin-right: 10px;
    border-radius: 2px;
}

/* Premium progress display */
.gcwcc-progress-display {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 5;
}

.gcwcc-current-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 1rem;
}

.gcwcc-current-amount::before {
    content: attr(data-amount);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b, #dc3545, #c82333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    transform: translate(2px, 2px);
    opacity: 0.3;
}

@keyframes premium-amount-glow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    }
    50% { 
        transform: scale(1.02);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
    }
}

.gcwcc-target-amount {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.gcwcc-progress-bar {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 25px;
    height: 20px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.2),
        0 4px 12px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.gcwcc-progress-bar::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    filter: blur(1px);
}

.gcwcc-progress-fill {
    background: linear-gradient(90deg, 
        #dc3545 0%, 
        #e63946 25%, 
        #f77f00 50%, 
        #fcbf49 75%, 
        #90e0ef 100%);
    height: 100%;
    border-radius: 22px;
    transition: width 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(220, 53, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.gcwcc-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.6) 30%, 
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.6) 70%,
        transparent 100%);
    animation: premium-progress-shine 2.5s ease-in-out infinite;
}

@keyframes premium-progress-shine {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}

/* ========================================
   Premium Milestone Cards
   ======================================== */

.gcwcc-milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
    z-index: 5;
}

.gcwcc-milestone-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    border-left: 4px solid #dc3545;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
    color: #495057;
}

/* Ensure inactive milestone cards have proper text colors */
.gcwcc-milestone-card .card-title {
    color: #212529 !important;
    font-weight: 600;
}

.gcwcc-milestone-card .card-text {
    color: #6c757d !important;
}

/* Force all milestone card text to be dark on white background for inactive cards */
.gcwcc-milestone-card:not(.gcwcc-milestone-achieved) {
    color: #495057 !important;
}

.gcwcc-milestone-card:not(.gcwcc-milestone-achieved) h5,
.gcwcc-milestone-card:not(.gcwcc-milestone-achieved) .card-title {
    color: #212529 !important;
}

.gcwcc-milestone-card:not(.gcwcc-milestone-achieved) p,
.gcwcc-milestone-card:not(.gcwcc-milestone-achieved) .card-text {
    color: #6c757d !important;
}

.gcwcc-milestone-card:not(.gcwcc-milestone-achieved) small {
    color: #6c757d !important;
}

.gcwcc-milestone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(135deg, 
        #dc3545 0%, 
        #e63946 25%, 
        #f77f00 50%, 
        #fcbf49 75%, 
        #90e0ef 100%);
    z-index: 1;
}

.gcwcc-milestone-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        rgba(220, 53, 69, 0.8) 0%, 
        rgba(230, 57, 70, 0.8) 25%, 
        rgba(247, 127, 0, 0.8) 50%, 
        rgba(252, 191, 73, 0.8) 75%, 
        rgba(144, 224, 239, 0.8) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 25px 25px 0 0;
    z-index: 2;
}

.gcwcc-milestone-card:hover::after {
    transform: scaleX(1);
}

.gcwcc-milestone-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.gcwcc-milestone-achieved {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.95) 0%, 
        rgba(32, 201, 151, 0.95) 100%);
    backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 20px 60px rgba(40, 167, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 50px rgba(255, 215, 0, 0.2);
    animation: premium-celebration 3s ease-in-out;
    position: relative;
}

.gcwcc-milestone-achieved::before {
    background: linear-gradient(135deg, 
        #ffd700 0%, 
        #ffed4e 50%, 
        #f9c74f 100%);
}

@keyframes premium-celebration {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 20px 60px rgba(40, 167, 69, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 50px rgba(255, 215, 0, 0.2);
    }
    25% { 
        transform: scale(1.03) rotate(0.5deg);
        box-shadow: 
            0 25px 70px rgba(40, 167, 69, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 60px rgba(255, 215, 0, 0.3);
    }
    75% { 
        transform: scale(1.03) rotate(-0.5deg);
        box-shadow: 
            0 25px 70px rgba(40, 167, 69, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 60px rgba(255, 215, 0, 0.3);
    }
}

.gcwcc-milestone-achieved .gcwcc-milestone-progress {
    background: rgba(255,255,255,0.2);
}

.gcwcc-milestone-achieved .gcwcc-milestone-progress-fill {
    background: rgba(255,255,255,0.8);
}

.gcwcc-milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.gcwcc-milestone-icon {
    font-size: 2.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.gcwcc-milestone-card:hover .gcwcc-milestone-icon {
    opacity: 1;
    transform: scale(1.1);
}

.gcwcc-milestone-achieved .gcwcc-milestone-icon {
    color: #ffc107;
    animation: gcwcc-icon-bounce 1s ease-in-out infinite;
}

@keyframes gcwcc-icon-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(5deg); }
}

.gcwcc-milestone-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #212529 !important;
}

.gcwcc-milestone-description {
    color: #6c757d !important;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.gcwcc-milestone-achieved .gcwcc-milestone-description {
    color: rgba(255,255,255,0.9);
}

.gcwcc-milestone-progress {
    background: #f8f9fa;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.gcwcc-milestone-progress-fill {
    background: linear-gradient(90deg, #dc3545 0%, #e74c3c 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gcwcc-milestone-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.gcwcc-milestone-target {
    font-weight: 600;
    color: #dc3545;
}

.gcwcc-milestone-achieved .gcwcc-milestone-target {
    color: rgba(255,255,255,0.9);
}

.gcwcc-milestone-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   Premium Team Leaderboard
   ======================================== */

.gcwcc-leaderboard {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.gcwcc-leaderboard-header {
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.9) 0%, 
        rgba(200, 35, 51, 0.95) 100%);
    backdrop-filter: blur(20px);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gcwcc-leaderboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="trophy-pattern" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="25" cy="25" r="2" fill="rgba(255,215,0,0.1)"/><path d="M25,10 L30,20 L35,15 L30,25 L40,30 L30,35 L35,45 L30,40 L25,50 L20,40 L15,45 L20,35 L10,30 L20,25 L15,15 L20,20 Z" fill="rgba(255,215,0,0.05)" transform="scale(0.4) translate(12.5,12.5)"/></pattern></defs><rect width="100" height="100" fill="url(%23trophy-pattern)"/></svg>') center/100px;
    opacity: 0.3;
    animation: trophy-float 15s ease-in-out infinite;
}

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

.gcwcc-team-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

.gcwcc-team-item:hover {
    background-size: 100% 100%;
    background-color: rgba(220, 53, 69, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gcwcc-team-item:last-child {
    border-bottom: none;
    border-radius: 0 0 25px 25px;
}

.gcwcc-team-rank {
    width: 70px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    margin-right: 1rem;
}

.gcwcc-team-rank.rank-1 { 
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(255, 215, 0, 0.3));
    animation: gold-shine 2s ease-in-out infinite;
}

.gcwcc-team-rank.rank-2 { 
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 3px rgba(192, 192, 192, 0.3));
}

.gcwcc-team-rank.rank-3 { 
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 3px rgba(205, 127, 50, 0.3));
}

@keyframes gold-shine {
    0%, 100% { filter: drop-shadow(2px 2px 4px rgba(255, 215, 0, 0.3)); }
    50% { filter: drop-shadow(3px 3px 6px rgba(255, 215, 0, 0.5)); }
}

.gcwcc-team-info {
    flex: 1;
    margin-left: 1rem;
}

.gcwcc-team-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gcwcc-team-department {
    color: #6c757d;
    font-size: 0.9rem;
}

.gcwcc-team-amount {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 2px rgba(40, 167, 69, 0.2));
}

.gcwcc-team-stats {
    text-align: right;
    color: #6c757d;
    font-size: 0.8rem;
}

/* ========================================
   Premium Recent Activity Feed
   ======================================== */

.gcwcc-activity-feed {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    z-index: 5;
}

/* Custom scrollbar */
.gcwcc-activity-feed::-webkit-scrollbar {
    width: 8px;
}

.gcwcc-activity-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gcwcc-activity-feed::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.6), rgba(200, 35, 51, 0.8));
    border-radius: 10px;
}

.gcwcc-activity-feed::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(200, 35, 51, 1));
}

.gcwcc-activity-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: premium-activity-slide-in 0.6s ease-out;
    transition: all 0.3s ease;
    position: relative;
}

.gcwcc-activity-item:hover {
    background: linear-gradient(90deg, 
        rgba(220, 53, 69, 0.05) 0%, 
        rgba(220, 53, 69, 0.02) 50%,
        transparent 100%);
    transform: translateX(8px);
}

@keyframes premium-activity-slide-in {
    from { 
        opacity: 0; 
        transform: translateX(-30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0) scale(1); 
    }
}

.gcwcc-activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        #dc3545 0%, 
        #e63946 50%, 
        #f77f00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(220, 53, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.gcwcc-activity-item:hover .gcwcc-activity-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px rgba(220, 53, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.gcwcc-activity-content {
    flex: 1;
}

.gcwcc-activity-text {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.gcwcc-activity-time {
    color: #6c757d;
    font-size: 0.85rem;
}

.gcwcc-activity-amount {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-left: 0.8rem;
    filter: drop-shadow(1px 1px 2px rgba(40, 167, 69, 0.2));
}

/* ========================================
   Premium Statistics Cards
   ======================================== */

.gcwcc-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
    z-index: 5;
}

.gcwcc-stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    height: 100%;
}

.gcwcc-stat-icon {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

/* Info card and button styling */
.gcwcc-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    border: none;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.gcwcc-info-title {
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.gcwcc-info-text {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 2rem;
}

/* Buttons inside info card - different styling since they're on white background */
.gcwcc-info-card .btn-outline-danger {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545 !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.gcwcc-info-card .btn-outline-danger:hover {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.gcwcc-info-card .btn-outline-secondary {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.gcwcc-info-card .btn-outline-secondary:hover {
    background: #6c757d !important;
    color: white !important;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* Button styling */
.btn-outline-danger {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: white !important;
    color: #dc3545 !important;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary, .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-secondary:hover, .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #495057 !important;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gcwcc-stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.gcwcc-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}





.gcwcc-stat-label {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* ========================================
   Celebration Modal
   ======================================== */

.gcwcc-celebration-modal {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.gcwcc-celebration-content {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gcwcc-celebration-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="3" fill="rgba(255,255,255,0.15)"/><circle cx="60" cy="70" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.2)"/></svg>');
    animation: gcwcc-celebration-sparkle 3s ease-in-out infinite;
}

@keyframes gcwcc-celebration-sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.gcwcc-celebration-trophy {
    font-size: 6rem;
    color: #ffd700;
    animation: gcwcc-trophy-bounce 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes gcwcc-trophy-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(-5px) rotate(-2deg); }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .gcwcc-thermometer {
        width: 80px;
        height: 320px;
    }
    
    .gcwcc-thermometer::after {
        width: 40px;
        height: 40px;
        bottom: -20px;
    }
    
    .gcwcc-current-amount {
        font-size: 2rem;
    }
    
    .gcwcc-milestone-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gcwcc-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gcwcc-stat-card {
        padding: 1rem;
    }
    
    .gcwcc-stat-icon {
        font-size: 2rem;
    }
    
    .gcwcc-stat-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .gcwcc-thermometer {
        width: 60px;
        height: 250px;
    }
    
    .gcwcc-thermometer::after {
        width: 30px;
        height: 30px;
        bottom: -15px;
    }
    
    .gcwcc-current-amount {
        font-size: 1.5rem;
    }
    
    .gcwcc-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Animation Utilities
   ======================================== */

.gcwcc-fade-in {
    animation: gcwcc-fade-in 0.6s ease-out;
}

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

.gcwcc-slide-up {
    animation: gcwcc-slide-up 0.6s ease-out;
}

@keyframes gcwcc-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.gcwcc-pulse {
    animation: gcwcc-pulse 2s ease-in-out infinite;
}

@keyframes gcwcc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .gcwcc-header,
    .gcwcc-celebration-modal,
    .btn {
        display: none !important;
    }
    
    .gcwcc-page {
        background: white !important;
    }
    
    .gcwcc-milestone-card,
    .gcwcc-leaderboard,
    .gcwcc-stat-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}