@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   FRESH Manager — Admin Panel CSS
   RTL, Light Theme, Premium UI
   ========================================================================== */

/* ==========================================================================
   1. SIDEBAR LAYOUT
   ========================================================================== */

.freshm-admin-layout {
    display: flex;
    min-height: calc(100vh - 32px);
}

.freshm-sidebar {
    position: fixed;
    top: 32px;
    right: 0;
    bottom: 0;
    width: 240px;
    background: #1a1a1a;
    color: #a0a0a0;
    overflow-y: auto;
    z-index: 100;
    padding: 1.5rem 0;
    font-family: 'Heebo', sans-serif;
    direction: rtl;
}

.freshm-sidebar-logo {
    padding: 0 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.freshm-sidebar-logo .fm-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #c8a84e, #e8d282);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 6px;
    flex-shrink: 0;
}
.freshm-sidebar-logo .fm-logo-text {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.freshm-sidebar-logo .fm-logo-text span {
    color: #c8a84e;
}

.freshm-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.freshm-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1.5rem;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    font-family: 'Heebo', sans-serif;
}
.freshm-sidebar-nav li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.freshm-sidebar-nav li a.active {
    color: #c8a84e;
    background: rgba(200, 168, 78, 0.08);
    border-right-color: #c8a84e;
    font-weight: 600;
}
.freshm-sidebar-nav li a .fm-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}
.freshm-sidebar-nav li a.active .fm-nav-icon {
    opacity: 1;
    color: #c8a84e;
}

.freshm-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.8rem 1.5rem;
}

.freshm-content {
    margin-right: 240px;
    flex: 1;
    padding: 1.5rem 2rem;
    background: #f8f7f5;
    min-height: calc(100vh - 32px);
}

/* Sub-navigation tabs inside content area */
.fm-sub-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8e4de;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 8px 8px 0 0;
    padding: 0 0.5rem;
}
.fm-sub-nav button {
    padding: 0.6rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #7a7568;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
    font-family: 'Heebo', sans-serif;
}
.fm-sub-nav button.active {
    color: #c8a84e;
    border-bottom-color: #c8a84e;
    font-weight: 600;
}
.fm-sub-nav button:hover {
    color: #2d2a26;
}

/* Override wrap when inside sidebar layout */
.freshm-content .freshm-wrap {
    max-width: none;
    margin: 0;
}

/* Header inside sidebar layout */
.freshm-content .freshm-header {
    background: #fff;
    border: 1px solid #e8e4de;
    border-bottom: 2px solid #c8a84e;
    border-radius: 8px 8px 0 0;
    padding: 1.2rem 1.5rem;
}
.freshm-content .freshm-header h1 {
    color: #2d2a26;
    font-size: 1.3rem;
}

/* Form inside sidebar layout */
.freshm-content .freshm-wrap form {
    border-radius: 0 0 8px 8px;
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */

.freshm-wrap {
    max-width: 1100px;
    margin: 20px auto;
    direction: rtl;
    font-family: 'Heebo', sans-serif;
    color: #2d2a26;
}


/* ==========================================================================
   3. HEADER
   ========================================================================== */

.freshm-header {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e8e4de;
    border-bottom: 2px solid #c8a84e;
}
.freshm-header h1 {
    color: #2d2a26;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.freshm-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #c8a84e, #e8d282);
    color: #0a0a0c;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 8px;
}


/* ==========================================================================
   4. SUCCESS / INFO NOTICES
   ========================================================================== */

.freshm-notice {
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
}
.freshm-notice-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-top: 0;
    color: #059669;
}


/* ==========================================================================
   5. FORM CONTAINER
   ========================================================================== */

.freshm-wrap form {
    background: #fff;
    border: 1px solid #e8e4de;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 0;
}


/* ==========================================================================
   6. TABS
   ========================================================================== */

.freshm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e8e4de;
    background: #fafaf8;
    padding: 0.5rem 1rem 0;
    overflow-x: auto;
}
.freshm-tab {
    padding: 0.7rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #7a7568;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Heebo', sans-serif;
}
.freshm-tab:hover {
    color: #2d2a26;
    background: rgba(200, 168, 78, 0.05);
}
.freshm-tab.active {
    color: #c8a84e;
    border-bottom-color: #c8a84e;
    font-weight: 600;
}


/* ==========================================================================
   7. TAB CONTENT
   ========================================================================== */

.freshm-tab-content {
    display: none;
    padding: 2rem;
    background: #fff;
}
.freshm-tab-content.active {
    display: block;
}


/* ==========================================================================
   8. SECTION TITLES
   ========================================================================== */

.freshm-section-title {
    margin: 2rem 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e8e4de;
}
.freshm-section-title:first-child {
    margin-top: 0;
}
.freshm-section-title h2 {
    font-size: 1.1rem;
    color: #2d2a26;
    margin: 0;
    font-weight: 700;
}
.freshm-section-title p {
    color: #7a7568;
    font-size: 0.85rem;
    margin: 0.3rem 0 0;
}


/* ==========================================================================
   9. GRID LAYOUT
   ========================================================================== */

.freshm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}


/* ==========================================================================
   10. FIELDS
   ========================================================================== */

.freshm-field {
    margin-bottom: 1.2rem;
}
.freshm-field-wide {
    grid-column: 1 / -1;
}
.freshm-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d2a26;
    margin-bottom: 0.4rem;
}
.freshm-field input[type="text"],
.freshm-field input[type="url"],
.freshm-field input[type="email"],
.freshm-field input[type="number"],
.freshm-field textarea,
.freshm-field select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd8d0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fafaf8;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: rtl;
    font-family: 'Heebo', sans-serif;
}
.freshm-field input:focus,
.freshm-field textarea:focus,
.freshm-field select:focus {
    border-color: #c8a84e;
    box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.15);
    outline: none;
    background: #fff;
}
.freshm-field input[type="url"] {
    direction: ltr;
    text-align: left;
}

/* Checkbox Field */
.freshm-field-checkbox {
    display: flex;
    align-items: center;
    padding-top: 0.3rem;
}
.freshm-field-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    color: #7a7568;
}
.freshm-field-checkbox input[type="checkbox"] {
    width: auto;
    accent-color: #c8a84e;
}


/* ==========================================================================
   11. CODE INJECTION (KEEP DARK)
   ========================================================================== */

.code-injection-field {
    background: #1a1a2e !important;
    color: #00ff88 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    direction: ltr !important;
    text-align: left !important;
    min-height: 150px;
    width: 100%;
    padding: 12px !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    border-radius: 8px !important;
    resize: vertical;
}
.code-injection-field:focus {
    border-color: #c8a84e !important;
    box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.15) !important;
}


/* ==========================================================================
   12. IMAGE FIELD
   ========================================================================== */

.freshm-image-field {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.freshm-image-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #fafaf8;
    border: 2px dashed #ddd8d0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.freshm-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.freshm-image-preview:has(img) {
    border-style: solid;
    border-color: #c8a84e;
}


/* ==========================================================================
   13. BUTTONS
   ========================================================================== */

.freshm-btn {
    padding: 0.45rem 0.9rem;
    border: 1px solid #ddd8d0;
    border-radius: 6px;
    background: #fff;
    color: #2d2a26;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Heebo', sans-serif;
}
.freshm-btn:hover {
    background: #f8f7f5;
    border-color: #c8a84e;
    color: #2d2a26;
}


/* ==========================================================================
   14. SAVE BAR
   ========================================================================== */

.freshm-save-bar {
    padding: 1.2rem 2rem;
    background: #fff;
    border-top: 1px solid #e8e4de;
    text-align: left;
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-radius: 0 0 8px 8px;
}
.freshm-btn-save {
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #c8a84e, #d4b85a);
    color: #0a0a0c;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    font-family: 'Heebo', sans-serif;
}
.freshm-btn-save:hover {
    background: linear-gradient(135deg, #d4b85a, #e8d282);
    box-shadow: 0 4px 12px rgba(200, 168, 78, 0.3);
    transform: translateY(-1px);
}


/* ==========================================================================
   15. INFO BOX
   ========================================================================== */

.freshm-info {
    background: rgba(200, 168, 78, 0.06);
    border: 1px solid rgba(200, 168, 78, 0.18);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #7a7568;
    line-height: 1.6;
}
.freshm-info a {
    color: #c8a84e;
    font-weight: 600;
}


/* ==========================================================================
   16. COLOR PICKER
   ========================================================================== */

.freshm-color-picker + .wp-picker-container {
    direction: ltr;
}


/* ==========================================================================
   17. REPEATER
   ========================================================================== */

.freshm-repeater {
    border: 1px solid #e8e4de;
    border-radius: 8px;
    padding: 1rem;
    background: #fafaf8;
}
.freshm-repeater-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.freshm-repeater-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 8px;
    position: relative;
    transition: box-shadow 0.2s;
}
.freshm-repeater-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.freshm-repeater-handle {
    cursor: grab;
    padding: 0.3rem;
    color: #bdb8ae;
    font-size: 1.2rem;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}
.freshm-repeater-handle:active {
    cursor: grabbing;
}
.freshm-repeater-fields {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}

/* Repeater field labels & inputs */
.freshm-rf label {
    display: block;
    font-size: 0.75rem;
    color: #7a7568;
    margin-bottom: 0.2rem;
    font-weight: 500;
}
.freshm-rf input,
.freshm-rf textarea {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd8d0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fafaf8;
    color: #2d2a26;
    font-family: 'Heebo', sans-serif;
}
.freshm-rf textarea {
    resize: vertical;
}
.freshm-rf input:focus,
.freshm-rf textarea:focus {
    border-color: #c8a84e;
    box-shadow: 0 0 0 2px rgba(200, 168, 78, 0.1);
    outline: none;
    background: #fff;
}
.freshm-rf .freshm-image-field {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.freshm-rf .freshm-image-preview {
    width: 50px;
    height: 50px;
}
.freshm-rf .freshm-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}

.freshm-repeater-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.freshm-repeater-remove:hover {
    opacity: 1;
}

.freshm-repeater-add {
    padding: 0.5rem 1.2rem;
    background: rgba(200, 168, 78, 0.06);
    border: 1px dashed #c8a84e;
    border-radius: 8px;
    color: #c8a84e;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: 'Heebo', sans-serif;
}
.freshm-repeater-add:hover {
    background: rgba(200, 168, 78, 0.14);
}


/* ==========================================================================
   18. COLLAPSIBLE CARDS (Stories, Services, etc.)
   ========================================================================== */

/* Toolbar */
.freshm-cards-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #fafaf8;
    border: 1px solid #e8e4de;
    border-top: 0;
}
.freshm-add-card {
    padding: 0.6rem 1.5rem !important;
    background: rgba(200, 168, 78, 0.06) !important;
    border: 1px dashed #c8a84e !important;
    color: #c8a84e !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    font-family: 'Heebo', sans-serif !important;
}
.freshm-add-card:hover {
    background: rgba(200, 168, 78, 0.14) !important;
}
.freshm-cards-count {
    font-size: 0.85rem;
    color: #7a7568;
}

/* Cards List */
.freshm-cards-list {
    padding: 1rem 2rem 2rem;
    background: #fff;
    border: 1px solid #e8e4de;
    border-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Card */
.freshm-card {
    border: 1px solid #e8e4de;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.freshm-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Card Header */
.freshm-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: #fafaf8;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
}
.freshm-card-header:hover {
    background: #f4f2ee;
}
.freshm-card.open .freshm-card-header {
    border-bottom-color: #e8e4de;
    background: #f4f2ee;
}
.freshm-card-handle {
    color: #bdb8ae;
    cursor: grab;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.freshm-card-handle:active {
    cursor: grabbing;
}
.freshm-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d2a26;
    flex: 1;
}
.freshm-card-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.freshm-card-badge.published {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.freshm-card-badge.draft {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.freshm-card-industry {
    font-size: 0.8rem;
    color: #7a7568;
}
.freshm-card-toggle {
    color: #bdb8ae;
    font-size: 0.8rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.freshm-card.open .freshm-card-toggle {
    transform: rotate(180deg);
}

/* Card Body */
.freshm-card-body {
    display: none;
    padding: 1.5rem;
    background: #fff;
}
.freshm-card.open .freshm-card-body {
    display: block;
}

/* Card Section */
.freshm-card-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0ece4;
}
.freshm-card-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.freshm-card-section h3 {
    font-size: 0.95rem;
    color: #2d2a26;
    margin: 0 0 1rem;
    font-weight: 700;
}
.freshm-hint {
    font-size: 0.8rem;
    color: #bdb8ae;
    margin: -0.5rem 0 0.8rem;
}

/* Card Actions */
.freshm-card-actions {
    padding-top: 1rem;
    border-top: 1px solid #fee2e2;
    text-align: left;
}
.freshm-delete-card {
    background: #fff5f5 !important;
    border-color: #fecaca !important;
    color: #ef4444 !important;
}
.freshm-delete-card:hover {
    background: #fee2e2 !important;
}

/* Content Block (within card sections) */
.freshm-content-block {
    background: #fafaf8;
    border: 1px solid #f0ece4;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
}


/* ==========================================================================
   19. MINI REPEATER (metrics, benefits, process, FAQ)
   ========================================================================== */

.freshm-mini-repeater {
    border: 1px solid #e8e4de;
    border-radius: 8px;
    padding: 0.8rem;
    background: #fafaf8;
}
.freshm-mini-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.freshm-mini-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 6px;
}
.freshm-mini-item input,
.freshm-mini-item select {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd8d0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fafaf8;
    color: #2d2a26;
    font-family: 'Heebo', sans-serif;
}
.freshm-mini-item input:focus,
.freshm-mini-item select:focus {
    border-color: #c8a84e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(200, 168, 78, 0.1);
    background: #fff;
}
.freshm-mini-num {
    max-width: 100px;
    text-align: center;
    font-weight: 700;
}
.freshm-mini-icon {
    max-width: 120px;
}
.freshm-mini-label {
    flex: 2;
}
.freshm-mini-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.freshm-mini-remove:hover {
    opacity: 1;
}
.freshm-mini-add,
.freshm-mini-add-benefit,
.freshm-mini-add-process,
.freshm-mini-add-faq {
    padding: 0.4rem 1rem;
    background: rgba(200, 168, 78, 0.06);
    border: 1px dashed rgba(200, 168, 78, 0.4);
    border-radius: 6px;
    color: #c8a84e;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    font-family: 'Heebo', sans-serif;
}
.freshm-mini-add:hover,
.freshm-mini-add-benefit:hover,
.freshm-mini-add-process:hover,
.freshm-mini-add-faq:hover {
    background: rgba(200, 168, 78, 0.14);
}


/* ==========================================================================
   20. CATEGORIES SECTION
   ========================================================================== */

.freshm-categories-section {
    background: #fff;
    border: 1px solid #e8e4de;
    border-top: 0;
}
.freshm-cats-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.freshm-cat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.freshm-cat-item input {
    padding: 0.5rem 0.7rem;
    border: 1px solid #ddd8d0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fafaf8;
    color: #2d2a26;
    font-family: 'Heebo', sans-serif;
}
.freshm-cat-item input:focus {
    border-color: #c8a84e;
    outline: none;
    background: #fff;
}
.freshm-cat-slug {
    max-width: 120px;
}
.freshm-cat-order {
    max-width: 60px;
    text-align: center;
}
.freshm-cat-add {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}


/* ==========================================================================
   21. GALLERY REPEATER
   ========================================================================== */

.freshm-gallery-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.freshm-gallery-item {
    position: relative;
}
.freshm-gallery-item .freshm-image-preview {
    width: 80px;
    height: 80px;
}
.freshm-gallery-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


/* ==========================================================================
   22. SORTABLE PLACEHOLDER
   ========================================================================== */

.freshm-sortable-placeholder,
.freshm-cards-list .ui-sortable-placeholder {
    border: 2px dashed #c8a84e;
    border-radius: 8px;
    background: rgba(200, 168, 78, 0.04);
    min-height: 50px;
    visibility: visible !important;
}


/* ==========================================================================
   23. ICON SELECTOR
   ========================================================================== */

.freshm-icon-selector {
    margin-bottom: 1rem;
}
.freshm-icon-selector > label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #c8a84e;
}
.freshm-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.freshm-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 2px solid #e8e4de;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fff;
}
.freshm-icon-option:hover {
    border-color: rgba(200, 168, 78, 0.4);
    background: rgba(200, 168, 78, 0.04);
}
.freshm-icon-option.selected,
.freshm-icon-option input:checked + .freshm-icon-preview {
    border-color: #c8a84e !important;
}
.freshm-icon-option.selected {
    border-color: #c8a84e;
    background: rgba(200, 168, 78, 0.08);
}
.freshm-icon-option input {
    display: none;
}
.freshm-icon-preview {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8a84e;
}
.freshm-icon-preview svg {
    width: 100%;
    height: 100%;
}
.freshm-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.freshm-icon-label {
    font-size: 10px;
    color: #7a7568;
    opacity: 0.7;
    line-height: 1.2;
}
.freshm-custom-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.freshm-custom-icon-upload {
    display: flex;
    gap: 4px;
}


/* ==========================================================================
   24. WP EDITOR INSIDE PLUGIN
   ========================================================================== */

.freshm-field .wp-editor-container {
    border-radius: 8px;
    overflow: hidden;
}
.freshm-field .mce-edit-area iframe {
    min-height: 200px;
}


/* ==========================================================================
   25. RESPONSIVE
   ========================================================================== */

@media (max-width: 782px) {
    /* Sidebar layout */
    .freshm-sidebar {
        display: none;
    }
    .freshm-content {
        margin-right: 0;
        padding: 1rem;
    }

    /* General wrap */
    .freshm-wrap {
        margin: 10px;
    }
    .freshm-tabs {
        flex-direction: column;
    }
    .freshm-grid {
        grid-template-columns: 1fr;
    }
    .freshm-repeater-fields {
        grid-template-columns: 1fr;
    }
    .freshm-tab-content {
        padding: 1rem;
    }

    /* Cards */
    .freshm-cards-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .freshm-mini-item {
        flex-wrap: wrap;
    }
    .freshm-cat-item {
        flex-wrap: wrap;
    }
    .freshm-card-header {
        flex-wrap: wrap;
    }

    /* Sub nav */
    .fm-sub-nav {
        overflow-x: auto;
    }
}

@media (max-width: 1200px) {
    .freshm-icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
