* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
}

.upload-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.file-input-label:hover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-2px);
}

.file-input-icon {
    font-size: 40px;
    margin-right: 15px;
}

.file-input-text {
    flex: 1;
}

.primary-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.secondary-text {
    display: block;
    font-size: 12px;
    color: #718096;
}

.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #e6fffa;
    border: 1px solid #38b2ac;
    border-radius: 10px;
    margin-bottom: 20px;
}

.file-info {
    flex: 1;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.file-size {
    display: block;
    font-size: 12px;
    color: #718096;
}

.remove-file {
    background: #fed7d7;
    color: #e53e3e;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

.upload-btn {
    width: 100%;
    padding: 15px;
    background: #0038F1;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 56, 241, 0.4);
}

.upload-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 15px;
}

.result-header h3 {
    color: #22543d;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.url-container label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.url-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.url-wrapper input {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.copy-btn {
    padding: 12px 20px;
    background: #38b2ac;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #319795;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #38a169;
}

.view-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.view-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .upload-card {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .file-input-label {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .file-input-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .url-wrapper {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .upload-card {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .file-input-label {
        padding: 15px;
    }
    
    .upload-btn {
        padding: 12px;
        font-size: 14px;
    }
}
