* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.drop-zone.drag-over {
    background: #667eea;
    border-color: #764ba2;
    transform: scale(1.02);
}

.drop-zone.drag-over .drop-zone-content {
    color: white;
}

.drop-zone-content svg {
    color: #667eea;
    margin-bottom: 20px;
}

.drop-zone.drag-over svg {
    color: white;
}

.drop-zone h2 {
    margin: 20px 0 10px;
    color: #333;
}

.drop-zone.drag-over h2,
.drop-zone.drag-over p {
    color: white;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.files-list {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
}

.files-list h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 1.5em;
}

.file-size {
    color: #666;
    font-size: 0.9em;
}

.btn-remove-file {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-file:hover {
    background: #ff3838;
}

.btn-remove {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.upload-options {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
}

.upload-options label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.upload-options input[type="number"] {
    width: 100px;
    padding: 10px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1em;
}

.btn-upload {
    width: 100%;
    padding: 18px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-upload:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.progress-bar {
    margin-top: 20px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
}

.result-section {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #2ecc71;
    color: white;
    font-size: 3em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.link-container {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.link-container input {
    flex: 1;
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1em;
}

.btn-copy {
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #5568d3;
}

.info-box {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.info-box p {
    margin: 10px 0;
}

.btn-secondary {
    padding: 15px 40px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.storage-info {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.storage-info p {
    margin: 5px 0;
}

/* Download page styles */
.download-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-info {
    width: 100%;
    text-align: center;
}

.files-preview {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.file-preview-item {
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-download {
    width: 100%;
    padding: 18px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-download:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.4);
}

.error-state {
    text-align: center;
}

.error-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.error-state h2 {
    color: #ff4757;
    margin-bottom: 10px;
}

.error-state p {
    color: #666;
    margin-bottom: 30px;
}
