/**
 * Styles for App\Filament\Components\VideoUploadField.
 *
 * Hand-written rather than Tailwind utilities on purpose: Filament v5 ships its own
 * compiled stylesheet and does not scan this application's Blade views, so a utility
 * class used here would simply not exist in any bundle. Registered through the same
 * asset registry as the field's scripts (`FilamentAsset::register`), so it is copied
 * to `public/css/app/` by `artisan filament:assets` and needs no Vite build.
 *
 * Dark mode follows Filament's convention: the `dark` class on the `html` element.
 */

.tp-upload__drop {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px dashed rgb(212 212 216);
    border-radius: 0.75rem;
    background-color: rgb(250 250 250);
    transition: border-color 150ms ease, background-color 150ms ease;
}

.dark .tp-upload__drop {
    border-color: rgb(63 63 70);
    background-color: rgb(39 39 42);
}

.tp-upload__drop--active {
    border-color: rgb(245 158 11);
    background-color: rgb(254 252 232);
}

.dark .tp-upload__drop--active {
    background-color: rgb(66 32 6);
}

.tp-upload__drop--busy {
    border-style: solid;
}

.tp-upload__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(24 24 27);
}

.dark .tp-upload__title {
    color: rgb(244 244 245);
}

.tp-upload__hint,
.tp-upload__status,
.tp-upload__progress-label {
    font-size: 0.75rem;
    color: rgb(82 82 91);
}

.dark .tp-upload__hint,
.dark .tp-upload__status,
.dark .tp-upload__progress-label {
    color: rgb(161 161 170);
}

.tp-upload__hint code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}

.tp-upload__file {
    font-size: 0.875rem;
    color: rgb(24 24 27);
}

.dark .tp-upload__file {
    color: rgb(244 244 245);
}

.tp-upload__file-size {
    margin-inline-start: 0.5rem;
    font-size: 0.75rem;
    color: rgb(113 113 122);
}

.tp-upload__input {
    font-size: 0.875rem;
    color: rgb(82 82 91);
}

.dark .tp-upload__input {
    color: rgb(161 161 170);
}

.tp-upload__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.tp-upload__button {
    padding: 0.375rem 0.75rem;
    border: 1px solid rgb(212 212 216);
    border-radius: 0.5rem;
    background-color: rgb(255 255 255);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(63 63 70);
    cursor: pointer;
}

.dark .tp-upload__button {
    border-color: rgb(63 63 70);
    background-color: rgb(24 24 27);
    color: rgb(228 228 231);
}

.tp-upload__button--primary {
    border-color: transparent;
    background-color: rgb(245 158 11);
    color: rgb(24 24 27);
}

.tp-upload__button--danger {
    border-color: transparent;
    background-color: rgb(220 38 38);
    color: rgb(255 255 255);
}

.tp-upload__progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.tp-upload__progress-track {
    height: 0.5rem;
    border-radius: 9999px;
    background-color: rgb(228 228 231);
    overflow: hidden;
}

.dark .tp-upload__progress-track {
    background-color: rgb(63 63 70);
}

.tp-upload__progress-bar {
    height: 100%;
    width: 0;
    border-radius: 9999px;
    background-color: rgb(245 158 11);
    transition: width 150ms linear;
}

.tp-upload__progress-label {
    display: flex;
    gap: 0.5rem;
}

.tp-upload__status--success {
    color: rgb(21 128 61);
}

.dark .tp-upload__status--success {
    color: rgb(134 239 172);
}

.tp-upload__status--warning {
    color: rgb(180 83 9);
}

.dark .tp-upload__status--warning {
    color: rgb(252 211 77);
}

.tp-upload__status--error {
    color: rgb(185 28 28);
}

.dark .tp-upload__status--error {
    color: rgb(252 165 165);
}
