/* createvideo UI Styles */

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    width: 100%;
    height: 100%;
    background-color: #000;
}

:root {
    --topbar-h: 50px;
    --bottom-panel-h: 140px;
}

body {
    background: linear-gradient(to bottom, #000, #111, #000);
    color: #e5e7eb;
    font-size: 11px;
    margin: 0;
    padding: 0;
}

.content-scroll {
    height: calc(100vh - var(--topbar-h) - var(--bottom-panel-h));
    overflow: auto;
}

.workspace-center {
    min-height: 240px;
}

@media(max-width:640px) {
    :root {
        --topbar-h: 90px;
        --bottom-panel-h: 150px;
    }

    .material-icons {
        font-size: 16px;
    }
}

.glow-video {
    transition: box-shadow 0.3s;
}

.glow-video.generating {
    box-shadow: 0 0 6px 2px #ffffff;
}

textarea::-webkit-scrollbar {
    display: none;
}

.material-icons {
    font-size: 18px;
    display: block;
}

.material-icons.small {
    font-size: 14px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.card-selectable {
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.card-selectable.selected {
    box-shadow: 0 0 6px 2px #ffffff;
    border-color: #6366f1;
}

.card-selectable:hover {
    box-shadow: 0 0 8px 2px #c2c3ca;
    border-color: #6366f1;
}

/* Asset cards - square with adaptive height */
.asset-card {
    aspect-ratio: 1;
    border-radius: 0.375rem;
}

.asset-card-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Category filter */
.category-filter {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.category-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 11px;
    transition: all 0.2s;
    border: 1px solid #374151;
}

.category-btn.active {
    background: white !important;
    color: black !important;
    border-color: white;
}

/* Reusable card update animation */
.card-updated {
    opacity: 0;
    transform: translateY(12px);
    animation: cardFadeIn 0.4s ease-out forwards;
}

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

@media(max-width:640px) {
    .category-btn {
        font-size: 10px;
        padding: 0.3rem 0.6rem;
    }
}

/* Progress bar animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes flash {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 20px 8px rgba(59, 130, 246, 0.6);
    }
}

.progress-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-flash {
    animation: flash 1.5s ease-out;
}

/* Line clamp with title tooltip */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video card hover effects */
.video-card .delete-btn {
    transition: opacity 0.2s ease-in-out;
}

.video-card:hover .delete-btn {
    opacity: 1 !important;
}

/* Settings modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: #111827;
    border-radius: 0.75rem;
    padding: 1rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid #1f2937;
}

/* Notification toast */
.notification {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 200;
    animation: slideIn 0.3s ease-out;
    font-size: 11px;
}

.notification.error {
    border-color: #991b1b;
    background: #1f2937;
}

.notification.success {
    border-color: #065f46;
    background: #1f2937;
}

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

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

/* Upload zone */
.upload-zone {
    border: 2px dashed #4b5563;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.upload-zone.dragging {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

/* Asset thumbnail */
.asset-thumbnail {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #374151;
}

/* Video card status badge */
.status-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    opacity: 0.8;
    background: rgba(32, 30, 30, 0.7);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.queued {
    color: #fbbf24;
}

.status-badge.processing {
    color: #60a5fa;
}

.status-badge.completed {
    color: #eef3f1;
}

.status-badge.failed {
    color: #f87171;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #9ca3af;
    font-size: large;
}

.empty-state-subtitle {
    color: #9ca3af;
}

.empty-state .material-icons {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}