/* أنماط إضافة تحديث الأسعار */

.wp-price-updater-gold,
.wp-price-updater-dollar,
.wp-price-updater-steel,
.wp-price-updater-cement {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wp-price-updater-gold:hover,
.wp-price-updater-dollar:hover,
.wp-price-updater-steel:hover,
.wp-price-updater-cement:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wp-price-updater-gold {
    border-left: 5px solid #FFD700;
}

.wp-price-updater-dollar {
    border-left: 5px solid #28a745;
}

.wp-price-updater-steel {
    border-left: 5px solid #6c757d;
}

.wp-price-updater-cement {
    border-left: 5px solid #17a2b8;
}

.gold-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2em;
}

.dollar-price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

.steel-price {
    color: #6c757d;
    font-weight: bold;
    font-size: 1.2em;
}

.cement-price {
    color: #17a2b8;
    font-weight: bold;
    font-size: 1.2em;
}

/* أنماط عرض جميع الأسعار */
.wp-price-updater-all-prices {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.wp-price-updater-all-prices h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.price-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.price-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.price-item.gold {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
}

.price-item.dollar {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.price-item.steel {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.price-item.cement {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #e6f7ff 0%, #cce7f0 100%);
}

.price-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.price-item span {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #007cba;
}

.price-item.gold span {
    color: #b8860b;
}

.price-item.dollar span {
    color: #155724;
}

.price-item.steel span {
    color: #495057;
}

.price-item.cement span {
    color: #0c5460;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* تنسيق متجاوب */
@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .price-item {
        padding: 15px;
    }
    
    .price-item span {
        font-size: 1.2em;
    }
    
    .wp-price-updater-all-prices h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-price-updater-all-prices {
        padding: 15px;
        margin: 10px 0;
    }
}

/* أنماط صفحة الإدارة */
.wp-price-updater-admin {
    max-width: 800px;
}

.wp-price-updater-admin .form-table th {
    width: 200px;
}

.wp-price-updater-admin .current-prices {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.wp-price-updater-admin .current-prices h3 {
    margin-top: 0;
    color: #23282d;
}

.wp-price-updater-admin .price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.wp-price-updater-admin .price-display:last-child {
    border-bottom: none;
}

.wp-price-updater-admin .price-label {
    font-weight: 600;
    color: #555;
}

.wp-price-updater-admin .price-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #007cba;
}

/* أنماط الإشعارات */
.wp-price-updater-notice {
    background: #fff;
    border-left: 4px solid #007cba;
    padding: 12px;
    margin: 15px 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.wp-price-updater-notice.success {
    border-left-color: #46b450;
}

.wp-price-updater-notice.error {
    border-left-color: #dc3232;
}

.wp-price-updater-notice.warning {
    border-left-color: #ffb900;
}

/* أنماط الأزرار */
.wp-price-updater-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.wp-price-updater-button:hover {
    background: #005a87;
}

.wp-price-updater-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* أنماط التحميل */
.wp-price-updater-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* أنماط الجداول */
.wp-price-updater-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wp-price-updater-table th,
.wp-price-updater-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.wp-price-updater-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.wp-price-updater-table tr:hover {
    background: #f8f9fa;
}

/* أنماط الرسوم البيانية (إذا تم إضافتها لاحقًا) */
.wp-price-updater-chart {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wp-price-updater-chart h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

/* أنماط الإحصائيات */
.wp-price-updater-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wp-price-updater-stat-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 4px solid #007cba;
}

.wp-price-updater-stat-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-price-updater-stat-item .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
    margin: 10px 0;
}

.wp-price-updater-stat-item .stat-change {
    font-size: 0.9em;
    color: #666;
}

.wp-price-updater-stat-item .stat-change.positive {
    color: #46b450;
}

.wp-price-updater-stat-item .stat-change.negative {
    color: #dc3232;
}

