@import url('tailwind.bundled.min.css');

html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family: Roboto;
    overflow-y: scroll;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.files-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .files-grid thead {
        position: sticky;
        background-color: #f3f4f6;
        top: 4rem;
        z-index: 1;
    }

    .files-grid tbody tr td {
        height: 4rem;
    }

    .files-grid tbody tr:not(:last-of-type) td {
        border-bottom: 1px solid #ddd;
    }

    .files-grid .col-title {
        margin: 0 !important;
        padding: 0.5rem 0 0.25rem 0.25rem !important;
    }

    .files-grid th:nth-child(1) .col-options-button {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /> </svg>');
        width: 2rem;
        order: 1;
    }

    .files-grid th:nth-child(1) .col-options {
        left: calc(100% - 4.3rem);
    }

    .files-grid th:nth-child(1) {
        width: 12rem;
    }

    .files-grid th:nth-child(2) {
        width: 4rem;
    }

    .files-grid th:nth-child(3) {
        width: 7rem;
    }

    .files-grid th:nth-child(4) {
        width: 20rem;
    }

    .files-grid tbody td {
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .files-grid td:nth-child(4) {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex;
        align-items: center;
        gap: 1rem;
        user-select: none;
        font-size: 0.8rem;
        color: gray;
    }

    .files-grid .col-title, .files-grid td {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .files-grid tbody td:first-child, .files-grid thead th:first-child .col-title {
        padding-left: 1.5rem !important;
    }

    .files-grid th:last-of-type .col-header-content {
        padding-right: 0;
    }

    .files-grid tbody {
        background-color: white;
    }

    .files-grid.loading > tbody {
        opacity: 1 !important;
    }

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .file-actions button {
        color: #4b5563;
        transform-style: preserve-3d;
        perspective: 1000px;
        transform: rotateY(5deg);
        padding: 0.25rem;
        border-radius: 10rem;
        background-color: rgba(209,213,219);
        position: relative;
        transition: transform 0.45s cubic-bezier(.62,1.95,.61,.63);
    }

        .file-actions button:hover {
            outline: 2.5px solid #4b5563;
            outline-offset: -1px;
        }

        .file-actions button[is-playing] {
            transform: rotateY(180deg);
        }

            .file-actions button[is-playing]:active {
                transform: rotateY(180deg) scale(0.9);
            }

        .file-actions button:active {
            transform: scale(0.9);
            transition-duration: 0.06s;
            transition-timing-function: cubic-bezier(.06,.89,.57,1.04);
            background-color: rgba(159,153,159);
            color: black;
        }

        .file-actions button svg {
            backface-visibility: hidden;
        }

            .file-actions button svg.stop-icon {
                position: absolute;
                top: 0.25rem;
                transform: rotateY(180deg);
            }

.processing-icon {
    margin: 0.25rem;
    animation: processing-rotation 1.5s infinite linear;
}

@keyframes processing-rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.waveform {
    cursor: pointer;
    color: #ff8000;
    width: 400px;
    height: 64px;
}

    .waveform:hover {
        background-color: #eee;
    }

    .waveform:active {
        background-color: #ccc;
    }

input[type=search] {
    width: 20rem;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    color: rgb(17 24 39);
    background-color: rgb(249 250 251);
    border: 1px solid rgb(209 213 219);
    border-radius: 0.5rem;
    outline-offset: 1px;
}

    input[type=search]:focus {
        border-color: rgb(59 130 246);
        outline-color: rgb(59 130 246);
    }

.search-box {
    position: relative;
}

    .search-box:before {
        content: ' ';
        width: 1.25rem;
        height: 1.25rem;
        position: absolute;
        left: .75rem;
        top: calc(50% - 1.25rem/2);
        background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='rgb(107 114 128)' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' b-nrli8fdfc6=''%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' b-nrli8fdfc6=''%3E%3C/path%3E%3C/svg%3E");
    }
