@font-face {
    font-family: 'Whitney';
    src: url('/static/Whitney-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Whitney';
    src: url('/static/Whitney-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Whitney';
    src: url('/static/Whitney-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

:root {
    --magenta: #e6316c;
    --dark-blue: #262B39;
    --radius-ext: 8px;
    --radius-int: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Whitney', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: var(--magenta);
    color: var(--dark-blue);
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background-image 2s ease-in-out;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1; /* Mantieni questo per assicurare che il contenuto sia sopra lo sfondo */
}

h1 {
    text-align: left;
    margin-bottom: 2rem;
    color: white;
}

a, a:hover, a:visited, a:active {
    color: var(--dark-blue);
}

.upload-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-ext);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-container h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.upload-container p {
    color: #2c3e50;
    font-size: 1.1rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-input-container {
    position: relative;
    width: 100%;
}

.file-input {
    display: none;
}

.file-label {
    display: block;
    padding: 0.8rem;
    background-color: var(--magenta);
    color: white;
    text-align: center;
    border-radius: var(--radius-int);
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1.4;
}

.file-label:hover {
    background-color: var(--magenta);
    opacity: 0.8;
}

.custom-filename-container {
    width: 100%;
}

.custom-filename {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-int);
    font-size: 1rem;
}

.upload-button {
    padding: 0.8rem;
    background-color: var(--dark-blue);
    color: white;
    border: none;
    border-radius: var(--radius-int);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    line-height: 1.4;
}

.upload-button:hover {
    background-color: var(--dark-blue);
    opacity: 0.8;
}

.progress-container {
    margin-top: 1rem;
    background-color: #f0f0f0;
    border-radius: var(--radius-int);
    overflow: hidden;
    position: relative;
    height: 10px;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background-color: var(--dark-blue);
    width: 0%;
    transition: width 0.3s ease;
    left: 0;
}

.result-container {
    border-radius: var(--radius-int);
}

.result-container.success {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #d4edda;
    color: var(--dark-blue);
}

.result-container.error {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8d7da;
    color: var(--dark-blue);
}

.result-container.processing {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e2e3e5;
    color: var(--dark-blue);
    font-style: italic;
}

.result-container.processing .fa-spinner {
    margin-right: 8px;
    color: var(--magenta);
}

.result-container a {
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.url-base {
    opacity: 0.8;
    font-size: 0.9em;
}

.url-filename {
    /* Rimuovo il font-weight: bold; */
}

.copy-icon {
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    color: var(--dark-blue);
    font-size: 1.2rem;
    transition: color 0.3s;
    cursor: pointer;
}

.copy-icon:hover {
    color: var(--dark-blue);
    opacity: 0.8;
}

.copy-icon.copied {
    color: var(--magenta);
}

.selected-filename {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-blue);
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        margin: 1rem auto;
    }

    .upload-container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
    
    .url-base {
        display: block;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.error-message {
    color: white;
    background-color: var(--magenta);
    padding: 0.8rem;
    border-radius: var(--radius-int);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

h2 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    text-align: center;
} 

.logo-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    width: 200px;
}
.info {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    padding-top:1.3rem;
}