﻿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 {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding-top: 70px;
}




.image-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.add-image span {
    font-size: 24px;
    color: #999;
}

.file-input {
    display: none;
}

.fixed-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.fixed-size-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.375rem; /* برای زیبایی */
}



/* Thumbnail (تصویر کوچک) */
.thumbnail-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Image in modal (تصویر بزرگ در مودال) */
.modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    margin: 0 4px;
    border: none;
    transition: opacity 0.3s, transform 0.3s;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #0d6efd; /* رنگ دایره فعال (مثلاً آبی بوت‌استرپ) */
    transform: scale(1.2); /* دایره فعال کمی بزرگ‌تر نمایش داده شود */
}

.image-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

    .image-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
.card-link {
    text-decoration: none;
    color: inherit;
}
.small-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

    .small-preview:hover {
        border: 2px solid #0d6efd;
    }

.main-preview {
    border: 3px solid #999;
    transition: all 0.3s;
}

.custom-divider {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
