/* ViVek icon system — Lucide UI icons + Google brand marks */

.ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 0;
}

.ui-icon-lucide svg,
.ui-icon-lucide i svg,
.nav-rail-item svg,
.menu-item-icon svg,
.close-sidebar-btn svg,
.close-btn svg,
.dashboard-card-icon svg,
.nav-icon svg,
.feature-icon svg,
.app-brand-icon svg {
    width: 1.15em;
    height: 1.15em;
    stroke-width: 2;
}

.ui-icon-brand svg,
.brand-icon {
    width: 1.15em;
    height: 1.15em;
    display: block;
}

.ui-icon-label {
    line-height: 1.2;
}

.menu-item-icon,
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
}

.menu-item {
    gap: 10px;
}

.action-btn,
.expanded-btn,
.create-menu-item,
.dashboard-btn,
.practice-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.app-brand-icon svg {
    width: 22px;
    height: 22px;
}

.sidebar-logo-toggle .app-brand-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.dashboard-card-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.75;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--vivek-brand-muted);
    color: var(--accent);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.google-login-btn,
.brand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-login-btn .ui-icon-brand svg,
.brand-btn .ui-icon-brand svg {
    width: 18px;
    height: 18px;
}

.drive-gen-type-option,
.upload-hub-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.close-sidebar-btn,
.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.scroll-to-bottom-btn svg,
.plus-btn svg {
    width: 20px;
    height: 20px;
}

.quick-chat-menu-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-shell-menu-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-sidebar-toggle svg {
    width: 22px;
    height: 22px;
}

.create-menu-item .ui-icon-lucide svg,
.create-menu-item .ui-icon-brand svg {
    width: 18px;
    height: 18px;
}

.message-tts-btn svg,
.message-reply-btn svg,
.message-forward-btn svg,
.message-copy-btn svg {
    width: 16px;
    height: 16px;
}

.admin-shell h2,
.dashboard-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-shell h2 .section-heading-icon svg,
.dashboard-section h3 .section-heading-icon svg,
.dashboard-section h3 > i svg,
.dashboard-section h3 svg,
.dashboard-btn > i svg {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.message-tts-btn .ui-icon,
.message-copy-btn .ui-icon,
.message-reply-btn .ui-icon,
.message-forward-btn .ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.admin-shell .tree-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    cursor: pointer;
}

.admin-shell .tree-expand svg {
    width: 14px;
    height: 14px;
}

.admin-shell .search-container {
    position: relative;
}

.admin-shell .search-container .form-input {
    padding-left: 36px;
}

.admin-shell .search-container::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    background-color: var(--text-secondary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.popup-notice-icon svg,
.inline-chat-icon svg,
.inline-notice-icon svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
}

.chat-artifact-line {
    display: inline;
}

.artifact-link-wrap {
    position: relative;
    display: inline;
}

.artifact-link-forward-btn {
    display: none;
    position: absolute;
    left: calc(100% + 3px);
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-color, #444);
    border-radius: 4px;
    background: var(--bg-secondary, #2a2a2a);
    color: var(--text-secondary, #888);
    cursor: pointer;
    line-height: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.artifact-link-forward-btn svg {
    width: 12px;
    height: 12px;
}

.message-wrapper:hover .artifact-link-forward-btn,
.artifact-link-forward-btn:focus-visible {
    display: inline-flex;
}

.artifact-chat-link--drive {
    font-size: 0.92em;
    font-weight: 500;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent, #673ab7) 35%, transparent);
    background: color-mix(in srgb, var(--accent, #673ab7) 10%, transparent);
    text-decoration: none;
    white-space: nowrap;
}

.artifact-chat-link--drive:hover {
    text-decoration: none;
    background: color-mix(in srgb, var(--accent, #673ab7) 18%, transparent);
}

.yt-rec-actions {
    position: relative;
}

.yt-rec-forward-btn {
    flex: 0 0 auto;
    margin-left: auto;
    position: static;
    transform: none;
    width: 28px;
    height: 28px;
}

.yt-rec-card:hover .yt-rec-forward-btn,
.yt-rec-forward-btn:focus-visible {
    display: inline-flex;
}

.artifact-link-forward-btn:hover,
.artifact-link-forward-btn:focus-visible {
    color: var(--accent, #673ab7);
    border-color: var(--accent, #673ab7);
}

.message-container .ui-icon,
.message-container .ui-icon-brand svg {
    vertical-align: -0.12em;
}

.analytics-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-title svg {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.admin-shell .option-name,
.admin-shell .tree-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-shell .option-name svg,
.admin-shell .folder-item-icon svg,
.admin-shell .item-icon svg,
.admin-shell .breadcrumb-icon svg,
.admin-shell .rename-btn svg,
.admin-shell .delete-btn svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.admin-shell .db-menu-btn,
.admin-shell .admin-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-shell .db-menu-btn svg,
.admin-shell .admin-menu-btn svg {
    width: 16px;
    height: 16px;
}

.admin-shell .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-shell .btn svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.vector-db-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vector-db-item-icon svg,
.vector-db-item-icon .ui-icon-lucide svg,
.vector-db-item-icon .ui-icon-brand svg {
    width: 22px;
    height: 22px;
}

.vector-db-breadcrumbs .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vector-db-breadcrumbs .breadcrumb-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.classroom-attachments-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.classroom-attachments-heading svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.bulk-rename-btn svg,
#sendBtn svg,
#noticeBlockUploadBtn svg {
    width: 16px;
    height: 16px;
}

.artifact-card-icon .ui-icon-lucide svg,
.artifact-card-icon .ui-icon-brand svg,
.study-artifact-icon .ui-icon-lucide svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ViVek wordmark — SVG mask tinted with theme accent */
.vivek-logo {
    display: block;
    background-color: var(--accent, #ff6f61);
    -webkit-mask-image: url('/static/vivekstaglogo.svg');
    mask-image: url('/static/vivekstaglogo.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.sidebar-logo-toggle:hover .vivek-logo {
    background-color: var(--accent-hover, #ff8579);
}

