/* Thème sombre global */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 20px;
}

/* Titres */
h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

/* Liens */
a {
    color: #4cafef;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Boutons */
button {
    background-color: #584a79;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #333333;
}
/* Boutons */
.button {
    background-color: #584a79;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #333333;
}

#main {
    max-width: 1000px;   /* Largeur maximale */
    min-width: 400px;    /* Largeur minimale */
    width: 90%;          /* Largeur flexible par rapport à l’écran */
    margin: 0 auto;      /* Centrage horizontal */
    padding: 20px;       /* Espacement interne */
    background-color: #1e1e1e; /* Fond sombre pour le thème */
    border-radius: 8px;  /* Coins arrondis */
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Ombre pour relief */
}

/* Zone de statut et messages */
#status, p {
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
}

/* Barre supérieure : titre + déconnexion */
#topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
#topbar h2 {
    margin: 0;
}
#logoutBtn {
    background-color: #3a3a3a;
    font-size: 13px;
    padding: 6px 12px;
}

/* Messages */
.warning {
    color: #ffcc66;
    border: 1px solid #665522;
    background: #2a2417;
    border-radius: 4px;
    padding: 10px 14px;
}
.warning code, .hint code {
    color: #ffffff;
}
button.danger {
    background-color: #6b2b2b;
}
button.copy-link {
    font-size: 12px;
    padding: 4px 10px;
    margin-left: 8px;
}

/* Lien de partage du fichier qui vient d'être envoyé */
#shareBox {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    max-width: 640px;
}
#shareBox input {
    flex: 1;
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 8px;
    font-family: monospace;
}

/* Choix du mode de téléversement */
#modeSelector {
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 14px 0;
}
#modeSelector legend {
    color: #ffffff;
    font-size: 14px;
    padding: 0 6px;
}
#modeSelector label {
    display: block;
    margin: 6px 0;
    cursor: pointer;
}
#modeSelector .hint {
    color: #9e9e9e;
    font-size: 12px;
}

#actions {
    display: flex;
    gap: 10px;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#cancelBtn {
    background-color: #4a4a4a;
}

/* Barre de progression */
#progressContainer {
    width: 100%;
    max-width: 480px;
    background: #2c2c2c;
    border: 1px solid #444;
    margin-top: 10px;
    border-radius: 4px;
}
#progressBar {
    width: 0%;
    height: 20px;
    background: #4caf50;
    border-radius: 4px;
    transition: width 0.2s linear;
}
#progressDetail {
    color: #9e9e9e;
    font-size: 13px;
    margin-top: 4px;
    min-height: 18px;
}

/* Tableau */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1e1e1e;
}
th, td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #2c2c2c;
    color: #ffffff;
}
td {
    color: #e0e0e0;
}

/* Formulaire */
input[type="file"] {
    color: #e0e0e0;
    background-color: #1f1f1f;
    border: 1px solid #333;
    padding: 6px;
    border-radius: 4px;
}

/* Messages d'erreur et succès */
.success {
    color: #4caf50;
}
.error {
    color: #ff5252;
}

#banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    width: 475px; /* Ajuste la taille */
}

#logo:hover {
    animation: woggle 2s infinite ease-in-out;
}

/* Animation woggle */
@keyframes woggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    50% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}