@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

.fx-risk-calculator {
    font-family: 'Vazirmatn', sans-serif;
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 15px;
    direction: rtl;
    text-align: right;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
    border: 1px solid #eee;
}

.fx-risk-calculator.dark-mode {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.fx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fx-header h3 { margin: 0; font-size: 1.4rem; }

#fx-theme-toggle {
    background: none;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 1.2rem;
}

.fx-field { margin-bottom: 15px; }

.fx-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.fx-field input, .fx-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    box-sizing: border-box;
    font-size: 1rem;
}

.dark-mode input, .dark-mode select {
    background: #2d2d2d;
    color: #fff;
    border-color: #444;
}

#fx-calculate-btn {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#fx-calculate-btn:hover { background: #0056b3; }

.fx-result {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px dashed #eee;
}

.dark-mode .fx-result { border-color: #444; }

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-item strong { color: #28a745; font-size: 1.3rem; }
