/* Discount Tracking Styles */
.discount-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.discount-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.discount-stats {
    margin-bottom: 10px;
}

.discount-stats p {
    margin: 5px 0;
    font-size: 14px;
}

.progress-bar {
    margin-top: 10px;
}

.progress-container {
    background: #f0f0f0;
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: #2271b1;
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.discount-tracking-wrapper {
    max-width: 600px;
    margin: 20px 0;
}

/* Category Breakdown Styles */
.category-breakdown {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #2271b1;
}

.category-breakdown h4 {
    margin-top: 0;
    color: #2271b1;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.category-progress-item {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-progress-item:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.category-discount {
    background: #2271b1;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-bar.small {
    margin-top: 8px;
}

.progress-bar.small .progress-container {
    height: 12px;
    flex-grow: 1;
}

.progress-text {
    font-size: 12px;
    margin-left: 10px;
    color: #666;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    background: #e7f3ff;
    color: #2271b1;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin: 2px;
    border: 1px solid #c2e0ff;
}

.configured-categories {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

/* Admin Improvements */
.user-discount-performance .discount-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.user-discount-performance .discount-card h3 {
    margin-top: 0;
    color: #2271b1;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.user-discount-performance .category-breakdown {
    background: white;
    border: 1px solid #e1e1e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .progress-bar.small {
        display: flex;
        align-items: center;
    }
}

.my-account-discounts {
    max-width: 100%;
}

.my-account-discounts .discount-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.my-account-discounts .discount-header {
    border-bottom: 2px solid #2271b1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.my-account-discounts .discount-header h3 {
    margin: 0;
    color: #2271b1;
    font-size: 1.4em;
}

.my-account-discounts .discount-overview {
    display: grid;
    gap: 30px;
}

.my-account-discounts .overall-stats {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.my-account-discounts .overall-stats h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.my-account-discounts .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.my-account-discounts .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.my-account-discounts .stat-label {
    font-weight: 600;
    color: #555;
}

.my-account-discounts .stat-value {
    font-weight: bold;
    color: #2271b1;
}

.my-account-discounts .category-performance {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.my-account-discounts .category-performance h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.my-account-discounts .category-stats {
    display: grid;
    gap: 15px;
}

.my-account-discounts .category-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.my-account-discounts .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.my-account-discounts .category-name {
    font-weight: 600;
    color: #333;
}

.my-account-discounts .category-percentage {
    background: #2271b1;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.my-account-discounts .category-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.my-account-discounts .usage-count {
    font-size: 14px;
    color: #666;
    min-width: 100px;
}

.my-account-discounts .no-category-data {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Progress bars */
.progress-bar {
    margin-top: 10px;
}

.progress-container {
    background: #f0f0f0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: #2271b1;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar.small .progress-container {
    height: 12px;
    flex-grow: 1;
}

.progress-text {
    font-size: 12px;
    margin-left: 10px;
    color: #666;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .my-account-discounts .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .my-account-discounts .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .my-account-discounts .category-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .my-account-discounts .progress-bar.small {
        width: 100%;
    }
}

/* Existing styles for other components... */
.discount-tracking-wrapper {
    max-width: 600px;
    margin: 20px 0;
}

.discount-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.discount-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.discount-stats {
    margin-bottom: 10px;
}

.discount-stats p {
    margin: 5px 0;
    font-size: 14px;
}

.user-discount-performance .discount-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.my-account-discounts .order-status-summary {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
}

.my-account-discounts .order-status-summary span {
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.my-account-discounts .progress-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    margin-bottom: 20px;
}

.my-account-discounts .progress-section h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.my-account-discounts .category-metrics {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.my-account-discounts .category-metrics .usage-count,
.my-account-discounts .category-metrics .amount {
    font-size: 13px;
    color: #666;
}

.my-account-discounts .category-target {
    margin-top: 5px;
    text-align: center;
}

.my-account-discounts .category-target small {
    color: #888;
    font-style: italic;
}

/* Color variations for different progress bars */
.progress-fill[style*="background-color: #28a745;"] {
    background-color: #28a745 !important;
}

.progress-fill[style*="background-color: #ff6b35;"] {
    background-color: #ff6b35 !important;
}