body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #1f1c2c, #928dab);
  color: white;
  min-height: 100vh;
}

.container {
  text-align: center;
  padding:1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 2;
  width: 100%;
  justify-content: center;
  align-items: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  margin-top:0;
}

h2 {
  margin-top:0;
  margin-bottom: 1rem;
}

hr {
  border-top:1px solid #000000e5;
  margin:20px 0;
  border-right:0;
  border-left:0;
  border-bottom: 0;
}

p + p {
  margin-top:10px;
}

label {
  display: block;
  text-align: left;
  margin-bottom:10px;
}

form {
  display:flex;
  flex-direction: column;
  align-items: start;
}

form label, label + input {
  margin-bottom:10px;
}

label + input {
  margin-top: 0 !important;
}

.card-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card, .clip-card {
  background-color: #2e2e3a;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  border-radius: 2px;
}

.card:hover, .clip-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.clip-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.clip-card p {
  font-size: 0.95rem;
  color: #f1c40f;
  margin: 0.5rem 0;
}

.clip-card .fallback {
  color: #ccc;
  font-style: italic;
  font-size: 0.9rem;
}

.clip-card form {
  margin-top: 1rem;
}

.clip-card button,
.card button,
.button-row button,
.login-form button {
  background-color: #ff4757;
  border: none;
  padding: 0.7rem 1.5rem;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 2px;
}

.clip-card button:hover,
.card button:hover,
.button-row button:hover,
.login-form button:hover {
  background-color: #e84118;
}

.logout button {
  margin-left: auto;
  padding: 5px 10px;
  border: 2px solid #2f2f2f;
    border-top-color: rgb(47, 47, 47);
    border-right-color: rgb(47, 47, 47);
    border-bottom-color: rgb(47, 47, 47);
    border-left-color: rgb(47, 47, 47);
  background-color: #2f2f2f;
  color: white;
  font-weight: normal;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 13px;
}

.logout button:hover {
  background-color: white;
  color: #2f2f2f;
  border-color: white;
  box-shadow: 0 4px 10px rgba(229, 38, 33, 0.4);
  transform: translateY(-1px);
  cursor: pointer;
}

.card.twitch button {
  background-color: #6441a5;
}

.card.twitch button:hover {
  background-color: #7d5fff;
}

.card.youtube button {
  background-color: #ff4757;
}

.card.youtube button:hover {
  background-color: #ff6b6b;
}

.clips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2rem;
  padding: 1rem;
}

.clip-card {
  background-color: #2e2e3a;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clip-card h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.clip-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.5rem 0;
}

.clip-card video {
  margin-top: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2e2e3a;
  min-width: 180px;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  top: 100%; /* Juste en dessous du lien */
  left: 0;
  overflow: hidden;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.profile-link {
  display: flex;
  align-items: center;
  padding-right: 20px;
  margin-right: 20px;
  color: white;
  text-decoration: none;
  border-right:1px solid #7d5fff;
}

.profile-link svg {
  font-size:30px;
  color: white;
}

.profile-link.current svg,
.profile-link svg:hover {
  color:#7d5fff;
}

.video-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-button {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #2e2e3a;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 2px;
}

.tab-button.active {
  background-color: #7d5fff;
}

.clips-section {
  display: none;
}

.clips-section.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

video {
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.button-row {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


.loader {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.loader.show {
  display: flex;
  opacity: 1;
}

.loader p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: white;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s infinite;
  border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes lds-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.link-button .icon {
  margin-right: 0.5rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

#confirmation-badge {
  display: none;
  margin-top: 1rem;
  background: #2ecc71;
  color: white;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-5px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-5px); }
}

.login-card {
  max-width: 400px;
  margin: 0 auto;
  background-color: #2e2e3a;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.login-form {
  gap: 1.5rem;
}

.login-form input {
  margin:0;
  border: none;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
  transition: background 0.3s, box-shadow 0.3s;
  width:calc(100% - 2.4rem);
  border-radius: 2px;
}

.login-form input::placeholder {
  color: #bbb;
}

input:focus,
input:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px #ff4757;
  border:none;
}

.logout-form {
  position: absolute;
  top: 20px;
  right: 20px;
}

.navbar {
  position: relative;
  background-color: #1e1e2f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-left {
  display: flex;
  padding:10px;
  flex:2;
}

.nav-left a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
  padding:10px;
  border-radius: 2px;
}

.nav-left a + a {
  margin-left:5px;
}

.nav-left a:hover,
.nav-left .current {
  background-color: #7d5fff;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-direction: row;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  color: black;
  border-radius: 2px;
  box-shadow: 1px 2px 5px rgba(0,0,0,.05);
}

table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

table th {
  background-color: lightgray;
  font-weight: 600;
  text-align: center;
  border-right:1px solid rgb(112, 110, 110);
  color:rgb(112, 110, 110);
}

table th:first-child {
  border-top-left-radius: 2px;
}

table th:last-child {
  border-top-right-radius: 2px;
  border-right:none;
}

table th,
table td {
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table td.center {
  text-align: center;
}

table td hr {
  border-top:1px solid silver;
}

table td form {
  display:inline-flex;
}

.clips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2rem;
  padding: 1rem;
}

.bulk-actions {
  margin: 1em 0;
  display: flex;
  gap: 1em;
}

.bulk-actions button {
  padding: 0.4em 0.8em;
  font-weight: bold;
  cursor: pointer;
  background: white;
  border: none;
  border-radius: 2px;
}

button.primary-button {
  background-color: #7d5fff;
  border: none;
  padding: 0 1rem;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  height: 40px;
  border-radius: 2px;
  white-space: nowrap;
}

button.primary-button:hover {
  background-color: #a184ff;
}

.primary-button:disabled,
.primary-button[disabled] {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  border: 1px solid #aaa;
  pointer-events: none;
  transition: none;
}

.primary-button:disabled:hover {
  background-color: #ccc;
}

.action-icon {
  opacity: 1;
  font-size: 1.2em;
  transition: transform 0.2s, color 0.2s;
  text-decoration: none;
}

.action-icon:hover {
  transform: scale(1.2);
  color: #00afff;
}

.action-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #7d5fff; /* violet franc */
  border: none;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
  border-radius: 2px;
}

.action-button:hover {
  background-color: #a184ff; /* version un peu plus claire au hover */
  transform: translateY(-2px);
}

/* === 🎮 Amélioration visuelle spécifique à la page Streamers === */
.streamers-table .action-icon {
  opacity: 1;
  font-size: 1.3em;
  color: #ccc;
  transition: transform 0.2s, color 0.2s;
  text-decoration: none;
}

.streamers-table .action-icon:hover {
  color: #00afff;
  transform: scale(1.25);
}

.streamers-table .status-yes {
  color: #2ecc71;
}

.streamers-table .status-no {
  color: #ff4757;
}

@media (max-width: 768px) {
  .streamers-table th,
  .streamers-table td {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .bulk-actions {
    flex-direction: column;
    align-items: center;
  }
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-x: auto;
}

.modal.hidden {
  display: none;
}

.modal .alert {
  top: 10px;
  right:0;
  min-width: auto;
}

.modal-content {
  background: #2e2e3a;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  min-width: 400px;
  position: absolute;
  top: 20px;
}

.modal-section {
  margin: 1.5rem 0;
  text-align: left;
}

input {
  padding: 0 1.2rem;
  border: none;
  width: calc(100% - 2.4rem);
  max-width: 420px;
  height: 40px;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  transform: scale(1.2);
  color: #ff6b6b;
}

.pagination-container {
  border-top:1px solid #2e2e3a;
  margin-top: 2rem;
  padding-top:2rem;
}

.pagination {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination.active {
  display:flex;
}

.pagination .action-button.active {
  background-color: #00afff;
  font-weight: bold;
  pointer-events: none;
}

.pagination span {
  display: inline-block;
  padding: 0.4rem 0.6rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-bottom: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.alert{
  padding: 15px 52.5px;
  min-width: 420px;
  position: absolute;
  right: 10px;
  top: 73px;
  border-radius: 4px;
  display:none;
  z-index: 99999;
}

.alert.show{
  animation: show_slide 1s ease forwards;
  display: block;
}

@keyframes show_slide {
  0%{
    transform: translateX(100%);
  }
  40%{
    transform: translateX(-10%);
  }
  80%{
    transform: translateX(0%);
  }
  100%{
    transform: translateX(-10px);
  }
}

.alert.hide{
  animation: hide_slide 1s ease forwards;
}

@keyframes hide_slide {
  0%{
    transform: translateX(-10px);
  }
  40%{
    transform: translateX(0%);
  }
  80%{
    transform: translateX(-10%);
  }
  100%{
    transform: translateX(100%);
  }
}

.alert .fa-circle-exclamation{
  position: absolute;
  left: 20px;
  top: calc(50% - 15px);
  font-size: 30px;
}

.alert .msg{
  padding: 0 20px;
  font-size: 18px;
}

.alert .close-btn{
  position: absolute;
  right: 0px;
  top: 0;
  padding: 0 18px;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
}

.alert .close-btn .fa-xmark{
  font-size: 22px;
  line-height: 40px;
}

.alert.avertissement {
  background: #ffdb9b;
  border-left: 8px solid #ffa502;
}

.alert.avertissement .fa-circle-exclamation,
.alert.avertissement .msg,
.alert.avertissement .close-btn .fa-xmark {
  color: #ce8500;
}

.alert.avertissement .close-btn {
  background: #ffd080;
}

.alert.success {
  background: #c3f3d7;
  border-left: 8px solid #2dd472;
}

.alert.success .fa-circle-exclamation,
.alert.success .msg,
.alert.success .close-btn .fa-xmark {
  color: #21ac5a;
}

.alert.success .close-btn {
  background: #95eab8;
}

.alert.error {
  background: #ffe0e3;
  border-left: 8px solid #ff4656;
}

.alert.error .fa-circle-exclamation,
.alert.error .msg,
.alert.error .close-btn .fa-xmark {
  color: #ff4556;
}

.alert.error .close-btn {
  background: #ff99a3;
}

.alert.info {
  background: #d7f0ff;
  border-left: 8px solid #70c8ff;
}

.alert.info .fa-circle-exclamation,
.alert.info .msg,
.alert.info .close-btn .fa-xmark {
  color: #3cb5ff;
}

.alert.info .close-btn {
  background: #98d7ff;
}