:root {
    --file-share-view-bg: var(--lumo-base-color);
    --upload-container-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    --icon-xl-size: 64px;
    --animation-container-width: 400px;
}

.file-share-view {
    background: var(--file-share-view-bg);
    min-height: 100vh;
}

.upload-container {
    box-shadow: var(--upload-container-shadow);
    max-width: 500px;
    width: 100%;
    transition: transform 0.2s ease;
}

.upload-container:hover {
    transform: translateY(-2px);
}

.icon-xl {
    height: var(--icon-xl-size);
    width: var(--icon-xl-size);
}

.upload-element {
    width: 100%;
}

.logo {
    width: 250px;
    height: 250px;
}

.cancel-button {
    margin-top: 8px;
    font-weight: 800;
    color: #51504F;
    font-size: 14px;
    transition: color 0.2s ease;
}

.cancel-button:hover {
    color: var(--lumo-primary-color);
    cursor: pointer;
}

.upload-button {
    --upload-button-enabled-background: #0366FF;
    --upload-button-disabled-background: #C9CACB;

    --upload-button-color: white;
    --upload-button-font-size: var(--lumo-font-size, 14px);

    background-color: var(--upload-button-disabled-background);
    color: var(--upload-button-color);
    font-size: var(--upload-button-font-size);
    width: 195px;
    margin-top: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 102, 255, 0.3);
}

.upload-button:active:not(:disabled) {
    transform: translateY(1px);
}

.upload-button.enabled {
    background-color: var(--upload-button-enabled-background);
}

.upload-button.disabled {
    background-color: var(--upload-button-disabled-background);
}

.upload-animation-container {
    width: var(--animation-container-width);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lumo-base-color);
    border-radius: 12px;
    margin: 0 auto;
}

.animation-content {
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-loading-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.spin-animation {
    animation: spin 1.5s linear infinite;
}

.message-container {
    height: 24px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loading-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    color: var(--lumo-secondary-text-color);
    font-size: var(--lumo-font-size-s);
    text-align: center;
    transform: translateY(20px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.loading-text.active {
    opacity: 1;
    transform: translateY(0);
}

.loading-text:nth-child(1) { animation-delay: 0s; }
.loading-text:nth-child(2) { animation-delay: 1.5s; }
.loading-text:nth-child(3) { animation-delay: 3s; }
.loading-text:nth-child(4) { animation-delay: 4.5s; }

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

@keyframes fadeInOut {
    0%, 23%, 100% { opacity: 0; }
    25%, 48% { opacity: 1; }
}