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

:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --secondary: #ef4444;
    --success: #16a34a;
    --error: #dc2626;
    --bg: #000000;
    --bg-light: #1a1a1a;
    --text: #ffffff;
    --text-secondary: #888888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text);
}


.container {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid #dc2626;
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.3), 0 0 50px rgba(220, 38, 38, 0.1);
    max-width: 800px;
    width: 100%;
    padding: 40px;
}

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

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.upload-area {
    border: 3px dashed var(--primary);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(220, 38, 38, 0.05);
}

.upload-area:hover {
    border-color: var(--secondary);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.02);
}

.upload-content svg {
    color: var(--primary);
    margin-bottom: 20px;
}

.upload-content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.upload-content p {
    color: var(--text-secondary);
}

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

.file-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.file-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.link-section {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

.link-input-group {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.link-input-group input {
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.link-input-group button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.link-input-group button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.link-input-group button:active {
    transform: translateY(0);
}

.delete-btn {
    background: var(--error);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.delete-btn:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    padding: 40px;
}

.hidden {
    display: none;
}

.file-icon {
    font-size: 5rem;
}

.spinner {
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-message {
    background: var(--success);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .link-section {
        margin-top: 15px;
        width: 100%;
        flex-direction: column;
    }
    
    .link-input-group {
        width: 100%;
    }
    
    .link-input-group input {
        width: 100%;
    }
}

