/* ============================================================
   FRAME TOOL PANEL — Bozro Studio Photo Editor
   ============================================================ */

/* Sticky Header: সব বাটন এবং ক্যাটাগরি উপরে ফিক্সড থাকবে */
.frame-sticky-header {
    position: sticky;
    top: -16px; /* tool-panel এর padding অ্যাডজাস্ট করার জন্য */
    background: #101522;
    z-index: 20;
    margin: -16px -16px 14px -16px; /* প্যানেলের প্যাডিং ওভাররাইড করে পুরো প্রস্থ জুড়ে দেখাবে */
    padding: 16px 16px 10px 16px;
    border-bottom: 1px solid #1e2738;
}

.frame-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
}

.header-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.header-tab-btn {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 8.5px;
    font-weight: 800;
    cursor: pointer;
    padding: 6px 1px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.header-tab-btn.active {
    background: #2a1040;
    color: #f472b6;
    border-color: #ec4899;
}

.add-frame-btn {
    background: transparent;
    border: 1px solid #ec4899;
    color: #ec4899;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.add-frame-btn:hover {
    background: rgba(236, 72, 153, 0.1);
}

/* Category Grid */
.frame-categories-container {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: none;
}
.frame-categories-container::-webkit-scrollbar { display: none; }

.frame-categories-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.frame-category-chip {
    padding: 8px 6px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #182131;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frame-category-chip.active {
    background: #2a1040;
    border-color: #ec4899;
    color: #f472b6;
}

/* Frame Grid */
.frame-grid-container {
    flex: 1;
}

.frame-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.frame-item {
    aspect-ratio: 1;
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(24, 33, 49, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.frame-item img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* Star Icon Fix */
.frame-star {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    cursor: pointer;
    z-index: 5;
}

.frame-star.active i,
.frame-star i.fas.fa-star {
    color: #fbbf24 !important;
}

.frame-star:hover {
    transform: scale(1.1);
}

.resize-close-button {
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding-left: 8px;
    line-height: 1;
}
