@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    background-color: #000000;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 15%, rgba(57, 255, 20, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 20% 85%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: #f1f5f9; /* Jaśniejszy tekst dla lepszego czytania */
    position: relative; /* Potrzebne do pozycjonowania pseudo-elementów */
    overflow-x: hidden; /* Zapobiega pojawieniu się paska przewijania */
}

/* Akcenty po bokach strony */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100px; /* Szerokość marginesu bocznego z .container */
    z-index: -1;
    pointer-events: none;
    opacity: 0.4; /* Delikatna przezroczystość */
}

/* Lewy akcent (fioletowy) */
body::before {
    left: 0;
    background: 
        /* Pionowa linia z gradientem */
        linear-gradient(to bottom, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.5) 50%, rgba(168, 85, 247, 0) 100%);
    background-size: 2px 100%; /* Szerokość linii i pełna wysokość */
    background-position: 50% 50%; /* Wyśrodkowanie linii */
    background-repeat: no-repeat;
}

/* Prawy akcent (neonowy zielony) */
body::after {
    right: 0;
    background: 
        /* Pionowa linia z gradientem */
        linear-gradient(to bottom, rgba(57, 255, 20, 0) 0%, rgba(57, 255, 20, 0.4) 50%, rgba(57, 255, 20, 0) 100%);
    background-size: 2px 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

/* Animowana poświata myszki */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none; /* Pozwala klikać "przez" poświatę */
    z-index: 9999; /* Wyciągnięte na wierzch, aby tło strony go nie zasłaniało */
    margin-left: -150px; /* Wyśrodkowanie względem kursora */
    margin-top: -150px;
    transition: transform 0.05s ease-out; /* Płynne, lekko opóźnione podążanie za kursorem */
    will-change: transform; /* Optymalizacja wydajności */
}

@media (max-width: 768px) {
    #mouse-glow {
        display: none; /* Wyłączamy na telefonach (brak myszki) */
    }
}

/* .container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
} */
.container {
    display: grid;
    /* Użycie minmax(0, 1fr) jest kluczowe, aby kolumna mogła się zwężać */
    grid-template-columns: 280px minmax(0, 1fr) 280px; 
    gap: 20px; 
    padding: 20px; 
    box-sizing: border-box;
    margin-top: 130px; /* Dodany margines górny */
    margin-left: 100px; /* Automatyczny margines wyśrodkowujący */
    margin-right: auto;
    width: calc(100% - 200px); /* Zwężenie o 100px z każdej ze stron */
}
.section { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
h2 { color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.box {
  background: rgba(29, 29, 34, 0.85); /* Jaśniejsze, ciemnoszare tło */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.2); /* Delikatna fioletowa ramka */
  border-top: 3px solid #a855f7; /* Fioletowy akcent na górze */
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.5s ease;
  contain: layout;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95);
  border-color: rgba(168, 85, 247, 0.4);
}

/* Styl dla nagłówków wewnątrz boksów */
.box h2 {
  color: #39ff14; /* Neonowe zielone nagłówki */
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4); /* Efekt świecenia */
  border-bottom: 1px solid rgba(168, 85, 247, 0.3); /* Fioletowa linia podziału */
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pozycjonowanie w prawym górnym rogu - z tłem boxa */
.top-right-auth {
    position: absolute;
    top: -120px;
    right: 130px; /* Wyrównanie do prawej krawędzi prawego boxa (100px marginesu kontenera + 20px paddingu) */
    z-index: 1000;
    background: rgba(45, 45, 52, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-top: 3px solid #a855f7;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
}

/* Styl przycisku Discord */
.btn-discord {
    display: flex;       /* Używamy flexboxa do wyrównania */
    align-items: center; /* Wyśrodkowanie w pionie */
    justify-content: center; /* Wyśrodkowanie w poziomie (jeśli przycisk jest szeroki) */
    gap: 10px;           /* Odstęp między ikoną a tekstem */
    background-color: #5865F2;
    color: white !important; /* Wymuszenie białego tekstu */
    text-decoration: none;
    padding: 6px 12px; /* Zmniejszono padding */
    font-size: 13px; /* Mniejsza czcionka */
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-discord:hover {
    background-color: #4752c4;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

/* Styl dla samej ikony, aby dobrze wyglądała na różnych ekranach */
.btn-discord img {
    display: block;
    width: 16px; /* Zmniejszono ikonę */
    height: auto;
}

/* Widok zalogowanego użytkownika */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px; /* Zmniejszono odstęp */
    margin-top: 0; /* Usunięto margines górny */
}

.avatar {
    width: 80px; /* Powiększono awatar */
    height: 80px;
    border-radius: 50%;
    border: 2px solid #0de618;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 1.05em;
    color: #f8fafc;
}

.btn-logout {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 0.8em;
    margin-top: 5px;
}

.btn-logout:hover {
    text-decoration: underline;
}
.relative-column {
    position: relative;
}
.stream-link {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Odstęp między przyciskami admina */
}

.stream-link-item {
    max-width: 180px; /* Ustal sztywną szerokość poświaty */
    display: block;
    padding: 8px 12px;
    color: #e2e8f0; /* Jaśniejsze napisy w menu */
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    margin-bottom: 4px;
}

/* EFEKT HOVER - Tylko na konkretny element */
.stream-link-item:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5); /* Fioletowa ramka po najechaniu */
    color: #39ff14; /* Neonowy zielony tekst */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    padding-left: 18px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
    transform: translateX(4px);
}

/* Mały wskaźnik przed tekstem pojawiający się przy hoverze */
.stream-link-item::before {
    content: '⚙';
    margin-right: 8px;
    color: #39ff14; /* Neonowa zielona ikona zębatki */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-link-item:hover::before {
    opacity: 1;
}

/* Prosty przycisk bez efektu szkła */
.btn-simple {
    display: inline-block;
    padding: 6px 15px;
    font-size: 13px;
    background: rgba(15, 15, 18, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 6px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-simple:hover {
    border-color: #a855f7;
    color: #fff;
    background: rgba(168, 85, 247, 0.1);
}

/* Małe przyciski akcji (Edytuj / Usuń) w tabelach */
.btn-action-edit {
    font-size: 12px;
    padding: 4px 8px;
    border-color: #39ff14 !important;
    color: #39ff14 !important;
}
.btn-action-edit:hover {
    background: rgba(57, 255, 20, 0.1) !important;
    color: #fff !important;
}

.btn-action-delete {
    font-size: 12px;
    padding: 4px 8px;
    border-color: #ff4444 !important;
    color: #ff4444 !important;
    margin-left: 5px;
    cursor: pointer;
}
.btn-action-delete:hover {
    background: rgba(255, 68, 68, 0.1) !important;
    color: #fff !important;
}

/* Duże przyciski narzędziowe (góra strony: Włącz edycję, Dodaj) */
.btn-tool-green {
    border-color: #39ff14 !important;
    color: #39ff14 !important;
}
.btn-tool-green:hover {
    background: rgba(57, 255, 20, 0.1) !important;
    color: #fff !important;
}

.btn-tool-red {
    border-color: #ff4444 !important;
    color: #ff4444 !important;
}
.btn-tool-red:hover {
    background: rgba(255, 68, 68, 0.1) !important;
    color: #fff !important;
}

.btn-tool-purple {
    border-color: #a855f7 !important;
    color: #a855f7 !important;
}
.btn-tool-purple:hover {
    background: rgba(168, 85, 247, 0.1) !important;
    color: #fff !important;
}

.skill-btn {
    /* Styl skopiowany z .skill-btn-forge dla spójności */
    padding: 12px;
    background: rgba(15, 15, 18, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 8px;
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-btn:hover {
    background: #39ff14;
    color: #000;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
    transform: translateY(-2px); /* Lekkie uniesienie */
}

.skill-btn:active {
    transform: translateY(0); /* Efekt wciśnięcia */
}


.skill-btn:hover::before {
    left: 100%;
}

/* --- Biblioteka (Questy, Potwory) - Nagłówki i Filtry --- */
.library-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 15px;
}
.library-header-left {
    flex: 1;
    min-width: 10px;
}
.library-header-center {
    text-align: center;
    flex: auto;
}
.library-header-center h1 {
    margin: 0 auto !important;
}
.library-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    min-width: max-content;
}
.btn-edit-action {
    text-decoration: none;
    padding: 6px 12px;
    font-size: 13px;
}
.btn-edit-danger {
    border-color: #ff4444;
    color: #ff4444;
}
.library-filter-form {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.library-filter-select {
    font-weight: bold;
    background: rgba(15, 15, 18, 0.9);
    color: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    text-align: center;
}

/* --- Charms Styles --- */
.charms-grid-container {
    display: grid;
    /* Automatycznie zmieści tyle kolumn ile zdoła (minimum 320px szerokości, na dużych ekranach będą 3-4, na telefonach 1) */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.charm-card {
    background: rgba(15, 15, 18, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, border-color 0.3s;
}
.charm-card:hover {
    transform: translateY(-2px);
    border-color: #39ff14;
}
.charm-card-header {
    display: flex;
    gap: 15px;
    align-items: center;
}
.charm-card-image {
    flex-shrink: 0;
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.05);
}
.charm-card-title-area {
    flex-grow: 1;
}
.charm-stat-badge {
    background: rgba(0,0,0,0.3); 
    padding: 4px 8px; 
    border-radius: 4px; 
    border: 1px solid transparent;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 4px;
}
.charm-card-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto; /* Wypycha statystyki na sam dół (równa wysokość kart) */
}
.charm-level-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
}
.header-with-icon {
    display: flex;
    align-items: center; /* Wyśrodkowanie pionowe gifa i tekstu */
    gap: 10px;           /* Odstęp między gifem a napisem */
}

.box-icon {
    width: 32px;         /* Dopasuj rozmiar do wysokości czcionki h2 */
    height: 32px;
    object-fit: contain;
}
/* Style dla stron tekstowych (Regulamin itp.) */
.legal-page {
    padding: 10px;
    line-height: 1.6;
}
h1 {
  /* 1. Układ: To naprawia gify lewo/prawo */
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;

  /* 2. Centrowanie: To naprawia uciekanie do lewej */
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important; /* Zmiana na flex przy szerokości fit-content ułatwia centrowanie marginesem */
  width: fit-content;

  /* 3. Twoje style wizualne */
  padding: 6px 20px;
      background: linear-gradient(145deg, rgba(15, 15, 18, 0.95), rgba(10, 10, 12, 0.95));
  backdrop-filter: blur(8px);
      border: 1px solid rgba(168, 85, 247, 0.5); /* Fioletowa ramka */
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
      color: #39ff14; /* Neonowy zielony tekst */
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5); /* Neonowe świecenie */
  letter-spacing: 1px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

h1 img {
    max-width: 48px;
    height: auto;
    object-fit: contain;
}
.h1-colored {
    color: #ffcc00;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px #000;
}

.h2-colored {
    color: #54491d;
    font-size: 19px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(84, 73, 29, 0.3);
    padding-bottom: 3px;
}

.legal-page ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-page li {
    margin-bottom: 5px;
    color: #4a3b2a; /* Ciemny brąz pasujący do stylu Tibii */
}

.legal-page p {
    margin-bottom: 10px;
}
.box-auto-height {
    align-self: flex-start; /* To blokuje rozciąganie w pionie wewnątrz flexa */
    width: 100%;            /* Zachowuje pełną szerokość kolumny */
    margin-bottom: 10px;    /* Odstęp od dolnego boxa (#mid) */
    height: auto;           /* Wysokość dopasowana do zawartości */
}

.column {
    position: relative; /* Potrzebne, aby logo trzymało się szerokości kolumny */
}

/* Styl dla boxa, który ma być "krótki" */
.box-header-only {
    width: 100%;             /* Chcemy, żeby był szeroki na całą kolumnę */
    height: auto;            /* Wysokość automatyczna do zawartości */
    flex-grow: 0;            /* Zakazujemy mu "puchnięcia" */
    display: block;          /* Standardowy układ blokowy */
    padding: 10px 15px;      /* Możesz nieco zmniejszyć padding dla tego mniejszego boxa */
}

.box-header-only h2 {
    margin: 0;               /* Usuwamy marginesy nagłówka, żeby nie powiększały boxa */
    font-size: 1.2rem;
}

/* Box dolny (mid) */
#mid {
    width: 100%;
    /* flex-grow: 1; */
    overflow-x: auto; 
    overflow-y: visible;
    box-sizing: border-box;
    /* max-height: 100vh; */
}
#mid table {
    max-width: 100%;
    display: table;
    border-collapse: collapse;
    /* Gwarantuje wyśrodkowanie tabeli od pierwszej milisekundy ładowania strony */
    margin-left: auto;
    margin-right: auto;
}

#mid img:not(.event-select img):not(.outfit-select img):not(.skill-select img):not(.forge-gif-icon) {
    max-width: 100%;
    height: auto;
}

/* --- BAZOWY SZKIELET KUŹNI (Zapobiega mignięciu podczas ładowania AJAX) --- */
.forge-overlay {
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}
.forge-gif-icon {
    width: 32px !important;
    height: 32px !important;
}

.middle-column {
    position: relative; /* Potrzebne, aby szybkie linki trzymały się środkowej kolumny */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}


.middle-column .box {
    width: 100%;
    box-sizing: border-box; /* Padding nie zwiększa szerokości */
    overflow: hidden;       /* Zapobiega wystawaniu treści poza box */
    word-wrap: break-word;  /* Rozbija długie wyrazy, jeśli by się pojawiły */
}

/* 3. Specyficzna poprawka dla boxa nagłówkowego */
.box-header-only {
    flex-shrink: 0; 
}

/* 4. Zapewnienie, że h2 w środku nie wypycha kontenera */
.middle-column h2 {
    max-width: 100%;
    white-space: nowrap;    /* Zapobiega zawijaniu, ale... */
    overflow: hidden;       /* ...jeśli tekst jest za długi, zostanie ucięty... */
    text-overflow: ellipsis; /* ...i dodane zostaną kropki (...) */
}

.event-select, .outfit-select, .skill-select {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.event-select label, .outfit-select label, .skill-select label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

/* Naprawa obrazków wewnątrz tych kontenerów */
.event-select img, .outfit-select img, .skill-select img {
    display: inline-block; /* Przywraca obrazki obok siebie */
    width: 32px;           /* Stała szerokość dla ikon skilli/eventów */
    height: 32px;
    margin-bottom: 5px;
}

/* Specyficzna poprawka dla outfitów, które mogą być większe */
.outfit-select img {
    width: 64px;
    height: 64px;
}

/* Kontener nawigacji - dodajemy wyśrodkowanie */
.tabs-nav {
    display: flex;
    justify-content: center; /* To wyśrodkowuje zakładki w poziomie */
    gap: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    width: 100%;
}

/* Pojedyncza zakładka */
.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    position: relative;
    top: 2px;
    background: transparent;
}

.tab-text {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Zakładka aktywna */
.tab-item.active {
    background: rgba(168, 85, 247, 0.15); /* Fioletowe tło */
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-bottom: 2px solid #a855f7; /* Fioletowy pasek */
}

.tab-item.active .tab-text {
    color: #39ff14; /* Neonowy zielony tekst na fioletowej zakładce */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

/* Efekt hover */
.tab-item:hover:not(.active) .tab-text {
    color: #39ff14; /* Neonowy zielony hover na nieaktywnych zakładkach */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
    transform: translateY(-1px);
    display: inline-block;
}

/* Logika wyświetlania treści */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease; /* Używamy Twojej animacji fadeIn! */
}

.tab-content.active {
    display: block;
}
.tab-item {
    outline: 0 !important;
    outline: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Usuwamy wszelkie efekty cienia/tła w momencie samego naciśnięcia */
.tab-item:active, .tab-item:focus {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* --- LOGO --- */
.main-logo-container {
    position: absolute;
    top: -180px; /* Wyciąga logo do góry w pusty margines */
    left: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
}
.main-logo-container img {
    max-width: 70%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4)); /* Fioletowy blask dla logo */
    transition: transform 0.3s ease, filter 0.3s ease;
}
.main-logo-container img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.6)); /* Zielony blask przy najeździe */
}

/* --- SZYBKIE LINKI --- */
.quick-links-container {
    position: absolute;
    top: -100px; /* Wyciąga linki do góry w pusty margines */
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #39ff14; /* Neonowy zielony border */
    background: rgba(15, 15, 18, 0.85); /* Ciemne tło */
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3), inset 0 0 10px rgba(57, 255, 20, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}
.quick-link img {
    max-width: 32px;
    max-height: 32px;
    image-rendering: pixelated;
}
.quick-link:hover {
    transform: translateY(-5px) scale(1.1); /* Podskakuje do góry i lekko się powiększa */
    box-shadow: 0 5px 20px rgba(57, 255, 20, 0.6), inset 0 0 15px rgba(57, 255, 20, 0.3);
    background: rgba(57, 255, 20, 0.1);
    border-color: #fff;
}

/* --- Przycisk Wyloguj (czerwony) --- */
.quick-link-logout {
    border-color: #ff4444; /* Neonowy czerwony border */
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3), inset 0 0 10px rgba(255, 68, 68, 0.1);
}
.quick-link-logout:hover {
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.6), inset 0 0 15px rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.15);
}

/* --- PRAWY PANEL SZYBKICH LINKÓW (PIONOWY) --- */
.right-sidebar-links {
    position: absolute;
    top: -120px; /* Zaczyna się na równi z górną krawędzią głównego kontenera */
    right: 50px; /* Umieszczone w prawym pustym marginesie */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* Tooltipy dla prawego panelu - pojawiające się z lewej strony przycisku */
.tooltip-left[data-tooltip]::after {
    bottom: 50%;
    left: auto;
    right: 100%;
    transform: translateY(50%);
    margin-right: 12px;
}

/* --- Monsters Page Styles --- */

.page-header-box {
    border: 3px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.page-header-title {
    letter-spacing: 2px;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
}

.page-header-text {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(0,0,0,0.95);
    border: 2px solid #3a2d1a;
    border-radius: 6px;
    font-size: 26px;
    font-weight: 800;
    color: #ffd37a;
    letter-spacing: 1px;
}

/* Result Table */
.result-table td {
    padding: 8px 10px;
    border-top: 2px solid rgba(168, 85, 247, 0.3);
    border-left: 2px solid rgba(168, 85, 247, 0.3);
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
    border-right: 2px solid rgba(168, 85, 247, 0.3);
    color: #ddd;
    font-size: 14px;
    background: rgba(37, 36, 36, 0.25);
    text-align: center;
}


.result-table tr:hover td {
    background: rgba(168, 85, 247, 0.1);
}

.weapon-icon {
    vertical-align: middle;
    margin-right: 6px;
}

/* Search & Pagination Helpers */
.monster-search-form {
    text-align: center; 
    margin-bottom: 15px;
}

.monster-search-input {
    font-weight: bold;
    background: rgba(15, 15, 18, 0.9);
    color: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    text-align: center;
    width: 250px;
}

.no-results {
    text-align: center;
    color: #4a3b2a;
    font-weight: bold;
}

.monster-link {
    font-weight: bold;
    color: #39ff14; /* Neonowy zielony */
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.monster-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8), 0 0 20px rgba(57, 255, 20, 0.4);
    letter-spacing: 0.5px; /* Delikatne rozciągnięcie przy najechaniu */
}

.pagination-info {
    font-weight: bold; 
    color: #4a3b2a;
    margin: 0 5px;
}
.pagination-container {
    text-align: center;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.boxes-wrapper {
    display: flex;       /* Włącza tryb obok siebie */
    gap: 20px;          /* Robi odstęp między boksami */
    width: 100%;        /* Cała szerokość strony */
    align-items: flex-start; /* Zapobiega rozciąganiu boksów w pionie */
}

.boxes-wrapper .box {
    flex: 1;            /* Sprawia, że oba boksy mają taką samą szerokość */
    max-width: 100%;     /* Pilnuje, żeby nie wyszły poza połowę */
    margin-bottom: 15px;   /* Możesz usunąć margin dolny, jeśli są obok siebie */
}

/* Opcjonalnie: na telefonach ustaw z powrotem jeden pod drugim */
@media (max-width: 768px) {
    .boxes-wrapper {
        flex-direction: column;
    }
    .boxes-wrapper .box {
        max-width: 100%;
    }
}

/* --- ADMIN FORMS GLOBAL STYLES --- */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
.input-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.input-row label {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95em;
}
.admin-input, .admin-textarea {
    width: 100%;
    background: rgba(15, 15, 18, 0.9);
    color: #f1f5f9;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.admin-input:focus, .admin-textarea:focus {
    outline: none;
    border-color: #39ff14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}
.admin-textarea {
    resize: vertical;
    min-height: 100px;
}
.admin-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.admin-btn {
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    min-width: 150px;
}
.admin-btn-save {
    background: rgba(15, 15, 18, 0.8);
    border-color: rgba(168, 85, 247, 0.5);
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}
.admin-btn-save:hover {
    background: #39ff14;
    color: #000;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
    transform: translateY(-2px);
}
.admin-btn-cancel {
    background: rgba(15, 15, 18, 0.8);
    border-color: rgba(136, 136, 136, 0.5);
    color: #aaa;
    text-shadow: 0 0 8px rgba(136, 136, 136, 0.4);
}
.admin-btn-cancel:hover {
    background: #888;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(136, 136, 136, 0.6);
    transform: translateY(-2px);
}
.admin-btn-delete {
    background: rgba(15, 15, 18, 0.8);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}
.admin-btn-delete:hover {
    background: #dc3545;
    color: #fff;
    border-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
    transform: translateY(-2px);
}