:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --blur-strength: 16px;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #0f0c29;
    background-image: linear-gradient(315deg, #0f0c29 0%, #302b63 74%, #24243e 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Blobs for depth */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation: move1 20s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation: move2 15s infinite alternate;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #ff00cc;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s infinite alternate;
}

@keyframes move1 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

@keyframes move2 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-100px, -100px);
    }
}

@keyframes pulse {
    from {
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Glass Container (Shared) */
.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.container {
    /* Inherit glass styles but keep container class for backward compat if needed */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-header {
    margin-bottom: 2rem;
    position: relative;
}

.user-info {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 0 0 0 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.icon-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 1;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.glass-container:hover {
    transform: translateY(-5px);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a0d8ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Upload Section */
.upload-section {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 40px 20px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.upload-section:hover,
.upload-section.dragover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.icon-upload {
    margin-bottom: 1rem;
    color: #a0d8ef;
}

.limit-info {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

/* Progress Section */
/* Existing styles... */

.hidden {
    display: none !important;
}


.progress-section {
    margin-bottom: 2rem;
}

.file-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Result Section */
.result-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.link-box {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
    margin-top: 1rem;
}

#download-link {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    font-family: monospace;
    outline: none;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.note-status {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.7;
    font-style: italic;
}

/* Settings */
.settings-section {
    text-align: left;
    font-size: 0.9rem;
}

details summary {
    cursor: pointer;
    opacity: 0.7;
    list-style: none;
    /* Remove default arrow */
    text-decoration: underline;
    text-underline-offset: 4px;
    text-align: center;
}

.input-group {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.input-group label {
    font-weight: 600;
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    outline: none;
}

.input-group input:focus {
    border-color: var(--secondary-color);
}

.hint {
    font-size: 0.75rem;
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}