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

:root {
    --primary-color: #991b1b;
    --primary-hover: #7f1d1d;
    --success-color: #991b1b;
    --danger-color: #7f1d1d;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 50%, #1a0505 100%);
    min-height: 100vh;
    color: var(--text-primary);
    padding: 20px;
}

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

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

.logo {
    font-size: 64px;
    font-weight: 900;
    color: #b91c1c;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 8px;
    animation: fadeInDown 0.6s ease-out;
}

main {
    animation: fadeInUp 0.6s ease-out;
}

.upload-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin: 15px 0;
}

.file-info {
    font-size: 13px;
    margin-top: 20px !important;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(127, 29, 29, 0.5);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #450a0a;
    transform: translateY(-1px);
}

.btn-download-big {
    background: linear-gradient(135deg, var(--primary-color), #b91c1c);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 6px 20px rgba(153, 27, 27, 0.5);
    letter-spacing: 1px;
}

.btn-download-big:hover {
    background: linear-gradient(135deg, #b91c1c, var(--primary-hover));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(153, 27, 27, 0.7);
}

.btn-download-big:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(153, 27, 27, 0.5);
}

.btn-download {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-copy {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

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

.password-option {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.password-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 15px;
}

.password-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.password-option input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.password-option input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.uploads-container {
    margin-bottom: 30px;
}

.upload-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upload-filename {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.upload-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar-container {
    background: var(--bg-color);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        #b91c1c 25%, 
        #dc2626 50%, 
        #b91c1c 75%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 10px rgba(153, 27, 27, 0.5);
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.upload-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.files-list {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.files-list.show {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.files-list h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.file-item {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.file-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.file-item-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    flex: 1;
    word-break: break-word;
    margin-right: 15px;
}

.file-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

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

.link-input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    background: white;
    margin-bottom: 12px;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    font-size: 14px;
    opacity: 0.9;
}

.success-message {
    background: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
}

.error-message {
    background: var(--danger-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 48px;
    }
    
    .upload-section {
        padding: 25px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-icon {
        width: 60px;
        height: 60px;
    }
    
    .upload-area h2 {
        font-size: 20px;
    }
    
    .file-item-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-download,
    .btn-copy,
    .btn-danger {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Sekcja Narzędzia */
.tools-section {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

.tools-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: white;
}

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

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--primary-color);
}

.tool-card:hover {
    background: rgba(153, 27, 27, 0.2);
    border-color: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(153, 27, 27, 0.3);
}

.tool-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.tool-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #b91c1c;
}

.tool-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.auto-delete-info {
    color: var(--primary-color);
    font-weight: 500;
}
