/* ============================================
   Development mode — yellow background
   Applied when body has class "dev-mode"
   ============================================ */

body.dev-mode {
    --bg-main: #fffde7;
    --bg-dark: #fff9c4;
    --bg-card: #fffef5;
    --bg-input: #fffef5;
}

body.dev-mode,
body.dev-mode .main-content,
body.dev-mode .file-item,
body.dev-mode .zoho-badges,
body.dev-mode .folder-thumbnail-card,
body.dev-mode .sync-modal,
body.dev-mode .auth-screen {
    background: #fffde7 !important;
}

body.dev-mode .sidebar {
    background: #fff9c4 !important;
}

body.dev-mode .mobile-bottom-nav {
    background: #fff9c4 !important;
}

.msg-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 10px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 4px;
}

/* ============================================
   Zoho Tags — colored chips
   ============================================ */

.zoho-tag-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 1px 3px 1px 0;
    white-space: nowrap;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.08);
}

.zoho-tag-chip-remove {
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.85rem;
    opacity: 0.65;
    line-height: 1;
    font-weight: 700;
}

.zoho-tag-chip-remove:hover {
    opacity: 1;
}

/* Tag strip in detail view header */
.crud-detail-tags-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0 4px;
}

/* Tag filter in list views */
.crud-tag-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
    align-items: center;
}

.crud-tag-filter-bar .zoho-tag-chip {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.crud-tag-filter-bar .zoho-tag-chip:hover {
    opacity: 0.8;
}

.crud-tag-filter-bar .zoho-tag-chip.active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.crud-tag-filter-bar .tag-filter-clear {
    font-size: 0.72rem;
    color: var(--primary);
    cursor: pointer;
    margin-left: 4px;
    text-decoration: underline;
    white-space: nowrap;
}

.crud-tag-filter-bar .tag-filter-clear:hover {
    color: var(--primary-hover);
}

/* Tags row in table */
.crud-table td .zoho-tag-chip {
    font-size: 0.65rem;
    padding: 1px 6px;
}

/* Tag editor widget (edit mode) */
.zoho-tag-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    position: relative;
}

.zoho-tag-editor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    min-height: 0;
}

.zoho-tag-editor-tags:empty {
    margin-bottom: 0;
}

.zoho-tag-editor-select {
    width: 100%;
    font-size: 0.85rem;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

.zoho-tag-editor-select:disabled {
    color: var(--text-muted);
    cursor: default;
}

