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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

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

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.upload-form {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.file-drop-area {
    border: 2px dashed #444;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 25px;
}

.file-drop-area:hover {
    border-color: #667eea;
    background: #222;
}

.file-drop-area.highlight {
    border-color: #667eea;
    background: #222;
}

.file-msg {
    font-size: 1.1em;
    color: #888;
}

.file-drop-area input {
    display: none;
}

.options {
    margin-bottom: 25px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-weight: 500;
}

.option-group select,
.option-group input {
    width: 100%;
    padding: 12px 15px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1em;
}

.option-group select:focus,
.option-group input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.result {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: center;
}

.result h3 {
    color: #4CAF50;
    margin-bottom: 20px;
}

.link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.link-container input {
    flex: 1;
    padding: 12px 15px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.9em;
}

.link-container button {
    padding: 12px 20px;
    background: #444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.link-container button:hover {
    background: #555;
}

.expire-info {
    color: #888;
    font-size: 0.9em;
}
/* прогресс*/
        .file-info {
            background: #222;
            padding: 15px;
            border-radius: 10px;
            margin-top: 10px;
            text-align: left;
            display: none;
            border: 1px solid #333;
        }

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

        .file-size {
            color: #888;
            font-size: 0.9em;
            margin-top: 5px;
        }

        .upload-progress {
            display: none;
            margin-top: 20px;
            text-align: center;
        }

        .upload-progress.show {
            display: block;
        }

        .progress-bar-container {
            width: 100%;
            height: 6px;
            background: #222;
            border-radius: 3px;
            margin: 15px 0;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 3px;
            transition: width 0.3s ease;
            width: 0%;
        }

        .progress-stats {
            display: flex;
            justify-content: space-between;
            font-size: 0.9em;
            color: #888;
            margin-top: 10px;
        }

        .progress-percent {
            font-weight: 600;
            color: #667eea;
        }

        .progress-speed {
            color: #4CAF50;
        }

        .progress-loaded {
            color: #ffa726;
        }

        .file-preview {
            margin-bottom: 20px;
            padding: 20px;
            background: #1a1a1a;
            border-radius: 10px;
            text-align: left;
            border: 1px solid #333;
        }

        .file-preview h4 {
            margin-bottom: 10px;
            color: #ccc;
        }

        .has-file .file-msg {
            color: #667eea;
            font-weight: 500;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
/* енд прогресс*/

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .upload-form {
        padding: 20px;
    }
    
    .link-container {
        flex-direction: column;
    }
}

