
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
    @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
    
    .discounted-codes-admin { 
        font-family: 'Inter', sans-serif; 
        padding: 20px; 
        background: #f5f6f5;
    }
    
    .discounted-codes-admin h1 {
        font-weight: 700;
        letter-spacing: -0.5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    #product-search { 
        margin: 20px 0; 
        background: #ffffff;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    #product-search:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }
    
    #product_search_input { 
        width: 100%; 
        padding: 12px; 
        border: 1px solid #ddd; 
        border-radius: 6px; 
        font-family: 'Inter', sans-serif;
        transition: border-color 0.3s ease;
    }
    
    #product_search_input:focus {
        border-color: #0073aa;
        outline: none;
    }
    
    #product_list { 
        max-height: 200px; 
        overflow-y: auto; 
        border: 1px solid #ddd; 
        border-radius: 4px; 
        margin-top: 10px;
    }
    
    #product_list li { 
        padding: 10px 15px; 
        cursor: pointer; 
        background: #f9f9f9; 
        transition: background 0.3s ease;
    }
    
    #product_list li:hover { 
        background: #e9ecef; 
    }
    
    #assigned-products ul { 
        margin: 0; 
    }
    
    #assigned-products li { 
        padding: 10px 15px; 
        background: #f9f9f9; 
        margin-bottom: 10px; 
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .remove-product-btn {
        background: linear-gradient(135deg, #dc3232, #e57373);
        border: none;
        color: white;
        padding: 6px 12px;
        border-radius: 4px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        transition: background 0.3s ease;
    }
    
    .remove-product-btn:hover {
        background: linear-gradient(135deg, #a00, #c62828);
    }
    
    .submit-section input[type="submit"] {
        background: linear-gradient(135deg, #0073aa, #00c4b4) !important;
        border: none !important;
        color: white !important;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        padding: 15px 30px !important;
        border-radius: 6px;
        font-size: 16px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .submit-section input[type="submit"]:hover {
        background: linear-gradient(135deg, #005a87, #009688) !important;
    }
    
    .submit-section input[type="submit"]::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255,255,255,0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .submit-section input[type="submit"]:hover::after {
        width: 200px;
        height: 200px;
    }
    
    @media (max-width: 768px) {
        .discounted-codes-admin { 
            padding: 10px; 
        }
        #product_search_input { 
            font-size: 14px; 
        }
        #product_list li { 
            padding: 8px 10px; 
        }
        #assigned-products li { 
            flex-direction: column; 
            align-items: flex-start; 
        }
        .remove-product-btn { 
            margin-top: 10px; 
        }
    }
.wc-progressive-discount-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.progress-circles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.circle-container {
    text-align: center;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 4;
    fill: transparent;
    stroke-dasharray: 219.91;
    stroke-dashoffset: 219.91;
    transition: stroke-dashoffset 0.8s ease-in-out, stroke 0.3s ease;
}

.progress-circle.completed .progress-ring-circle {
    stroke: #4ade80;
    stroke-dashoffset: 0;
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.circle-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.discount-message {
    font-size: 16px;
    line-height: 1.5;
}

.current-discount {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.next-tier-message {
    font-size: 14px;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .progress-circles {
        gap: 20px;
    }
    
    .progress-circle {
        width: 60px;
        height: 60px;
    }
    
    .progress-ring {
        width: 60px;
        height: 60px;
    }
    
    .progress-ring-circle {
        cx: 30;
        cy: 30;
        r: 25;
        stroke-dasharray: 157.08;
        stroke-dashoffset: 157.08;
    }
    
    .progress-circle.completed .progress-ring-circle {
        stroke-dashoffset: 0;
    }
}


.coupat-admin-wrap {
        background: #f0f0f1;
        margin: 0 -20px;
        padding: 20px;
    }
    
    .coupat-title {
        background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
        color: white;
        padding: 20px;
        margin: 0 0 20px 0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .coupat-title .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
    
    .coupat-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .coupat-card {
        background: white;
        border-radius: 8px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #c3c4c7;
    }
    
    .coupat-card-title {
        margin: 0 0 20px 0;
        padding-bottom: 15px;
        border-bottom: 2px solid #2271b1;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #1d2327;
        font-size: 18px;
    }
    
    .mode-selector-wrapper {
        background: #f6f7f7;
        padding: 20px;
        border-radius: 6px;
        border-left: 4px solid #2271b1;
    }
    
    .mode-description {
        margin: 12px 0 0 0;
        color: #50575e;
        font-size: 13px;
    }
    
    .coupat-select {
        width: 100%;
        max-width: 400px;
        padding: 8px 12px;
        border: 1px solid #8c8f94;
        border-radius: 4px;
        font-size: 14px;
    }
    
    .coupat-select:focus {
        border-color: #2271b1;
        outline: none;
        box-shadow: 0 0 0 1px #2271b1;
    }
    
    .coupon-level {
        background: #f6f7f7;
        border: 1px solid #c3c4c7;
        border-radius: 6px;
        padding: 20px;
        margin: 15px 0;
        position: relative;
    }
    
    .level-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #dcdcde;
    }
    
    .level-header h3 {
        margin: 0;
        color: #2271b1;
        font-size: 16px;
        font-weight: 600;
    }
    
    .remove-level {
        background: #d63638;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 5px 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: background 0.2s;
    }
    
    .remove-level:hover {
        background: #b32d2e;
    }
    
    .remove-level .dashicons {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }
    
    .coupat-table {
        margin: 0;
    }
    
    .coupat-table th {
        width: 200px;
        padding: 10px 0;
        font-weight: 500;
    }
    
    .coupat-table td {
        padding: 10px 0;
    }
    
    .coupat-input {
        padding: 6px 10px;
        border: 1px solid #8c8f94;
        border-radius: 4px;
    }
    
    .coupat-input:focus {
        border-color: #2271b1;
        outline: none;
        box-shadow: 0 0 0 1px #2271b1;
    }
    
    .coupat-add-btn {
        background: #2271b1 !important;
        color: white !important;
        border: none !important;
        padding: 10px 20px !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        margin-top: 10px;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .coupat-add-btn:hover {
        background: #135e96 !important;
    }
    
    .coupat-submit {
        text-align: center;
    }
    
    .coupat-submit .button-primary {
        background: #2271b1;
        border-color: #2271b1;
        padding: 12px 40px;
        height: auto;
        font-size: 16px;
    }
    
    .coupat-submit .button-primary:hover {
        background: #135e96;
        border-color: #135e96;
    }
    
    @media (max-width: 768px) {
        .coupat-admin-wrap {
            padding: 10px;
        }
        .coupat-card {
            padding: 15px;
        }
        .coupat-table th {
            width: auto;
            display: block;
        }
        .coupat-table td {
            display: block;
            padding: 5px 0 15px 0;
        }
    }

    .coupon-timeline-container {
            background: #ffffff;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .coupon-timeline-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        }

        .offer-progress-header h3 {
            margin: 0 0 16px 0;
            color: #333;
            font-size: 20px;
            font-weight: 600;
            text-align: center;
            letter-spacing: -0.5px;
        }

        .offer-message {
            text-align: center;
            font-size: 16px;
            font-weight: 500;
            color: #666;
            margin-bottom: 24px;
            padding: 12px 16px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #007cba;
            transition: background 0.3s ease;
        }

        .offer-message.completed {
            background: #d4edda;
            border-left-color: #28a745;
            color: #155724;
        }

        .coupon-timeline {
            position: relative;
            padding: 20px 0;
        }

        .timeline-track {
            position: relative;
            height: 6px;
            background: #e9ecef;
            border-radius: 3px;
            margin: 30px 0;
        }

        .timeline-progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(90deg, #007cba, #00c4b4);
            border-radius: 3px;
            transition: width 0.8s ease-in-out;
        }

        .timeline-dots {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
        }

        .timeline-dot {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 2;
        }

        .dot-circle {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #ffffff;
            border: 3px solid #e9ecef;
            position: relative;
            transition: all 0.3s ease;
        }

        .timeline-dot.achieved .dot-circle {
            background: #28a745;
            border-color: #28a745;
        }

        .timeline-dot.achieved .dot-circle::after {
            content: "\f00c";
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
        }

        .timeline-dot.current .dot-circle {
            background: #007cba;
            border-color: #007cba;
            animation: pulse 2s infinite;
            box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.4);
        }

        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.4); }
            70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 124, 186, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 124, 186, 0); }
        }

        .dot-label {
            position: absolute;
            top: 35px;
            white-space: nowrap;
            font-size: 12px;
            font-weight: 500;
            color: #666;
            transform: translateX(-50%);
            left: 50%;
            background: white;
            padding: 4px 8px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: color 0.3s ease;
        }

        .timeline-dot.achieved .dot-label { 
            color: #28a745; 
            font-weight: 600; 
        }
        
        .timeline-dot.current .dot-label { 
            color: #007cba; 
            font-weight: 600; 
        }

        @media (max-width: 768px) {
            .coupon-timeline-container { 
                padding: 16px; 
            }
            .offer-progress-header h3 { 
                font-size: 18px; 
            }
            .offer-message { 
                font-size: 14px; 
                padding: 10px 12px; 
            }
            .timeline-dots { 
                padding: 0 10px; 
            }
            .dot-circle { 
                width: 20px; 
                height: 20px; 
            }
            .dot-label { 
                font-size: 10px; 
                padding: 2px 4px; 
                top: 28px; 
            }
        }

        @media (max-width: 480px) {
            .timeline-dots { 
                flex-wrap: wrap; 
                justify-content: center; 
                gap: 20px; 
            }
            .coupon-timeline { 
                padding: 15px 0; 
            }
            .timeline-track { 
                display: none; 
            }
            .timeline-dot { 
                margin: 10px; 
            }
            .dot-label { 
                position: static; 
                transform: none; 
                margin-top: 8px; 
            }
        }