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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1em;
}

main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.upload-section {
    margin-bottom: 40px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: #999;
    background: #fafafa;
}

.upload-area.dragover {
    border-color: #333;
    background: #f0f0f0;
}

.upload-icon {
    width: 60px;
    height: 60px;
    color: #999;
    margin-bottom: 15px;
    stroke-width: 1.5;
}

.upload-area p {
    color: #666;
    font-size: 1em;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    background: #555;
}

.btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.files-section {
    margin-top: 30px;
}

.files-section h2 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.file-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.file-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-item.uploading {
    opacity: 0.6;
    pointer-events: none;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
    font-size: 0.95em;
}

.file-status {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 8px;
}

.file-link {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #666;
    word-break: break-all;
    margin-bottom: 10px;
    font-family: monospace;
    display: none;
}

.file-link.show {
    display: block;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    flex: 1;
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy {
    background: #e8e8e8;
    color: #333;
}

.btn-copy:hover {
    background: #ddd;
}

.btn-copy.copied {
    background: #4caf50;
    color: white;
}

.btn-delete {
    background: #f5f5f5;
    color: #999;
}

.btn-delete:hover {
    background: #ffebee;
    color: #d32f2f;
}

.empty-text {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }
    
    main {
        padding: 20px;
    }
    
    .file-list {
        grid-template-columns: 1fr;
    }
}

/* @budding */
