/* CSS moderne et épuré pour la plateforme d'upload/partage */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding: 0;
}
header {
  background: #222;
  color: #fff;
  padding: 1.5rem 2rem;
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.container {
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 2rem;
}
.upload-area {
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #888;
  cursor: pointer;
  margin-bottom: 2rem;
  background: #fafafa;
  transition: border-color 0.2s;
}
.upload-area.dragover {
  border-color: #007bff;
  color: #007bff;
}
.file-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.file-table th, .file-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.file-table th {
  background: #f0f0f0;
}
.file-table tr.selected {
  background: #e6f7ff;
}
.action-bar {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
}
button, .btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn:hover {
  background: #0056b3;
}
input[type="search"] {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}
.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  min-width: 220px;
  background: #333;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-20px);
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
@media (max-width: 700px) {
  .container { padding: 1rem; }
  header { font-size: 1.2rem; padding: 1rem; }
  .modal-content { padding: 1rem; }
}
