/* Live Gold Coin Prices - Price Display Styles */
.lgcp-price-table-container {
    width: 100%;
    max-width: 480px;
    margin: 20px 0;
}

.price-card, .lgcp-price-table {
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: right;
    direction: rtl;
}

.price-row, .lgcp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    line-height: 20px;
}

.price-row:not(:last-child), .lgcp-price-row:not(:last-child) {
    border-bottom: 1px solid;
}

.total-price-row, .lgcp-total-price-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.last-updated, .lgcp-last-updated {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.detail-label, .lgcp-detail-label {
    color: #333;
    font-weight: 500;
    margin-right: 8px;
}

/* Usage Levels Table Styles */
.lgcp-usage-levels {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: #1a1a1a; /* Dark background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #f0f0f0; /* Light text for general info */
    text-align: right;
    direction: rtl;
}

.lgcp-usage-levels h3 {
    color: #fde047; /* Gold color for heading */
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.lgcp-usage-levels p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ccc;
}

.lgcp-tier-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.lgcp-tier-table th,
.lgcp-tier-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
    text-align: right;
    font-size: 0.9rem;
}

.lgcp-tier-table thead th {
    background-color: #2a2a2a; /* Slightly lighter dark for header */
    color: #fde047; /* Gold color for header text */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.lgcp-tier-table tbody tr:last-child td {
    border-bottom: none;
}

.lgcp-tier-table tbody td {
    color: #e0e0e0; /* Light gray for body text */
}

.lgcp-tier-table tbody tr:nth-child(odd) {
    background-color: #222222; /* Alternate row background for readability */
}

.lgcp-tier-table tbody tr:nth-child(even) {
    background-color: #1a1a1a;
}

.lgcp-tier-table tbody td:first-child {
    font-weight: 600;
    color: #fde047; /* Gold for tier names */
}

/* Responsive adjustments for the new table */
@media (max-width: 768px) {
    .lgcp-usage-levels {
        padding: 1rem;
        margin: 1rem;
    }
    .lgcp-usage-levels h3 {
        font-size: 1.25rem;
    }
    .lgcp-tier-table th,
    .lgcp-tier-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

.detail-value, .lgcp-detail-value {
    font-weight: 600;
}

/* Animation and Update States */
.lgcp-updating {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.lgcp-updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: lgcp-spin 1s linear infinite;
    z-index: 10;
}

.lgcp-updated, .lgcp-price-updated {
    animation: lgcp-highlight 1s ease-out;
}

@keyframes lgcp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes lgcp-highlight {
    0% { 
        background-color: rgba(16, 185, 129, 0.3);
        transform: scale(1.02);
    }
    50% {
        background-color: rgba(16, 185, 129, 0.2);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

/* Refresh Button Styles */
.lgcp-refresh-btn, .lgcp-refresh-product-price {
    background-color: #6b7280;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    width: 100%;
}

.lgcp-refresh-btn:hover, .lgcp-refresh-product-price:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.lgcp-refresh-btn:disabled, .lgcp-refresh-product-price:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Live Price Badge */
.lgcp-live-price-badge {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    display: inline-block;
    margin: 0 0.25rem;
    animation: lgcp-pulse 2s infinite;
}

@keyframes lgcp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.detail-value, .lgcp-detail-value {
    font-weight: 600;
}

/* Theme 1: Classic Gold & Dark */
.theme-classic-gold-dark, .lgcp-theme-classic-gold-dark {
    background-color: #1f2937;
}

.theme-classic-gold-dark .last-updated, .lgcp-theme-classic-gold-dark .lgcp-last-updated {
    color: #d1d5db;
}

.theme-classic-gold-dark .price-row, .lgcp-theme-classic-gold-dark .lgcp-price-row {
    border-color: #374151;
}

.theme-classic-gold-dark .detail-label, .lgcp-theme-classic-gold-dark .lgcp-detail-label {
    color: #d1d5db;
}

.theme-classic-gold-dark .detail-value, .lgcp-theme-classic-gold-dark .lgcp-detail-value {
    color: #d1d5db;
}

.theme-classic-gold-dark .total-price-row, .lgcp-theme-classic-gold-dark .lgcp-total-price-row {
    border-color: #4b5563;
}

.theme-classic-gold-dark .total-price-row .detail-label, .lgcp-theme-classic-gold-dark .lgcp-total-price-row .lgcp-detail-label {
    color: #d1d5db;
}

.theme-classic-gold-dark .total-price-row .detail-value, .lgcp-theme-classic-gold-dark .lgcp-total-price-row .lgcp-detail-value {
    color: #d1d5db;
}

/* Theme 2: Bright Gold & White */
.theme-bright-gold-white, .lgcp-theme-bright-gold-white {
    background-color: #ffffff;
}

.theme-bright-gold-white .last-updated, .lgcp-theme-bright-gold-white .lgcp-last-updated {
    color: #6b7280;
}

.theme-bright-gold-white .price-row, .lgcp-theme-bright-gold-white .lgcp-price-row {
    border-color: #e5e7eb;
}

.theme-bright-gold-white .detail-label, .lgcp-theme-bright-gold-white .lgcp-detail-label {
    color: #374151;
}

.theme-bright-gold-white .detail-value, .lgcp-theme-bright-gold-white .lgcp-detail-value {
    color: #ca8a04;
}

.theme-bright-gold-white .total-price-row, .lgcp-theme-bright-gold-white .lgcp-total-price-row {
    border-color: #d1d5db;
}

.theme-bright-gold-white .total-price-row .detail-label, .lgcp-theme-bright-gold-white .lgcp-total-price-row .lgcp-detail-label {
    color: #111827;
}

.theme-bright-gold-white .total-price-row .detail-value, .lgcp-theme-bright-gold-white .lgcp-total-price-row .lgcp-detail-value {
    color: #ca8a04;
}

/* Theme 3: Luxury Black & Gold Gradient */
.theme-luxury-black-gold, .lgcp-theme-luxury-black-gold {
    background-color: #000000;
}

.theme-luxury-black-gold .last-updated, .lgcp-theme-luxury-black-gold .lgcp-last-updated {
    color: #a1a1aa;
}

.theme-luxury-black-gold .price-row, .lgcp-theme-luxury-black-gold .lgcp-price-row {
    border-color: #3f3f46;
}

.theme-luxury-black-gold .detail-label, .lgcp-theme-luxury-black-gold .lgcp-detail-label {
    color: #e4e4e7;
}

.theme-luxury-black-gold .detail-value, .lgcp-theme-luxury-black-gold .lgcp-detail-value {
    background: linear-gradient(45deg, #F7C85E, #FFEBA4, #D4A24C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-luxury-black-gold .total-price-row, .lgcp-theme-luxury-black-gold .lgcp-total-price-row {
    border-color: #52525b;
}

.theme-luxury-black-gold .total-price-row .detail-label, .lgcp-theme-luxury-black-gold .lgcp-total-price-row .lgcp-detail-label {
    color: #fafafa;
}


.lgcp-theme-luxury-black-gold .lgcp-calculator-form input[type="number"],
.lgcp-theme-luxury-black-gold .lgcp-calculator-form select {
    padding: 0;
}

/* Specific styles for form elements within Gradient Gold Background & Black Text theme */
.lgcp-theme-gradient-gold-bg-black-text .lgcp-calculator-form input[type="number"],
.lgcp-theme-gradient-gold-bg-black-text .lgcp-calculator-form select {
    background-color: #333333; /* Dark background for input fields */
    color: #ffffff; /* Light text color for input fields */
    border: 1px solid #666666; /* Contrasting border */
    padding: 8px 12px;
    border-radius: 4px;
}

.lgcp-theme-gradient-gold-bg-black-text .lgcp-calculator-form input[type="number"]::placeholder {
    color: #cccccc; /* Placeholder text color */
}

.lgcp-theme-gradient-gold-bg-black-text .lgcp-calculator-form button {
    background-color: #000000; /* Black background for buttons */
    color: #FFD700; /* Gold text for buttons */
    border: 1px solid #FFD700;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lgcp-theme-gradient-gold-bg-black-text .lgcp-calculator-form button:hover {
    background-color: #1a1a1a;
}

/* Theme 4: Elegant White & Rose Gold */
.theme-elegant-white-rose-gold, .lgcp-theme-elegant-white-rose-gold {
    background-color: #fff7f2;
}

.theme-elegant-white-rose-gold .last-updated, .lgcp-theme-elegant-white-rose-gold .lgcp-last-updated {
    color: #7f6d63;
}

.theme-elegant-white-rose-gold .price-row, .lgcp-theme-elegant-white-rose-gold .lgcp-price-row {
    border-color: #e0d1c8;
}

.theme-elegant-white-rose-gold .detail-label, .lgcp-theme-elegant-white-rose-gold .lgcp-detail-label {
    color: #5c4033;
}

.theme-elegant-white-rose-gold .detail-value, .lgcp-theme-elegant-white-rose-gold .lgcp-detail-value {
    color: #b76e79;
}

.theme-elegant-white-rose-gold .total-price-row, .lgcp-theme-elegant-white-rose-gold .lgcp-total-price-row {
    border-color: #d3b8ae;
}

.theme-elegant-white-rose-gold .total-price-row .detail-label, .lgcp-theme-elegant-white-rose-gold .lgcp-total-price-row .lgcp-detail-label {
    color: #4a3329;
}

.theme-elegant-white-rose-gold .total-price-row .detail-value, .lgcp-theme-elegant-white-rose-gold .lgcp-total-price-row .lgcp-detail-value {
    color: #b76e79;
}

/* Theme 5: Modern Silver & Dark Blue */
.theme-silver-dark-blue, .lgcp-theme-silver-dark-blue {
    background-color: #1e3a8a;
}

.theme-silver-dark-blue .last-updated, .lgcp-theme-silver-dark-blue .lgcp-last-updated {
    color: #93c5fd;
}

.theme-silver-dark-blue .price-row, .lgcp-theme-silver-dark-blue .lgcp-price-row {
    border-color: #1d4ed8;
}

.theme-silver-dark-blue .detail-label, .lgcp-theme-silver-dark-blue .lgcp-detail-label {
    color: #bfdbfe;
}

.theme-silver-dark-blue .detail-value, .lgcp-theme-silver-dark-blue .lgcp-detail-value {
    color: #e5e7eb;
}

.theme-silver-dark-blue .total-price-row, .lgcp-theme-silver-dark-blue .lgcp-total-price-row {
    border-color: #2563eb;
}

.theme-silver-dark-blue .total-price-row .detail-label, .lgcp-theme-silver-dark-blue .lgcp-total-price-row .lgcp-detail-label {
    color: #dbeafe;
}

.theme-silver-dark-blue .total-price-row .detail-value, .lgcp-theme-silver-dark-blue .lgcp-total-price-row .lgcp-detail-value {
    color: #f9fafb;
}

/* Theme 6: Sleek Silver & White */
.theme-sleek-silver-white, .lgcp-theme-sleek-silver-white {
    background-color: #ffffff;
}

.theme-sleek-silver-white .last-updated, .lgcp-theme-sleek-silver-white .lgcp-last-updated {
    color: #6b7280;
}

.theme-sleek-silver-white .price-row, .lgcp-theme-sleek-silver-white .lgcp-price-row {
    border-color: #e5e7eb;
}

.theme-sleek-silver-white .detail-label, .lgcp-theme-sleek-silver-white .lgcp-detail-label {
    color: #4b5563;
}

.theme-sleek-silver-white .detail-value, .lgcp-theme-sleek-silver-white .lgcp-detail-value {
    color: #9ca3af;
}

.theme-sleek-silver-white .total-price-row, .lgcp-theme-sleek-silver-white .lgcp-total-price-row {
    border-color: #d1d5db;
}

.theme-sleek-silver-white .total-price-row .detail-label, .lgcp-theme-sleek-silver-white .lgcp-total-price-row .lgcp-detail-label {
    color: #1f2937;
}

.theme-sleek-silver-white .total-price-row .detail-value, .lgcp-theme-sleek-silver-white .lgcp-total-price-row .lgcp-detail-value {
    color: #757575;
}

/* Theme 7: Gradient Gold Background & Black Text */
.theme-gradient-gold-bg-black-text, .lgcp-theme-gradient-gold-bg-black-text {
    background: linear-gradient(135deg, #DAA520 0%, #FFEC8B 30%, #B8860B 60%, #CDAD00 100%);
}

.theme-gradient-gold-bg-black-text .last-updated, .lgcp-theme-gradient-gold-bg-black-text .lgcp-last-updated {
    color: #333333;
    opacity: 0.8;
}

.theme-gradient-gold-bg-black-text .price-row, .lgcp-theme-gradient-gold-bg-black-text .lgcp-price-row {
    border-color: #b8860b;
    border-opacity: 0.5;
}

.theme-gradient-gold-bg-black-text .detail-label, .lgcp-theme-gradient-gold-bg-black-text .lgcp-detail-label {
    color: #1a1a1a;
}

.theme-gradient-gold-bg-black-text .detail-value, .lgcp-theme-gradient-gold-bg-black-text .lgcp-detail-value {
    color: #000000;
}

.theme-gradient-gold-bg-black-text .total-price-row, .lgcp-theme-gradient-gold-bg-black-text .lgcp-total-price-row {
    border-color: #b8860b;
    border-opacity: 0.7;
}

.theme-gradient-gold-bg-black-text .total-price-row .detail-label, .lgcp-theme-gradient-gold-bg-black-text .lgcp-total-price-row .lgcp-detail-label {
    color: #000000;
}

.theme-gradient-gold-bg-black-text .total-price-row .detail-value, .lgcp-theme-gradient-gold-bg-black-text .lgcp-total-price-row .lgcp-detail-value {
    color: #000000;
}

/* Theme 8: Minimalist Light Gray & Gold */
.theme-minimalist-gray-gold, .lgcp-theme-minimalist-gray-gold {
    background-color: #f3f4f6;
}

.theme-minimalist-gray-gold .last-updated, .lgcp-theme-minimalist-gray-gold .lgcp-last-updated {
    color: #6b7280;
}

.theme-minimalist-gray-gold .price-row, .lgcp-theme-minimalist-gray-gold .lgcp-price-row {
    border-color: #d1d5db;
}

.theme-minimalist-gray-gold .detail-label, .lgcp-theme-minimalist-gray-gold .lgcp-detail-label {
    color: #4b5563;
}

.theme-minimalist-gray-gold .detail-value, .lgcp-theme-minimalist-gray-gold .lgcp-detail-value {
    color: #374151;
}

.theme-minimalist-gray-gold .total-price-row, .lgcp-theme-minimalist-gray-gold .lgcp-total-price-row {
    border-color: #9ca3af;
}

.theme-minimalist-gray-gold .total-price-row .detail-label, .lgcp-theme-minimalist-gray-gold .lgcp-total-price-row .lgcp-detail-label {
    color: #1f2937;
}

.theme-minimalist-gray-gold .total-price-row .detail-value, .lgcp-theme-minimalist-gray-gold .lgcp-total-price-row .lgcp-detail-value {
    color: #ca8a04;
}

/* Theme 9: Dark Teal & Champagne Gold */
.theme-dark-teal-champagne, .lgcp-theme-dark-teal-champagne {
    background-color: #0d5e59;
}

.theme-dark-teal-champagne .last-updated, .lgcp-theme-dark-teal-champagne .lgcp-last-updated {
    color: #a2d5d1;
}

.theme-dark-teal-champagne .price-row, .lgcp-theme-dark-teal-champagne .lgcp-price-row {
    border-color: #1e7e78;
}

.theme-dark-teal-champagne .detail-label, .lgcp-theme-dark-teal-champagne .lgcp-detail-label {
    color: #cce8e6;
}

.theme-dark-teal-champagne .detail-value, .lgcp-theme-dark-teal-champagne .lgcp-detail-value {
    color: #f1e5ac;
}

.theme-dark-teal-champagne .total-price-row, .lgcp-theme-dark-teal-champagne .lgcp-total-price-row {
    border-color: #3ba39c;
}

.theme-dark-teal-champagne .total-price-row .detail-label, .lgcp-theme-dark-teal-champagne .lgcp-total-price-row .lgcp-detail-label {
    color: #e6f5f3;
}

.theme-dark-teal-champagne .total-price-row .detail-value, .lgcp-theme-dark-teal-champagne .lgcp-total-price-row .lgcp-detail-value {
    color: #f1e5ac;
}

/* Theme 10: Royal Purple & Gold */
.theme-royal-purple-gold, .lgcp-theme-royal-purple-gold {
    background-color: #4c1d95;
}

.theme-royal-purple-gold .last-updated, .lgcp-theme-royal-purple-gold .lgcp-last-updated {
    color: #c4b5fd;
}

.theme-royal-purple-gold .price-row, .lgcp-theme-royal-purple-gold .lgcp-price-row {
    border-color: #5b21b6;
}

.theme-royal-purple-gold .detail-label, .lgcp-theme-royal-purple-gold .lgcp-detail-label {
    color: #ddd6fe;
}

.theme-royal-purple-gold .detail-value, .lgcp-theme-royal-purple-gold .lgcp-detail-value {
    color: #facc15;
}

.theme-royal-purple-gold .total-price-row, .lgcp-theme-royal-purple-gold .lgcp-total-price-row {
    border-color: #6d28d9;
}

.theme-royal-purple-gold .total-price-row .detail-label, .lgcp-theme-royal-purple-gold .lgcp-total-price-row .lgcp-detail-label {
    color: #ede9fe;
}

.theme-royal-purple-gold .total-price-row .detail-value, .lgcp-theme-royal-purple-gold .lgcp-total-price-row .lgcp-detail-value {
    color: #facc15;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lgcp-price-table-container {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .price-card, .lgcp-price-table {
        padding: 16px;
    }
    
    .price-row, .lgcp-price-row {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .total-price-row, .lgcp-total-price-row {
        font-size: 15px;
    }
}

/* Animation for live updates */
.lgcp-price-updating {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lgcp-price-updated {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
