//dge-widgets.css
.dge-chart-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: Tahoma, sans-serif;
}

.dge-chart-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.time-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btnn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: Tahoma;
    transition: all 0.3s;
}

.btnn:hover {
    background: #f0f0f0;
}

.btnn.active {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
    font-weight: bold;
}

#chart {
    width: 100%;
    min-height: 350px;
}

.loading {
    text-align: center;
    color: #666;
    margin-top: 10px;
    display: none;
}

/* ==========================================
   🆕 استایل‌های اختصاصی ماژول محاسبه‌گر سریع طلا
   ========================================== */
.gold-calculator-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 550px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.calc-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    font-weight: bold;
}

.calc-input-group {
    margin-bottom: 15px;
}

.calc-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.calc-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.calc-input-group input:focus {
    border-color: #d4af37;
}

.calc-unit-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 5px 0;
}

.unit-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.unit-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.unit-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #a4872b;
    cursor: pointer;
    margin: 0;
}

.unit-text {
    font-size: 14px;
    color: #444;
}

.unit-option input[type="radio"]:checked+.unit-text {
    color: #d4af37;
    font-weight: 600;
}

.calc-results {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
    align-items: center;
}

.calc-item:last-child {
    margin-bottom: 0;
}

.calc-item strong {
    color: #333;
    font-weight: bold;
}

.total-price {
    font-size: 20px;
    color: #d4af37 !important;
}

.calc-status {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.b1-home {
    color: black !important;
    background: #ffd700;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.b1-home:hover {
    background: #e6c200;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}