@import url('https://fonts.googleapis.com/css2?family=Bungee&family=UnifrakturCook:wght@700&display=swap');

body
{
    position: relative;
    font-family: sans-serif;
    background-image: url('/img/wallpaper.jpeg');
    background-attachment: fixed;
    background-size: cover;
    color: #eee;
    box-sizing: border-box;
}

.logo
{
    position: relative;
    display: block;
    font-family: "UnifrakturCook", cursive;
    font-size: 6em;
    width: 512px;
    line-height: 60px;
    margin-top: 40px;
    color:white;
    text-decoration: none;
}

.logo div
{
    font-family: "Bungee", sans-serif;
    font-size: 0.4em;
    text-align: center;
    color:#2d80ff
}

.refresh-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #e6e6e6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


.refresh-btn img
{
    width: 20px;
}

#refresh-haut
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:0 10px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px #2d80ff44;
  max-width: 600px;
}

.tab-wrapper
{
  margin: 30px auto 0 auto;
  border-radius: 16px;
/* backdrop-filter: blur(14px);
  box-shadow: 0 0 16px #00000033;*/
  position: relative;
}

/* Onglets */
.tab-header {
  display: flex;
  gap: 1px;
  background: transparent;
  padding: 0;
  width: 500px;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    background: rgba(255, 255, 255, 0.07);
    color: #cdd5f3;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: rgba(45, 128, 255, 0.15);
    color: #ffffff;
    border-bottom: 2px solid #2d80ff;
    box-shadow: inset 0 -2px 6px #2d80ff66, 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Contenu encadré */
.tab-body {
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
    min-height: 300px;
    padding-bottom: 20px;
}

.tab-content.hidden {
    display: none;
}

#table-section {
  position: relative;
}

#table-container.loading {
  max-height: 250px;
  transition: min-height 0.2s ease-in-out;
  overflow: hidden;
}

.loader
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(6px);
    z-index: 10;
    display: none; /* caché par défaut */
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.loader-content
{
    text-align: center;
    color: #fff;
    display: flex;
    gap: 25px;
    font-family: "Bungee", sans-serif;
    font-size: 1em;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #2d80ff44;
    border-top: 5px solid #2d80ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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