/* ========================================
   PRICE CHANGE MODAL (pcm- prefix)
   Clean design matching login-required modal
   ======================================== */

/* Modal Dialog */
.pcm-dialog {
    max-width: 560px;
    margin: 1.75rem auto;
}

/* Modal Content */
.pcm-content {
    background: #ffffff !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

/* Header */
.pcm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff !important;
}

.pcm-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.pcm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcm-icon i {
    font-size: 24px;
    color: #ffffff !important;
}

.pcm-header-text {
    flex: 1;
}

.pcm-title {
    font-size: 20px;
    font-weight: 700;
    color: #202124 !important;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.pcm-subtitle {
    font-size: 13px;
    color: #5f6368 !important;
    margin: 0;
    line-height: 1.3;
}

.pcm-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: #5f6368 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pcm-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #202124 !important;
    transform: scale(1.05);
}

.pcm-close i {
    font-size: 16px;
}

/* Body */
.pcm-body {
    padding: 24px !important;
    background: #ffffff !important;
    color: #202124 !important;
}

.pcm-info-text {
    font-size: 14px;
    color: #5f6368 !important;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Changes List */
.pcm-changes-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.pcm-changes-list::-webkit-scrollbar {
    width: 6px;
}

.pcm-changes-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 3px;
}

.pcm-changes-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.pcm-changes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Individual Change Item */
.price-change-item {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.price-change-item:last-child {
    margin-bottom: 0;
}

.price-change-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.price-change-item .item-name {
    font-weight: 600;
    color: #202124 !important;
    margin-bottom: 6px;
    font-size: 15px;
}

.price-change-item .item-details {
    font-size: 12px;
    color: #5f6368 !important;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.price-change-item .item-details i {
    color: #80868b !important;
    font-size: 11px;
}

.price-change-item .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.price-change-item .price-row > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-change-item .old-price {
    text-decoration: line-through;
    color: #80868b !important;
    font-size: 15px;
}

.price-change-item .new-price {
    font-weight: 700;
    font-size: 18px;
}

.price-change-item .new-price.price-up {
    color: #dc2626 !important;
}

.price-change-item .new-price.price-down {
    color: #16a34a !important;
}

.price-change-item .price-row i.fa-arrow-right {
    color: #80868b !important;
    font-size: 12px;
}

.price-change-item .price-diff {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.price-change-item .price-diff.diff-up {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626 !important;
}

.price-change-item .price-diff.diff-down {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a !important;
}

/* Out of Stock Item */
.price-change-item.out-of-stock {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.04);
}

.price-change-item .out-of-stock-badge {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626 !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-change-item .out-of-stock-badge i {
    color: #dc2626 !important;
}

/* Summary */
.pcm-summary {
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
}

.pcm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcm-summary-label {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368 !important;
}

.pcm-summary-value {
    font-weight: 700;
    font-size: 18px;
}

.pcm-summary-value.text-danger {
    color: #dc2626 !important;
}

.pcm-summary-value.text-success {
    color: #16a34a !important;
}

/* Footer */
.pcm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa !important;
}

/* Buttons */
.pcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 8px;
}

.pcm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pcm-btn-reject {
    background: #ffffff;
    border: 1px solid rgba(220, 38, 38, 0.4) !important;
    color: #dc2626 !important;
}

.pcm-btn-reject:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.pcm-btn-accept {
    background: linear-gradient(135deg, #4b8ef2, #27b578) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(75, 142, 242, 0.25);
}

.pcm-btn-accept:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(75, 142, 242, 0.35);
}

/* ==================== DARK THEME ==================== */

html[data-theme="dark"] .pcm-content {
    background: #2c3138 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .pcm-header {
    background: #2c3138 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .pcm-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .pcm-subtitle {
    color: #dadce0 !important;
}

html[data-theme="dark"] .pcm-close {
    background: rgba(255, 255, 255, 0.08);
    color: #c7ccd1 !important;
}

html[data-theme="dark"] .pcm-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

html[data-theme="dark"] .pcm-body {
    background: #2c3138 !important;
}

html[data-theme="dark"] .pcm-info-text {
    color: #e8eaed !important;
}

html[data-theme="dark"] .pcm-changes-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .pcm-changes-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .pcm-changes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .price-change-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .price-change-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .price-change-item .item-name {
    color: #ffffff !important;
}

html[data-theme="dark"] .price-change-item .item-details {
    color: #dadce0 !important;
}

html[data-theme="dark"] .price-change-item .item-details i {
    color: #9aa0a6 !important;
}

html[data-theme="dark"] .price-change-item .old-price {
    color: #9aa0a6 !important;
}

html[data-theme="dark"] .price-change-item .price-row i.fa-arrow-right {
    color: #9aa0a6 !important;
}

html[data-theme="dark"] .price-change-item .new-price.price-up {
    color: #f87171 !important;
}

html[data-theme="dark"] .price-change-item .new-price.price-down {
    color: #4ade80 !important;
}

html[data-theme="dark"] .price-change-item .price-diff.diff-up {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171 !important;
}

html[data-theme="dark"] .price-change-item .price-diff.diff-down {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80 !important;
}

html[data-theme="dark"] .price-change-item.out-of-stock {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}

html[data-theme="dark"] .price-change-item .out-of-stock-badge {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171 !important;
}

html[data-theme="dark"] .price-change-item .out-of-stock-badge i {
    color: #f87171 !important;
}

html[data-theme="dark"] .pcm-summary {
    background: rgba(75, 142, 242, 0.08);
    border-color: rgba(75, 142, 242, 0.2);
}

html[data-theme="dark"] .pcm-summary-label {
    color: #e8eaed !important;
}

html[data-theme="dark"] .pcm-summary-value.text-danger {
    color: #f87171 !important;
}

html[data-theme="dark"] .pcm-summary-value.text-success {
    color: #4ade80 !important;
}

html[data-theme="dark"] .pcm-footer {
    background: rgba(255, 255, 255, 0.02) !important;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .pcm-btn-reject {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .pcm-btn-reject:hover:not(:disabled) {
    background: #f87171;
    border-color: #f87171 !important;
    color: #ffffff !important;
}

/* ==================== MOBILE ==================== */

@media (max-width: 576px) {
    .pcm-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .pcm-content {
        border-radius: 16px !important;
    }
    
    .pcm-header {
        padding: 20px 18px;
    }
    
    .pcm-header-left {
        gap: 12px;
    }
    
    .pcm-icon {
        width: 48px;
        height: 48px;
    }
    
    .pcm-icon i {
        font-size: 20px;
    }
    
    .pcm-title {
        font-size: 18px;
    }
    
    .pcm-subtitle {
        font-size: 12px;
    }
    
    .pcm-body {
        padding: 20px 18px !important;
    }
    
    .pcm-info-text {
        font-size: 13px;
    }
    
    .pcm-changes-list {
        max-height: 220px;
    }
    
    .price-change-item {
        padding: 14px;
        border-radius: 10px;
    }
    
    .price-change-item .item-name {
        font-size: 14px;
    }
    
    .price-change-item .item-details {
        font-size: 11px;
    }
    
    .price-change-item .old-price {
        font-size: 14px;
    }
    
    .price-change-item .new-price {
        font-size: 16px;
    }
    
    .price-change-item .price-diff {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .pcm-summary {
        padding: 14px 16px;
    }
    
    .pcm-summary-label {
        font-size: 13px;
    }
    
    .pcm-summary-value {
        font-size: 16px;
    }
    
    .pcm-footer {
        flex-direction: column-reverse;
        padding: 16px 18px;
        gap: 10px;
    }
    
    .pcm-btn {
        width: 100%;
        padding: 14px 20px;
    }
}
