:root {
    --preview-width: 300px;
}

#loader {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

#loader .loader-body {
    position: absolute;
    padding: 20px;
    border-radius: 5px;
    top: 50%;
    left: 50%;
    background: white;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#loader .loader-body i {
    margin-right: 5px;
}

.title-badge {
    border-left: 4px solid #6f42c1;
    padding-left: 10px;
    padding-right: 10px;
}

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

.file-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.file-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.preview {
    width: var(--preview-width);
    aspect-ratio: 16 / 9;
    background: var(--light-100);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview img,
.preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.is-invalid .ck.ck-editor {
    border: 1px solid var(--danger-main) !important;
}

.subscription-alert {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--warning-100);
    color: var(--warning-800);
    border-bottom: 1px solid var(--warning-border);
}

.subscription-alert .alert-content {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.subscription-alert a {
    margin-left: auto;
    font-weight: 600;
    color: var(--warning-600);
}
