.gold-prices-table {
    /* خصائص الأسلوب لجدول أسعار الذهب */
    border-collapse: separate;
    border-spacing: 0;
    width: 80%;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    display: <?php echo get_option('hide_gold_table') ? 'none' : 'table'; ?>;
}

.gold-prices-table th, .gold-prices-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #CCCCCC;
}

.gold-prices-table th {
    background-color: #4A235A;
    color: white;
}

.gold-prices-table tr:last-child td {
    border-bottom: none;
}

.gold-bars-table {
    /* خصائص الأسلوب لجدول أسعار سبائك الذهب */
    border-collapse: separate;
    border-spacing: 0;
    width: 80%;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    display: <?php echo get_option('hide_bars_table') ? 'none' : 'table'; ?>;
}

.gold-bars-table th, .gold-bars-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #E0E0E0;
}

.gold-bars-table th {
    background-color: #145A32;
    color: white;
}

.gold-bars-table tr:last-child td {
    border-bottom: none;
}

@media only screen and (max-width: 600px) {
    .gold-prices-table, .gold-bars-table {
        width: 100%;
    }
    
    .gold-prices-table th, .gold-prices-table td, .gold-bars-table th, .gold-bars-table td {
        padding: 8px;
    }
}


/* تنسيق عام لأسعار الذهب */


.gold-price {
  
    padding: 15px;
    margin-bottom: 15px; /* هامش بين العناوين والنصوص */
    border-radius: 5px; /* تقريب الحواف قليلاً */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05); /* ظل خفيف للعمق */
}

/* تنسيق العناوين */
.gold-price h3 {
    background-color: #f0f0f0;
    color: #333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}
/* تنسيق النصوص للأسعار */
.gold-price p {
    margin: 0;
    padding: 5px 0; /* مسافة داخلية للنصوص */
    border-bottom: 1px solid #eaeaea; /* خط فاصل بين النصوص */
    font-weight: 500;
}

/* لا خط فاصل لآخر نص في كل قسم */
.gold-price p:last-child {
    border-bottom: none;
}




/* تنسيق الجدول */
.gold-prices-table-history {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

/* تنسيق عناوين الأعمدة */
.gold-prices-table-history th {
    background-color: #f2f2f2;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

/* تنسيق البيانات في الجدول */
.gold-prices-table-history td {
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
}

/* تنسيق ألوان الصفوف المتناوبة (اختياري) */
.gold-prices-table-history tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}



/* تصميم للعنصر الذي يحتوي على التاريخ والتوقيت */
.last-updated {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f0f0f0; /* لون خلفية فاتح */
    border: 1px solid #ddd; /* حدود خفيفة */
    padding: 10px;
    border-radius: 5px; /* تقريب الحواف قليلاً */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05); /* ظل خفيف للعمق */
}

/* تنسيق النص داخل العنصر */
.last-updated time {
    color: #333;
    font-weight: bold;
}

/* إزالة التحتية من الروابط داخل النص */
.last-updated time a {
    text-decoration: none;
}


/* سعر الاوقية اليوم والامس */
/* Container Style */
.gold-prices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Individual Gold Price Box Style */
.gold-price-box {
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    border: 1px solid #e6e6e6;
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    flex-basis: 300px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gold-price-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Title Style */
.gold-price-box h4 {
    color: #b08d57;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* Price Display Style */
.gold-price-box .price-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    padding: 5px 0;
}

/* Separator Style */
.gold-price-box .price-value::after {
    content: '';
    flex: 1;
    margin: 0 10px;
    height: 1px;
    background: #ccc;
}

/* Price Change Style */
.gold-price-box .price-change {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.price-arrow.up {
    color: #2f855a; /* Green for increase */
}

.price-arrow.down {
    color: #c53030; /* Red for decrease */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gold-price-box {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .gold-price-box {
        flex-basis: 100%;
    }
}






/* تنسيق الحاوية التي تحتوي على الرسم البياني */
#goldPriceChartContainer {
    width: 80%; /* تعديل العرض حسب الحاجة */
    max-width: 800px; /* أقصى عرض للرسم البياني */
    margin: auto; /* توسيط الرسم البياني */
    padding: 20px;
    background-color: #f5f5f5; /* لون خلفية الحاوية */
    border-radius: 10px; /* الزوايا المدورة للحاوية */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف للحاوية */
}

/* تنسيق عنصر الرسم البياني نفسه */
#goldPriceChart {
    height: 400px; /* ارتفاع الرسم البياني */
}

/* Style for the gold prices list container */
.gold-prices-list {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Style for each gold price item */
.gold-price {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gold-price h3 {
    color: #d4af37; /* Gold color */
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

/* Style for the unordered list */
.gold-price ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Style for list items */
.gold-price li {
    background: #f2f2f2;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gold-price li:last-child {
    margin-bottom: 0;
}

/* Hover effect */
.gold-price li:hover {
    background: #eaeaea;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
