﻿/* --- E:\luxamie.com\api.luxamie.com\API\wwwroot\css\site.css --- */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* --- Cropper minimal styles --- */
.crop-wrap {
    display: grid;
    gap: .5rem;
}

.crop-area {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .crop-area img {
        max-width: 100%;
        display: none; /* بعد از انتخاب فایل، نمایش داده می‌شود */
    }

.crop-placeholder {
    color: #6c757d;
    font-size: .9rem;
}

.crop-preview {
    width: 100%;
    max-width: 320px;
    border: 1px dashed #ced4da;
    background: #fff;
}

.crop-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
/* ==== Image Cropper (vanilla) ==== */
.cropper-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

    .cropper-wrap img {
        display: block;
        max-width: 100%;
        height: auto;
    }

.crop-ovl {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
    pointer-events: none;
}

.crop-box {
    position: absolute;
    border: 2px solid #22c55e; /* سبز ملایم */
    box-shadow: 0 0 0 9999px rgba(0,0,0,.35); /* سایه‌ی اطراف */
    cursor: move;
}

.crop-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: auto;
}

    /* گوشه‌ها */
    .crop-handle.nw {
        top: -6px;
        left: -6px;
        cursor: nwse-resize;
    }

    .crop-handle.ne {
        top: -6px;
        right: -6px;
        cursor: nesw-resize;
    }

    .crop-handle.sw {
        bottom: -6px;
        left: -6px;
        cursor: nesw-resize;
    }

    .crop-handle.se {
        bottom: -6px;
        right: -6px;
        cursor: nwse-resize;
    }

/* نمایش بندانگشتی مربعی در لیست‌ها */
img.thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* UI کوچک */
.cropbar {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .5rem;
}

    .cropbar .btn-sm {
        font-size: .875rem;
        padding: .35rem .6rem;
        border-radius: .5rem;
        border: 1px solid #d1d5db;
        background: #fff;
    }

        .cropbar .btn-sm.primary {
            border-color: #2563eb;
            color: #fff;
            background: #2563eb;
        }

    .cropbar .hint {
        color: #6b7280;
        font-size: .85rem;
    }
