:root {
    --dark-blue: #0a1929;
    --blue-accent: #1e88e5;
    --light-blue: #64b5f6;
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --card-bg: #132f4c;
    --hover-color: #1a3b5d;
    --error-color: #ff4d4d;
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-blue);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.upload-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.info-box {
    background: rgba(30, 136, 229, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.info-icon {
    color: var(--blue-accent);
    font-size: 24px;
}

.file-drop-area {
    position: relative;
    border: 2px dashed var(--blue-accent);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: rgba(30, 136, 229, 0.05);
}

.file-drop-area.highlight {
    border-color: var(--light-blue);
    background: rgba(30, 136, 229, 0.1);
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.fake-btn {
    background: var(--blue-accent);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fake-btn:hover {
    background: var(--light-blue);
    transform: translateY(-1px);
}

.file-msg {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.preview-container {
    margin: 20px 0;
    text-align: center;
    display: none;
}

.preview-container.show {
    display: block;
}

.file-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.file-info {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    word-break: break-all;
    color: var(--text-secondary);
}

.upload-btn {
    width: 100%;
    padding: 16px;
    background: var(--blue-accent);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: var(--light-blue);
    transform: translateY(-1px);
}

.upload-btn.uploading .btn-text {
    visibility: hidden;
}

.upload-btn.uploading .loader {
    visibility: visible;
}

.loader {
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid var(--text-primary);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progress-container {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--blue-accent);
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.message.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.message.error {
    background: rgba(255, 77, 77, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Style pour la liste des fichiers */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.file-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.file-preview-card {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-preview-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-icon {
    font-size: 48px;
    color: var(--text-secondary);
}

.file-details {
    margin-top: 12px;
}

.file-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.file-meta {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.file-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.file-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: var(--blue-accent);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    flex: 1;
    text-decoration: none !important;
}

.file-btn:hover {
    background: var(--light-blue);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--blue-accent);
    color: var(--blue-accent);
}

.copy-btn:hover {
    background: rgba(30, 136, 229, 0.1);
}

.tooltip {
    position: absolute;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    color: var(--text-primary);
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour le bouton de copie */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

@media (max-width: 480px) {
    .container {
        margin: 20px auto;
    }

    .upload-card {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }
} 