body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    max-width: 640px;
    width: 100%;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tab {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab.active {
    color: #2563eb;
    background: #eff6ff;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.drop-zone {
    border: 2px dashed #e5e7eb;
    padding: 32px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    text-align: center;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #2563eb;
    background: #f8fafc;
}

.drop-zone p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

input[type="file"] {
    display: none;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    margin-top: 8px;
}

button:hover:not(:disabled) {
    background: #1d4ed8;
}

button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.file-info {
    margin: 12px 0;
    font-size: 0.875rem;
    color: #6b7280;
    display: none;
    text-align: center;
}

.input-group {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
    margin-right: 8px;
}

.progress {
    width: 100%;
    height: 3px;
    background: #f3f4f6;
    border-radius: 1.5px;
    overflow: hidden;
    margin: 16px 0;
    display: none;
}

.progress-bar {
    height: 100%;
    background: #2563eb;
    transition: width 0.2s ease;
    width: 0%;
}

.status {
    margin: 16px 0;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.status.success {
    background: #ecfdf5;
    color: #065f46;
}

.status.error {
    background: #fef2f2;
    color: #991b1b;
}

.status.info {
    background: #f0f9ff;
    color: #1e40af;
}

.result {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.file-id {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 8px 0;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #2563eb;
    color: #2563eb;
    word-break: break-all;
}

.view-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.view-link:hover {
    background: #1d4ed8;
}

.file-info-view {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    display: none;
}

.file-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.file-meta {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.media-container {
    padding: 12px;
    text-align: center;
    display: none;
}

.video-player, .audio-player {
    width: 100%;
    border-radius: 12px;
}

.image-viewer {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 12px;
    cursor: zoom-in;
}

.image-viewer.zoomed {
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}

.text-viewer {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    white-space: pre-wrap;
    max-height: 50vh;
    overflow-y: auto;
    line-height: 1.5;
}

.unsupported {
    padding: 16px;
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

.download-section {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #16a34a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.download-link:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    width: auto;
}

.copy-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #16a34a;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Footer Upload Button */
.footer-upload {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.upload-footer-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    margin: 0;
}

.upload-footer-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* Hide tabs when in direct view mode */
.hide-tabs .tabs {
    display: none;
}

.hide-tabs .header {
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .file-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .download-link,
    .copy-btn {
        width: 140px;
        justify-content: center;
    }
}