@charset "UTF-8";
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            max-width: 700px;
            width: 100%;
            padding: 40px;
        }

        /* Style pour le bouton de retour au portail */
        .portal-return-btn {
            background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 20px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .portal-return-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
        }

        h1 {
            color: #667eea;
            margin-bottom: 10px;
            font-size: 2em;
            text-align: center;
        }

        .subtitle {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
        }

        .info-badge {
            background: #e3f2fd;
            color: #1565c0;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            font-size: 14px;
        }

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

        .upload-area:hover {
            background: #f8f9ff;
            border-color: #764ba2;
        }

        .upload-area.dragover {
            background: #f0f4ff;
            border-color: #764ba2;
        }

        .upload-icon {
            font-size: 50px;
            margin-bottom: 15px;
        }

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

        .security-options {
            background: #f8f9ff;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 2px solid #e0e7ff;
        }

        .security-title {
            font-weight: bold;
            color: #667eea;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            cursor: pointer;
        }

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

        .checkbox-group label {
            cursor: pointer;
            color: #333;
            font-weight: 500;
        }

        .password-field, .download-limit-field {
            display: none;
            margin-top: 10px;
            animation: slideDown 0.3s ease;
        }

        .password-field.show, .download-limit-field.show {
            display: block;
        }

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

        .password-input-group {
            position: relative;
        }

        .password-input-group input, .download-limit-input input {
            width: 100%;
            padding: 12px 40px 12px 12px;
            border: 2px solid #e0e7ff;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .password-input-group input:focus, .download-limit-input input:focus {
            outline: none;
            border-color: #667eea;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 18px;
            color: #666;
        }

        .password-hint {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }

        .zip-info {
            background: #e8f5e9;
            color: #2e7d32;
            padding: 10px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 13px;
            display: none;
        }

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

        .btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 16px;
            cursor: pointer;
            transition: transform 0.2s;
            width: 100%;
            margin-top: 10px;
        }

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

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

        .view-files-btn {
            background: #9c27b0;
            margin-top: 10px;
        }

        .cancel-upload-btn {
            background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
            margin-top: 10px;
        }

        .cancel-upload-btn:hover {
            box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
        }

        .clear-all-btn {
            background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
            padding: 8px 16px;
            font-size: 14px;
            width: auto;
            margin: 0;
        }

        .clear-all-btn:hover {
            box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
        }

        .files-list {
            margin: 20px 0;
            display: none;
        }

        .files-list.show {
            display: block;
        }

        .file-item {
            background: #f8f9ff;
            padding: 12px 15px;
            border-radius: 10px;
            margin: 10px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .file-item-info {
            flex: 1;
        }

        .file-item-name {
            font-weight: 500;
            color: #333;
        }

        .file-item-size {
            font-size: 13px;
            color: #666;
            margin-top: 4px;
        }

        .file-remove {
            background: #ff5252;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }

        .progress-container {
            margin: 20px 0;
            display: none;
        }

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

        .progress-item {
            background: #f8f9ff;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .progress-label span:first-child {
            font-weight: 500;
            color: #333;
        }

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

        .progress-bar {
            height: 30px;
            background: #e0e7ff;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
            transition: width 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 14px;
        }

        .transfer-stats {
            margin-top: 10px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            font-size: 13px;
        }

        .stat-item {
            background: white;
            padding: 8px;
            border-radius: 6px;
            text-align: center;
        }

        .stat-label {
            color: #666;
            font-size: 11px;
            margin-bottom: 4px;
        }

        .stat-value {
            color: #667eea;
            font-weight: bold;
            font-size: 14px;
        }

        .chunk-info {
            margin-top: 8px;
            font-size: 12px;
            color: #666;
            text-align: center;
        }

        .link-result {
            margin: 20px 0;
            display: none;
        }

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

        .link-item {
            background: #f8f9ff;
            padding: 15px;
            border-radius: 10px;
            margin: 10px 0;
        }

        .link-item-name {
            font-weight: 500;
            color: #333;
            margin-bottom: 8px;
        }

        .link-item-url {
            background: white;
            padding: 12px;
            border-radius: 6px;
            word-break: break-all;
            color: #667eea;
            border: 2px solid #e0e7ff;
            font-family: 'Courier New', monospace;
            font-size: 14px;
        }

        .password-reminder {
            background: #fff3cd;
            color: #856404;
            padding: 10px;
            border-radius: 6px;
            margin-top: 10px;
            font-size: 13px;
        }

        .error-message {
            background: #ffebee;
            color: #c62828;
            padding: 12px;
            border-radius: 8px;
            margin: 10px 0;
            display: none;
        }

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

        @media (max-width: 600px) {
            .container {
                padding: 20px;
            }

            h1 {
                font-size: 1.5em;
            }

            .transfer-stats {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .portal-return-btn {
                width: 100%;
                justify-content: center;
                margin-bottom: 15px;
            }

            .files-list > div:first-child {
                flex-direction: column;
                gap: 10px;
            }

            .clear-all-btn {
                width: 100%;
            }
        }
