﻿.status-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 0.35rem;
    font-weight: 500;
    color: white;
}

.status-draft {
    background-color: gray;
}

.status-pending {
    background-color: orange;
}

.status-active {
    background-color: green;
}

.status-rejected {
    background-color: red;
}

.status-sold {
    background-color: blue;
}

.status-rented {
    background-color: purple;
}

.status-share {
    background-color: teal;
}

.upload-square {
    margin-top:20px;
    width: 140px;
    height: 140px;
    border: 2px dashed #bbb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    background: #fafafa;
}

    .upload-square:hover {
        border-color: #4caf50;
        background: #f0fff0;
    }

.plus-icon {
    font-size: 48px;
    color: #777;
    font-weight: bold;
    line-height: 1;
}


.card-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    background: linear-gradient(to right, rgba(128, 128, 128, 0.5), rgba(192, 192, 192, 0.5));
}

    .card-link-footer:hover {
        background: linear-gradient(to right, rgba(128, 128, 128, 0.7), rgba(192, 192, 192, 0.7));
    }

.card-body-footer {
    padding: 1.5rem;
    text-align: center;
}

.card-icon-footer {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.card-title-footer {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* MAIN CARD */
.custom-main-card {
    border: none;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,.06), 0 2px 10px rgba(0,0,0,.04);
}

/* HEADER */
.custom-header {
    border-radius: 22px 22px 0 0;
    border: none;
    padding: 26px 30px;
    background: linear-gradient( 135deg, #2563eb, #4f46e5, #7c3aed );
    position: relative;
    overflow: hidden;
}

    /* subtle pattern */
    .custom-header::after {
        content: "";
        position: absolute;
        right: -50px;
        top: -50px;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,.08);
        border-radius: 50%;
    }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 13px;
    opacity: .85;
    margin-top: 4px;
}

.header-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* SECTION */
.section-title {
    font-weight: 700;
    margin-bottom: 25px;
}

/* INFO BOX */
.info-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    transition: all .25s ease;
}

    .info-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 35px rgba(0,0,0,.08);
    }

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    font-size: 20px;
}

.info-title {
    font-size: 13px;
    color: #6b7280;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

/* STATUS PANEL */
.status-panel {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #eef2f7;
    box-shadow: 0 6px 25px rgba(0,0,0,.05);
}

.status-header {
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* MODERN BUTTON */
.modern-btn {
    padding: 10px 26px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(34,197,94,.25);
    transition: all .25s;
}

    .modern-btn:hover {
        transform: translateY(-2px);
    }


.edit-modern-btn {
    border: none;
    border-radius: 14px;
    padding: 12px 26px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: linear-gradient( 135deg, #3b82f6, #6366f1 );
    box-shadow: 0 8px 22px rgba(59,130,246,.35);
    transition: all .25s ease;
}

    /* Hover */
    .edit-modern-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 35px rgba(59,130,246,.45);
        color:white;
    }

    /* Click */
    .edit-modern-btn:active {
        transform: translateY(-1px);
    }
/* فرم اصلی */
.share-form-panel {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eef2f7;
    box-shadow: 0 6px 22px rgba(0,0,0,.05);
}

/* Select مدرن */
.modern-select {
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    transition: all .2s;
}

    .modern-select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    }

/* Divider */
.form-divider {
    height: 1px;
    background: linear-gradient( to right, transparent, #e5e7eb, transparent );
    margin: 28px 0;
}

/* دکمه تغییر وضعیت */
.status-modern-btn {
    border-radius: 12px;
    padding: 11px 22px;
    font-weight: 600;
    border: none;
    color: white;
    background: linear-gradient( 135deg, #22c55e, #16a34a );
    box-shadow: 0 6px 18px rgba(34,197,94,.30);
    transition: all .25s;
}

    .status-modern-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(34,197,94,.40);
    }


.sweet-alert h2 {
    font-family: var(--bs-body-font-family) !important;
}
.sweet-alert p {
    font-family: "irsans", irsans, sans-serif !important;
}

.sweet-alert button.cancel {
    font-family: "irsans", irsans, sans-serif !important;
}

.sweet-alert button.confirm {
    font-family: "irsans", irsans, sans-serif !important;
}


/*product-image-gallery---------------------------------*/
/* کانتینر اصلی تصاویر */
.product-image-grid {
    display: grid; /* استفاده از CSS Grid برای چیدمان */
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* ستون‌های خودکار با حداقل عرض 120px */
    gap: 15px; /* فاصله بین آیتم‌ها */
    margin-top: 20px; /* کمی فاصله از بالای صفحه */
    margin-bottom: 20px;
    padding: 10px;
    max-width: 100%; /* اطمینان از اینکه از عرض والد خود فراتر نمی‌رود */
    box-sizing: border-box;
}

/* استایل برای هر آیتم تصویر (کارت) */
.image-card {
    position: relative;
    display: flex; /* برای مدیریت بهتر محتوا در داخل کارت */
    flex-direction: column; /* محتوا به صورت عمودی چیده شود */
    align-items: center; /* وسط‌چین کردن محتوا */
    border-radius: 12px; /* گوشه‌های گردتر */
    overflow: hidden; /* اطمینان از اینکه محتوا از گوشه‌های گرد بیرون نزند */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* سایه ملایم‌تر */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff; /* پس‌زمینه سفید برای کارت */
    cursor: pointer; /* نشانگر ماوس به صورت pointer */
    border: 1px solid #e0e0e0; /* حاشیه نازک و خاکستری */
}

    .image-card:hover {
        transform: translateY(-5px); /* کمی بالا رفتن کارت هنگام هاور */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* سایه قوی‌تر هنگام هاور */
    }

    .image-card img {
        width: 100%; /* تصویر عرض کارت را بگیرد */
        height: 150px; /* ارتفاع ثابت برای تصاویر */
        object-fit: cover; /* پوشش دادن ناحیه تعیین شده بدون تغییر نسبت ابعاد */
        border-radius: 0; /* حذف شعاع گوشه برای تصویر */
    }

    /* استایل برای وضعیت کاور (پیش‌فرض) */
    .image-card.is-cover {
        border: 3px solid #4caf50; /* حاشیه سبز برای کاور */
        box-shadow: 0 0 0 3px #4caf50, 0 8px 25px rgba(0, 0, 0, 0.15); /* اضافه کردن سایه سبز */
    }

        .image-card.is-cover .cover-indicator {
            position: absolute;
            top: 8px;
            left: 8px;
            background-color: rgba(76, 175, 80, 0.8); /* سبز نیمه‌شفاف */
            color: white;
            padding: 4px 8px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: bold;
            z-index: 10;
        }

/* استایل برای دکمه‌های اکشن (حذف و پیش‌فرض) */
.card-actions {
    display: flex;
    justify-content: space-between; /* قرار دادن دکمه‌ها در دو طرف */
    align-items: center;
    padding: 10px;
    width: 100%;
    background-color: #f8f9fa; /* پس‌زمینه کمی تیره‌تر برای ناحیه اکشن */
    border-top: 1px solid #eee;
}

/* استایل دکمه حذف */
.delete-icon {
    background-color: #e74c3c; /* قرمز */
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-left: auto; /* برای اینکه به سمت راست برود */
}

    .delete-icon:hover {
        background-color: #c0392b; /* قرمز تیره‌تر */
    }

/* استایل دکمه انتخاب پیش‌فرض */
.set-default-button {
    background-color: #ffc107; /* زرد */
    color: #333;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none; /* حذف حاشیه پیش‌فرض */
}

    .set-default-button:hover {
        background-color: #e0a800; /* زرد تیره‌تر */
    }

/* استایل برای متن "رکوردی یافت نشد" */
.no-records {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    font-size: 1.1em;
}


/*product-image-gallery---------------------------------*/


/* استایل‌های پایه */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa; /* رنگ پس‌زمینه روشن‌تر */
    padding: 5px;
    direction: rtl; /* برای زبان فارسی */
    text-align: right;
}

/* فیلدهای ورودی */
.product-input-fields {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 650px; /* کمی عریض‌تر */
    border: 1px solid #e0e0e0;
}

    .product-input-fields label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #3c4043;
    }

    .product-input-fields input[type="text"],
    .product-input-fields textarea {
        width: calc(100% - 20px);
        padding: 12px;
        margin-bottom: 15px;
        border: 1px solid #dadce0;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 15px;
        direction: rtl; /* برای ورودی فارسی */
    }

    .product-input-fields textarea {
        min-height: 90px;
        resize: vertical;
    }

/* شبیه‌ساز پیش‌نمایش گوگل */
/* General Styles */
 

.search-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    direction:ltr;
    text-align:left;
}

h2 {
    color: #3c4043;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Google Search Preview Styles */
.google-search-preview {
    margin-bottom: 20px;
}

.result-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

    .result-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.top-info {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.url-display {
    color: #202124; /* Darker color for URL, similar to breadcrumbs */
    font-size: 14px;
    font-style: normal;
    margin-left: 8px; /* Space between URL and favicon (if used) */
    display: inline-block; /* Changed from block */
    text-align: left; /* URL usually left-aligned */
    direction: ltr;
    unicode-bidi: bidi-override;
    max-width: calc(100% - 50px); /* Leave space for favicon */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favicon { /* Placeholder for favicon */
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* Example: background-image: url('path/to/favicon.png'); */
    vertical-align: middle;
    margin-left: 8px;
}

.title {
    font-size: 20px;
    font-weight: normal;
    color: #1a0dab; /* Google blue */
    margin: 0 0 6px 0;
    line-height: 1.3;
    cursor: pointer; /* Makes it feel clickable */
}

    .title:hover {
        text-decoration: underline;
    }

.description {
    font-size: 14px;
    color: #4d5156; /* Google gray */
    line-height: 1.6;
    margin: 0;
    max-height: 75px; /* Limited height */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input Area Styles */
.input-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.input-group {
    margin-bottom: 15px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #3c4043;
        font-size: 14px;
    }

    .input-group input[type="text"],
    .input-group textarea {
        width: calc(100% - 20px); /* Adjusting for padding */
        padding: 12px 10px;
        border: 1px solid #dadce0;
        border-radius: 4px;
        font-size: 15px;
        box-sizing: border-box;
        direction: rtl;
        font-family: 'Arial', sans-serif; /* Ensure consistent font */
    }

    .input-group textarea {
        min-height: 80px;
        resize: vertical;
    }

.char-count {
    display: block;
    font-size: 12px;
    color: #70757a;
    text-align: left; /* Character count is usually right-aligned */
    margin-top: 4px;
}

/* Responsive Adjustments */
@media (max-width: 650px) {
    .search-container {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    .title {
        font-size: 18px;
    }

    .description, .url-display {
        font-size: 13px;
    }

    .url-display {
        text-align: right; /* URLs become right-aligned in RTL on small screens */
        direction: rtl;
        max-width: 100%;
        white-space: normal; /* Allow wrapping */
    }

    .char-count {
        text-align: right; /* Align character count to the right */
    }
}
