/* ==========================================================================
   کارت آموز — آپلودکننده (پنل مدیریت + پروفایل کاربر)
   همهٔ انتخابگرهای آیکون با > محدود شده‌اند؛ درس دکمهٔ «مشاهدهٔ دوره».
   ========================================================================== */

.kt-upload {
    margin-top: 8px;
    border: 1.5px dashed #d9d4c7;
    border-radius: 14px;
    background: #fdfcf9;
    padding: 12px;
    transition: border-color .15s, background .15s;
}

.kt-upload.is-over {
    border-color: #b8860b;
    background: #fff8e6;
}

.kt-upload-drop {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b6250;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.8;
}

.kt-upload-drop:hover { background: #f6f1e4; }
.kt-upload-drop:disabled { cursor: progress; opacity: .6; }
.kt-upload-drop > i { font-size: 24px; color: #b8860b; flex: 0 0 auto; }
.kt-upload-drop b { color: #8a6508; }

.kt-upload-preview:empty { display: none; }

.kt-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #555;
}

.kt-upload-preview > img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e8f0;
    background: #fff;
    flex: 0 0 auto;
}

.kt-upload[data-target="avatar"] .kt-upload-preview > img,
.kt-upload[data-target="instructor"] .kt-upload-preview > img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.kt-upload[data-target="site"] .kt-upload-preview > img {
    object-fit: contain;
    background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 12px 12px;
}

.kt-upload-preview > i { font-size: 28px; color: #b8860b; flex: 0 0 auto; }
.kt-upload-preview-info { direction: rtl; word-break: break-all; }

.kt-upload-progress { margin-top: 10px; }

.kt-upload-bar {
    height: 10px;
    border-radius: 6px;
    background: #efe9da;
    overflow: hidden;
}

.kt-upload-bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #b8860b, #d9a441);
    transition: width .2s linear;
}

.kt-upload-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #6b6250;
}

.kt-upload-pct { font-size: 15px; color: #8a6508; min-width: 42px; }
.kt-upload-info { flex: 1 1 auto; }

.kt-upload-cancel {
    border: 1px solid #e3d9c2;
    background: #fff;
    border-radius: 8px;
    padding: 3px 10px;
    font: inherit;
    font-size: 12px;
    color: #9b2c2c;
    cursor: pointer;
}

.kt-upload-cancel > i { font-size: 13px; vertical-align: -2px; }

.kt-upload-msg:empty { display: none; }

.kt-upload-msg {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.9;
    padding: 7px 10px;
    border-radius: 8px;
}

.kt-upload-msg > i { font-size: 14px; vertical-align: -2px; }
.kt-upload-msg--ok { background: #ecfdf3; color: #1f7a45; }
.kt-upload-msg--warn { background: #fff8e1; color: #8a5a00; }
.kt-upload-msg--error { background: #fff1f1; color: #b42318; }

/* راهنمای اندازه زیر هر فیلد تصویر */
.kt-upload-guide {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #7a7263;
    line-height: 1.9;
}

.kt-upload-guide b { color: #5a4a20; }

@media (max-width: 480px) {
    .kt-upload-drop { flex-direction: column; gap: 4px; text-align: center; }
    .kt-upload-preview { flex-direction: column; align-items: flex-start; }
}

/* کارت عکس پروفایل در My/Profile.aspx */
.kt-profile-avatar-edit {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0ece2;
}

.kt-profile-avatar-label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.kt-profile-avatar-actions { margin-top: 10px; }
.kt-profile-avatar-actions .kt-avatar-remove { font-size: 13px; padding: 7px 14px; }
.kt-profile-avatar-actions .kt-avatar-remove > i { font-size: 15px; display: inline-block; margin: 0; }
