/* =============================================
   CampaignsLive AI - Shared Styles
   ============================================= */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Condensed:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
    --brand-yellow: #FFD500;
    --brand-yellow-light: #FFF7CC;
    --brand-yellow-dark: #CCAA00;

    /* Font families */
    --font-heading: 'Roboto', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

/* Base Typography */
body {
    font-family: var(--font-condensed);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings - Normal Roboto */
h1,
h2,
h3,
h4,
h5,
h6,
.heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Menu items, labels, body text - Condensed */
nav,
aside,
label,
p,
span,
a,
button,
.nav-text,
.menu-text,
.label-text {
    font-family: var(--font-condensed);
}

/* Forms, code blocks, blockquotes - Mono */
input,
textarea,
select,
code,
pre,
blockquote,
.form-input,
.code-text,
.mono {
    font-family: var(--font-mono);
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--brand-yellow) 0%, #FF9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dark .glass-panel {
    background: rgba(39, 39, 42, 0.85);
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation Button States */
.nav-btn {
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark .nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: rgba(255, 213, 0, 0.1);
    border-left: 3px solid var(--brand-yellow);
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: white;
    border-right: 1px solid #e4e4e7;
}

.dark .sidebar {
    background: #18181b;
    border-right-color: #27272a;
}

.sidebar-logo {
    padding: 1rem;
    border-bottom: 1px solid #f4f4f5;
}

.dark .sidebar-logo {
    border-bottom-color: #27272a;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #f4f4f5;
}

.dark .sidebar-footer {
    border-top-color: #27272a;
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #71717a;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.back-btn:hover {
    background: #f4f4f5;
    color: #18181b;
}

.dark .back-btn:hover {
    background: #27272a;
    color: white;
}

.back-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Section Label */
.section-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #71717a;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

/* Project/Item List */
.item-list {
    space-y: 0.25rem;
}

.item-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.item-card:hover {
    background: #f4f4f5;
}

.dark .item-card:hover {
    background: #27272a;
}

.item-card.active {
    background: rgba(255, 213, 0, 0.15);
    border-left: 3px solid var(--brand-yellow);
}

/* User Profile in Sidebar */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(255, 213, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ca8a04;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    font-size: 0.75rem;
    color: #71717a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Button Styles */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--brand-yellow);
    color: black;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
    box-shadow: 0 4px 6px -1px rgba(255, 213, 0, 0.2);
}

.btn-primary:hover {
    background: #e6c000;
    box-shadow: 0 10px 15px -3px rgba(255, 213, 0, 0.3);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f4f4f5;
    color: #3f3f46;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.dark .btn-secondary {
    background: #27272a;
    color: #d4d4d8;
}

.btn-secondary:hover {
    background: #e4e4e7;
}

.dark .btn-secondary:hover {
    background: #3f3f46;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f4f4f5;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.15s ease;
}

.dark .form-input {
    background: #27272a;
}

.form-input:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 4px rgba(255, 213, 0, 0.1);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.status-badge.processing {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.review {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.complete {
    background: #d1fae5;
    color: #065f46;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fadeIn,
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-slideIn {
    animation: slideIn 0.2s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.2s ease forwards;
}

/* Loading Spinner */
.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--brand-yellow);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 50;
}

.dark .modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1rem;
    z-index: 51;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.2s ease;
}

.dark .modal-content {
    background: #27272a;
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #3f3f46;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* =============================================
   Asset Library Cards
   ============================================= */

/* Grid layout */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .assets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .assets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .assets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small grid layout (1/4 size) */
.assets-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .assets-grid-small {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .assets-grid-small {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1280px) {
    .assets-grid-small {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Small card styles */
.asset-card-small {
    border-radius: 0.75rem;
}

.asset-card-small .asset-thumb {
    height: 80px;
}

.asset-card-small .asset-info {
    padding: 0.5rem;
}

.asset-card-small .asset-title {
    font-size: 0.75rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.asset-card-small .asset-meta {
    font-size: 0.625rem;
}

.asset-card-small .meta-icon {
    width: 0.625rem;
    height: 0.625rem;
}

.asset-card-small .asset-actions {
    padding: 0.25rem;
    gap: 0.25rem;
}

.asset-card-small .action-btn {
    width: 1.25rem;
    height: 1.25rem;
}

.asset-card-small .action-btn svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* List layout - file system style */
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* List row styles */
.asset-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-bottom: 1px solid #e4e4e7;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dark .asset-row {
    background: #27272a;
    border-color: #3f3f46;
}

.asset-row:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.asset-row:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-bottom: none;
}

.asset-row:hover {
    background: #f9fafb;
}

.dark .asset-row:hover {
    background: #3f3f46;
}

.asset-row.selected {
    background: rgba(255, 213, 0, 0.1);
}

.dark .asset-row.selected {
    background: rgba(255, 213, 0, 0.15);
}

.asset-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.asset-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.asset-row-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-row-type {
    font-size: 0.75rem;
    color: #71717a;
    text-transform: capitalize;
}

.asset-row-date {
    font-size: 0.75rem;
    color: #71717a;
    width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.asset-row-size {
    font-size: 0.75rem;
    color: #71717a;
    width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.asset-row-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.asset-row:hover .asset-row-actions {
    opacity: 1;
}

/* Selection checkbox */
.select-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.asset-card:hover .select-checkbox,
.asset-card.selected .select-checkbox {
    opacity: 1;
}

.asset-row .select-checkbox {
    position: relative;
    top: auto;
    left: auto;
    opacity: 1;
}

.select-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 2px solid #d4d4d8;
    cursor: pointer;
    accent-color: var(--brand-yellow);
}

.select-checkbox input[type="checkbox"]:checked {
    border-color: var(--brand-yellow);
}

/* Selected card state - double outline for visibility on both themes */
.asset-card.selected {
    border-color: var(--brand-yellow);
    box-shadow:
        0 0 0 2px #000,
        0 0 0 4px var(--brand-yellow),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark .asset-card.selected {
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px var(--brand-yellow),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.assets-list .asset-card {
    flex-direction: row;
    border-radius: 0.75rem;
}

.assets-list .asset-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 0.5rem;
}

.assets-list .asset-info {
    flex: 1;
    padding: 0.75rem 1rem;
}

/* Asset Card */
.asset-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e4e4e7;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .asset-card {
    background: #27272a;
    border-color: #3f3f46;
}

.asset-card:hover {
    border-color: var(--brand-yellow);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(255, 213, 0, 0.1);
    transform: translateY(-2px);
}

/* Thumbnail container */
.asset-thumb {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dark .asset-thumb {
    background: #18181b;
}

/* Thumbnail image */
.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail icon (for types without images) */
.thumb-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.thumb-icon .file-ext {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #52525b;
    letter-spacing: 0.05em;
}

.dark .thumb-icon .file-ext {
    color: #a1a1aa;
}

/* Note preview in thumbnail */
.thumb-note {
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #71717a;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    font-family: var(--font-mono);
}

.dark .thumb-note {
    color: #a1a1aa;
}

/* Type badge (bottom-right of thumbnail) */
.asset-type-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.badge-purple {
    background: #9333ea;
}

.badge-blue {
    background: #2563eb;
}

.badge-green {
    background: #16a34a;
}

.badge-amber {
    background: #d97706;
}

.badge-pink {
    background: #db2777;
}

/* Media info badges (aspect ratio, type, size) */
.media-badge {
    position: absolute;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.125rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Media type badge - top left */
.media-type-badge {
    top: 0.5rem;
    left: 0.5rem;
}

/* Aspect ratio badge - bottom left */
.media-aspect-badge {
    bottom: 0.5rem;
    left: 0.5rem;
}

/* File size badge - bottom right, next to type badge */
.media-size-badge {
    bottom: 0.5rem;
    right: 2.25rem;
}

/* Hide media badges in small card view to avoid clutter */
.asset-card-small .media-badge {
    display: none;
}

/* Show only type badge in small view */
.asset-card-small .media-type-badge {
    display: flex;
    top: 0.25rem;
    left: 0.25rem;
    padding: 0.125rem;
}

/* Sharing badge (top-right of thumbnail) */
.sharing-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    color: white;
}

.sharing-public {
    background: #16a34a;
}

.sharing-domain {
    background: #2563eb;
}

/* Info section */
.asset-info {
    padding: 1rem;
}

.asset-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.asset-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .asset-title {
    color: #fafafa;
}

/* Editable name - clickable to rename */
.editable-name {
    cursor: text;
    padding: 0.125rem 0.25rem;
    margin: -0.125rem -0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease;
}

.editable-name:hover {
    background: rgba(255, 213, 0, 0.15);
}

.dark .editable-name:hover {
    background: rgba(255, 213, 0, 0.2);
}

/* Inline rename input */
.inline-rename-input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
    background: white;
    border: 2px solid var(--brand-yellow);
    border-radius: 0.375rem;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.2);
}

.dark .inline-rename-input {
    background: #27272a;
    color: #fafafa;
}

.shared-badge {
    font-size: 0.75rem;
    color: #71717a;
    flex-shrink: 0;
}

.parent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin: 0.25rem 0;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parent-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.dark .parent-badge {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
}

.dark .parent-badge:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.asset-description {
    font-size: 0.875rem;
    color: #52525b;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Meta info row */
.asset-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    /* 13px - 50% bigger than original 9px */
    color: #52525b;
    /* darker grey */
}

.dark .meta-item {
    color: #a1a1aa;
}

.meta-icon {
    width: 1rem;
    height: 1rem;
}

/* Drop overlay */
.drop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    /* High but below modal content */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlay-fade-in 0.2s ease-out;
}

.dark .drop-overlay {
    background: rgba(0, 0, 0, 0.5);
}

@keyframes overlay-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.drop-overlay.hidden {
    display: none;
}

.drop-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    min-width: 320px;
    z-index: 9999;
    /* Content above the frosted backdrop */
    position: relative;
}

.dark .drop-content {
    background: #27272a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: content-scale-in 0.2s ease-out;
}

@keyframes content-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dark .drop-content {
    background: #27272a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Delete animation - Shrink + Fade Into Nothing */
@keyframes delete-shrink {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(4px);
    }
}

.animate-delete {
    animation: delete-shrink 0.3s ease-out forwards;
    pointer-events: none;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 100;
    animation: toastSlide 0.3s ease;
}

.toast-success {
    background: #16a34a;
    color: white;
}

.toast-error {
    background: #dc2626;
    color: white;
}

.toast-info {
    background: #3f3f46;
    color: white;
}

@keyframes toastSlide {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Asset action buttons */
.asset-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.asset-card:hover .asset-actions {
    opacity: 1;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    background: #f4f4f5;
    color: #71717a;
    transition: all 0.15s ease;
}

.dark .action-btn {
    background: #3f3f46;
    color: #a1a1aa;
}

.action-btn:hover {
    background: #e4e4e7;
    color: #18181b;
}

.dark .action-btn:hover {
    background: #52525b;
    color: #fafafa;
}

.action-btn-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dark .action-btn-danger:hover {
    background: #7f1d1d;
    color: #fca5a5;
}

/* Pitch deck list item styles */
.project-item {
    border-radius: 0.5rem;
    transition: background 0.15s ease;
}

.project-item:hover {
    background: #f4f4f5;
}

.dark .project-item:hover {
    background: #27272a;
}

.project-item.active {
    background: rgba(255, 213, 0, 0.1);
    border-left: 3px solid var(--brand-yellow);
}

/* =============================================
   Picker Mode - Asset Library when embedded in iframe
   ============================================= */

body.picker-mode {
    padding-top: 0;
}

body.picker-mode .sidebar,
body.picker-mode #sidebar-container {
    display: none !important;
}

body.picker-mode #app {
    max-width: 100%;
}

body.picker-mode main {
    width: 100%;
}

/* Picker toolbar */
.picker-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* In picker mode, make cards click to select instead of open */
body.picker-mode .asset-card {
    user-select: none;
}

body.picker-mode .asset-card .select-checkbox {
    opacity: 1 !important;
}

/* De-emphasize the actions in picker mode */
body.picker-mode .asset-actions {
    display: none;
}

/* =============================================
   Mobile Responsive Sidebar
   ============================================= */

/* Mobile header - hamburger menu bar */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: white;
    border-bottom: 1px solid #e4e4e7;
    padding: 0.75rem 1rem;
    align-items: center;
    gap: 0.75rem;
}

.dark .mobile-header {
    background: #18181b;
    border-color: #27272a;
}

.mobile-header-logo {
    height: 2rem;
    width: auto;
}

.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.hamburger-btn:hover {
    background: #f4f4f5;
}

.dark .hamburger-btn:hover {
    background: #27272a;
}

.hamburger-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #3f3f46;
}

.dark .hamburger-btn svg {
    color: #a1a1aa;
}

/* Sidebar backdrop overlay */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile sidebar close button */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f4f4f5;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.dark .sidebar-close-btn {
    background: #3f3f46;
}

.sidebar-close-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #71717a;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    /* Push main content below mobile header */
    #app>main,
    main.flex-1 {
        margin-top: 56px;
    }

    /* Sidebar transforms for mobile */
    #sidebar,
    .sidebar,
    aside#sidebar {
        position: fixed !important;
        z-index: 50;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #sidebar.mobile-open,
    .sidebar.mobile-open,
    aside#sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: flex;
    }
}

/* Desktop: hide mobile elements */
@media (min-width: 769px) {
    .mobile-header {
        display: none !important;
    }

    .sidebar-backdrop {
        display: none !important;
    }

    .sidebar-close-btn {
        display: none !important;
    }
}