

#silver-calculator {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1); /* افکت شیشه‌ای */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#silver-calculator label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 16px;
}

#silver-calculator input[type="number"], 
#silver-calculator input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

#silver-calculator input[type="number"]:focus,
#silver-calculator input[type="text"]:focus {
    border-color: #e5518c;
    box-shadow: 0 0 8px rgba(229, 81, 140, 0.5);
}

#silver-calculator button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #e5518c, #ec76a6);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#silver-calculator button:hover {
    background: linear-gradient(135deg, #ff0066, #cc0052);
    transform: translateY(-2px);
}

#silver-price-result {
    font-size: 18px;
    color: #e5518c;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

/* استایل افکت شیشه‌ای برای اطلاعات قیمت */
#silver-price-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #ff77aa;
    transition: transform 0.3s ease-in-out;
}

#silver-price-info:hover {
    transform: scale(1.05);
}

#silver-price-info p {
    margin: 5px 0;
    font-size: 18px;
    font-weight: bold;
}

#silver-price-info .highlight {
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, #ff4d94, #ff99cc);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* استایل رادیو باتن خرید و فروش نقره */
.radio-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.radio-container label {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.radio-container label:hover {
    background: rgba(255, 255, 255, 0.2);
}

.radio-container input[type="radio"] {
    display: none;
}

.radio-container input[type="radio"]:checked + span {
    background: linear-gradient(135deg, #ff4d94, #ff99cc);
    color: #fff;
    border: 2px solid #ff4d94;
    box-shadow: 0 0 15px rgba(255, 77, 148, 0.8);
    transform: scale(1.05);
}

/* استایل پیام فروش نقره */
#sell-message {
    display: none;
    text-align: center;
    font-weight: bold;
    color: red;
    background: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}

/* نمایش فرم خرید یا پیام فروش بر اساس انتخاب */
#silver-form[data-transaction="sell"] #sell-message {
    display: block;
}

#silver-form[data-transaction="sell"] #silver-weight,
#silver-form[data-transaction="sell"] #calculate-price,
#silver-form[data-transaction="sell"] #submit-order,
#silver-form[data-transaction="sell"] #silver-price-result {
    display: none;
}





