@import url('https://cdn.jsdelivr.net/gh/rastikerdar/peyda-font@v1.0.0/dist/Peyda-FD.css');

/* ─── Wrapper ─── */
#ytc-wrapper {
    max-width: 780px !important;
    margin: 30px auto !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 30px rgba(21, 142, 150, 0.15) !important;
    overflow: hidden !important;
    direction: rtl !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

/* ─── Header ─── */
#ytc-header {
    background: linear-gradient(135deg, #158e96, #0d6b72) !important;
    padding: 0 !important;
    margin: 0 !important;
}

#ytc-header h2 {
    color: #ffffff !important;
    text-align: center !important;
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    padding: 50px 24px !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

/* ─── Body ─── */
#ytc-body {
    padding: 28px 32px !important;
}

/* ─── Field ─── */
.ytc-field {
    margin-bottom: 28px !important;
}

.ytc-label {
    display: block !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin-bottom: 12px !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

/* ─── Slider Box ─── */
.ytc-slider-box {
    background: #f5fafb !important;
    border: 2px solid #d0eaec !important;
    border-radius: 14px !important;
    padding: 20px !important;
}

/* ─── Slider ─── */
#ytc-views {
    -webkit-appearance: none !important;
    width: 100% !important;
    height: 8px !important;
    border-radius: 10px !important;
    background: linear-gradient(to left, #dacc09, #158e96) !important;
    outline: none !important;
    cursor: pointer !important;
    display: block !important;
    border: none !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#ytc-views::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3px solid #158e96 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(21, 142, 150, 0.4) !important;
    transition: transform 0.2s !important;
}

#ytc-views::-webkit-slider-thumb:hover {
    transform: scale(1.3) !important;
}

#ytc-views::-moz-range-thumb {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3px solid #158e96 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(21, 142, 150, 0.4) !important;
}

/* ─── Slider Labels ─── */
.ytc-slider-labels {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.78rem !important;
    color: #888 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
}

/* ─── Views Value ─── */
.ytc-views-value {
    text-align: center !important;
    margin-top: 8px !important;
}

#ytc-views-num {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #158e96 !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

.ytc-unit {
    font-size: 1rem !important;
    color: #888 !important;
    margin-right: 6px !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

/* ─── Select ─── */
#ytc-rate {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
    color: #1a1a2e !important;
    background: #ffffff !important;
    border: 2px solid #d0eaec !important;
    border-radius: 10px !important;
    outline: none !important;
    cursor: pointer !important;
    direction: rtl !important;
    transition: border-color 0.3s !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
}

#ytc-rate:focus {
    border-color: #158e96 !important;
    box-shadow: 0 0 0 3px rgba(21, 142, 150, 0.12) !important;
}

/* ─── Results ─── */
#ytc-results {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    margin: 28px 0 !important;
}

.ytc-result-card {
    background: linear-gradient(145deg, #f5fafb, #e8f5f6) !important;
    border: 2px solid #c8e6e8 !important;
    border-radius: 14px !important;
    padding: 20px 14px !important;
    text-align: center !important;
    transition: transform 0.25s, box-shadow 0.25s !important;
}

.ytc-result-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 24px rgba(21, 142, 150, 0.18) !important;
    border-color: #158e96 !important;
}

.ytc-result-label {
    display: block !important;
    font-size: 0.88rem !important;
    color: #555 !important;
    margin-bottom: 10px !important;
    font-weight: 500 !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

.ytc-result-value {
    display: block !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: #158e96 !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

/* ─── Chart ─── */
#ytc-chart-box {
    background: #f5fafb !important;
    border: 2px solid #d0eaec !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-top: 10px !important;
}

.ytc-chart-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    text-align: center !important;
    margin-bottom: 16px !important;
    font-family: 'Peyda', Tahoma, sans-serif !important;
}

#ytc-chart {
    display: block !important;
    width: 100% !important;
    max-height: 280px !important;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    #ytc-body {
        padding: 18px 16px !important;
    }

    #ytc-header h2 {
        font-size: 1.3rem !important;
        padding: 30px 16px !important;
    }

    #ytc-results {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .ytc-result-value {
        font-size: 1.4rem !important;
    }
}
