:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --error: #ef4444;
    --radius: 8px;
    --font-family: system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
}

header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rgpd-group {
    flex-direction: row;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rgpd-group input {
    margin-top: 4px;
}

label {
    font-weight: 500;
}

input[type="file"] {
    padding: 10px;
    background-color: var(--bg-color);
    border: 1px solid #334155;
    border-radius: var(--radius);
    color: var(--text-main);
    width: 100%;
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--accent-hover);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#resultsSection {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

#resultsSection h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #22c55e;
}

#linksList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#linksList li a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
    font-size: 0.9rem;
}

#linksList li a:hover {
    text-decoration: underline;
}

.spin {
    animation: spin 1s linear infinite;
}

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

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    header h1 {
        font-size: 1.25rem;
    }
}