/* Django form errors */
ul.errorlist {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: rgba(239, 68, 68, 0.95);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

ul.errorlist li {
    margin: 0;
    padding-left: 1.6rem;
    position: relative;
}

ul.errorlist li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0.05rem;
    opacity: 0.9;
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY – dark background */
body {
    background-color: #141414;
    /* deep gray/black */
    color: #f2f2f2;
    font-family: 'Verdana', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff00;
    transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #21cf21;
}

/* HEADER – soft greenish gradient */
header#main-navigation {
    width: 100%;
    padding: 1rem 2rem;
    margin-bottom: 1rem;

    /* Subtle greenish gradient */
    background: linear-gradient(to right, #0b290b, #102210);

    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;

    /* Soft glow on the bottom edge */
    box-shadow: 0 3px 8px rgba(0, 128, 0, 0.3);
}

/* LOGO in the header */
#logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #60ff60;
    /* Greenish neon */
    text-shadow: 0 0 5px #00ff00;
    transition: color 0.3s, text-shadow 0.3s;
}

#logo a:hover {
    color: #aaffaa;
    text-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00;
}

/* NAV placeholder */
header#main-navigation nav {
    display: flex;
    gap: 2rem;
    /* spacing for future menu links */
}

/* NAV links (if you add them) */
header#main-navigation nav a {
    color: #f2f2f2;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

header#main-navigation nav a:hover {
    color: #aaffaa;
}

/* Save Slot navigation link - highlighted with animation */
.nav-saveslot {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a1a !important;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: none;
    transition: all 0.3s;
    animation: saveslot-glow 2s ease-in-out infinite;
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1.4;
}

.nav-saveslot::before {
    content: "🎮 ";
}

.nav-saveslot:hover {
    background: linear-gradient(135deg, #ffea00, #ffa000);
    color: #1a1a1a !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
}

@keyframes saveslot-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 140, 0, 0.4);
    }
}

/* MAIN CONTENT: centered, no neon border now */
#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    width: 100%;
}

.header-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ffaa;
    margin-right: 8px;
    vertical-align: middle;
}

.user-info {
    display: inline-flex;
    /* align-items: center; */
    gap: 0.5rem;
}

.profile-inline-form {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-row select,
.profile-row label {
    font-size: 0.9rem;
}

.save-profile-button {
    padding: 4px 10px;
    font-size: 0.9rem;
    border-radius: 6px;
    background-color: #00ffaa;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.save-profile-button:hover {
    background-color: #00dd88;
}


/* HEADINGS */
h1 {
    margin-bottom: 0.5rem;
    font-size: 2.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* Softer green glow */
    color: #7fff7f;
    text-shadow: 0 0 6px #00ff00;
}

h2 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #d7ffd7;
    font-weight: 300;
}

/* PARAGRAPHS */
p {
    margin-bottom: 1.5rem;
    color: #d8d8d8;
    font-size: 1rem;
}

/* LINKS in the main content */
a {
    color: #7fff7f;
    /* green neon accent */
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #bfffff;
    text-shadow: 0 0 5px #7fff7f;
}

/* OPTIONAL: small flicker effect for links on hover (less intense) */
a:hover {
    animation: flicker 1s infinite alternate ease-in-out;
}

@keyframes flicker {
    0% {
        text-shadow: 0 0 5px #7fff7f;
    }

    50% {
        text-shadow: 0 0 8px #7fff7f;
    }

    100% {
        text-shadow: 0 0 5px #7fff7f;
    }
}

/* If you have multiple links after a paragraph, add spacing */
p+a,
p+a+a {
    margin-right: 1rem;
}

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.logout-button {
    background: none;
    border: none;
    padding: 0;
    color: #f2f2f2;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.logout-button:hover {
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}

.dashboard {
    display: flex;
    justify-content: space-around;
    gap: 25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.dashboard h2 {
    font-size: 25px !important;
    font-weight: bold;
}

.dashboard-box {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    /* box-shadow: 0 0 10px #00ff88; */
}

.dashboard-box h2 {
    color: #00ff88;
    text-shadow: 0 0 3px #00ff88;
}

.dashboard-box p {
    font-size: 1.8rem;
    color: #f0f0f0;
    margin-top: 0.5rem;
}

.dashboard-box h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #aaffaa;
}

.dashboard-box ul {
    list-style: none;
    padding-left: 0;
}

.dashboard-box li {
    color: #ccc;
    margin-bottom: 0.3rem;
}

/* Box dla Library – niebieski */
.library-box {
    box-shadow: 0 0 10px #3399ff !important;
}

.library-box h2 {
    color: #3399ff;
    text-shadow: 0 0 3px #3399ff;
}

/* Box dla Wishlist – fioletowy */
.wishlist-box {
    box-shadow: 0 0 10px #cc66ff;
}

.wishlist-box h2 {
    color: #cc66ff;
    text-shadow: 0 0 3px #cc66ff;
}

.dashboard-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #141414;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.dashboard-button:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #33ffaa, #00ff88);
    color: #141414;
}

/* LIBRARY button z gradientem */
.dashboard-button.library-button {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    box-shadow: none;
}

.dashboard-button.library-button:hover {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    box-shadow: 0 0 15px rgba(30, 136, 229, 0.4);
}

/* WISHLIST button z gradientem */
.dashboard-button.wishlist-button {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
    color: #fff;
    box-shadow: none;
}

.dashboard-button.wishlist-button:hover {
    background: linear-gradient(135deg, #ab47bc, #8e24aa);
    box-shadow: 0 0 15px rgba(142, 36, 170, 0.4);
}

/* Niebieski nagłówek h3 w sekcji Library */
.dashboard-box.library-box h3 {
    color: #66bbff;
}

/* Fioletowy nagłówek h3 w sekcji Wishlist */
.dashboard-box.wishlist-box h3 {
    color: #dd99ff;
}


.library-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.library-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    color: #ddd;
}

.library-list li strong {
    color: #00ff88;
}

.library-list .status {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.library-grid,
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    /* ograniczamy szerokość całej siatki */
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 1200px) {

    .library-grid,
    .wishlist-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.game-card {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card .cover {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.game-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: opacity 0.3s;
}

.game-card .cover img:hover {
    opacity: 0.9;
}

.game-card .info {
    padding: 1rem;
    color: #ddd;
}

.game-card .info h3 {
    margin: 0 0 0.5rem;
    color: #00ff88;
}

/* Release date styling */
.game-card .info .release-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Platform badge styling */
.game-card .info .platforms {
    margin-bottom: 0.8rem;
}

.game-card .info .platform-tag {
    display: inline-block;
    background: #333;
    color: #aaa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
}

.view-switch {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.view-switch a {
    color: #aaa;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: bold;
}

.view-switch a.active {
    color: #00ff88;
    text-shadow: 0 0 4px #00ff88;
}

.library-list {
    list-style: none;
    padding-left: 0;
}

.library-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    color: #ddd;
}

.library-list li strong {
    color: #00ff88;
}

.library-list .status {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.filter-form {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.filter-form label {
    margin-right: 0.5rem;
}

.filter-form select {
    background-color: #1a1a1a;
    color: #00ff88;
    border: 1px solid #444;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.filter-form label {
    margin-right: 0.5rem;
    /* margin-left: 1rem; */
}

.filter-form select {
    background-color: #1a1a1a;
    color: #00ff88;
    border: 1px solid #444;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-right: 1rem;
}

.game-status {
    font-weight: bold;
    margin-top: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Styl dla Completed */
.game-status.completed {
    background-color: #003300;
    color: #00ff88;
    border: 1px solid #00ff88;
    box-shadow: 0 0 6px #00ff88;
}

/* Styl dla Playing */
.game-status.in-progress {
    background-color: #1a1a00;
    color: #ffff66;
    border: 1px solid #ffff66;
    box-shadow: 0 0 6px #ffff66;
}

/* Styl dla in queue */
.game-status.in-queue {
    background-color: #220000;
    color: #ff6666;
    border: 1px solid #ff6666;
    box-shadow: 0 0 6px #ff6666;
}

/* Styl dla "Why? To have!" */
.game-status.owned-but-wont-play {
    background-color: #111922;
    /* bardzo ciemny szarawo-niebieski */
    color: #88aabb;
    /* wyblakły, stalowo-niebieski */
    border: 1px solid #88aabb;
    box-shadow: 0 0 4px #88aabb;
    /* delikatna poświata */

}

.inline-form {
    display: inline;
    margin-left: 1rem;
}

.checkbox-item {
    font-size: 13px;

    /* dowolny rozmiar, np. 0.95rem */
}

.inline-form select {
    background-color: #252525;
    color: #ccc;
    border: 1px solid #444;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.inline-form button {
    background: none;
    border: none;
    color: #ff6666;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.grid-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    gap: 0.5rem;
}

.status-form select {
    background-color: #252525;
    color: #ccc;
    border: 1px solid #444;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 100%;
}

.delete-form button {
    background: none;
    border: none;
    color: #ff6666;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.grid-status-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.grid-status-actions form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.grid-status-actions select {
    background-color: #252525;
    color: #ccc;
    border: 1px solid #444;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 100%;
}

.grid-status-actions button {
    background: none;
    border: none;
    color: #ff6666;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem;
    text-align: left;
}

.add-library-form {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #141414;
    border: 1px solid #333;
    border-radius: 8px;
}

.add-library-form label {
    display: block;
    margin-top: 0.8rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
    color: #aaa;
}

.add-library-form select {
    width: 100%;
    background-color: #1a1a1a;
    color: #00ff88;
    border: 1px solid #444;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

.add-library-form button:not(.clear-btn) {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #00ff88;
    color: #141414;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-library-form button:not(.clear-btn):hover {
    background-color: #00cc66;
}

#library-add-game,
#wishlist-add-game {
    padding-top: 50px;
}

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.library-header h1 {
    margin: 0;
    color: #00ff88;
}

.library-header .add-link {
    font-size: 1rem;
    background-color: #00ff88;
    color: #141414;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.library-header .add-link:hover {
    background-color: #00cc66;
}

.wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wishlist-header h1 {
    margin: 0;
    color: #00ff88;
    text-shadow: 0 0 6px #00ff88;
}

.wishlist-header .add-link {
    font-size: 1rem;
    background-color: #00ff88;
    color: #141414;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.wishlist-header .add-link:hover {
    background-color: #00cc66;
}


.wishlist-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.wishlist-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    color: #ddd;
}

.wishlist-list li strong {
    color: #cc66ff;
}

.wishlist-list .priority {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.game-priority {
    font-weight: bold;
    margin-top: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #001a0d;
    color: #00ff88;
    border: 1px solid #00ff88;
    box-shadow: 0 0 6px #00ff88;
}

.add-wishlist-form {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #141414;
    border: 1px solid #333;
    border-radius: 8px;
    position: relative;
}

.add-wishlist-form label {
    display: block;
    margin-top: 0.8rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
    color: #aaa;
}

.add-wishlist-form select {
    width: 100%;
    background-color: #1a1a1a;
    color: #00ff88;
    border: 1px solid #444;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

.add-wishlist-form button:not(.clear-btn) {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #00ff88;
    color: #141414;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-wishlist-form button:not(.clear-btn):hover {
    background-color: #00cc66;
}

/* Styl dla Completed */
.game-priority.must-have {
    background-color: #003300;
    color: #00ff88;
    border: 1px solid #00ff88;
    box-shadow: 0 0 6px #00ff88;
}

/* Styl dla Playing */
.game-priority.nice-to-have {
    background-color: #1a1a00;
    color: #ffff66;
    border: 1px solid #ffff66;
    box-shadow: 0 0 6px #ffff66;
}

/* Styl dla Backlog */
.game-priority.maybe-someday {
    background-color: #161117;
    /* jeszcze ciemniejszy, bardziej neutralny fiolet */
    color: #9988aa;
    /* zgaszony, szarawy fiolet */
    border: 1px solid #9988aa;
    box-shadow: 0 0 3px #9988aa;
    /* bardzo subtelna poświata */


}

.grid-priority-actions select,
.inline-form select {
    background-color: #252525;
    color: #ccc;
    border: 1px solid #444;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.grid-priority-actions button {
    background: none;
    border: none;
    color: #ff6666;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem;
    text-align: left;
}

/* Styl pola tekstowego */
#game-search {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #1a1a1a;
    border: 2px solid #00ff99;
    color: #fff;
    border-radius: 8px;
    outline: none;
    box-shadow: 0 0 8px #00ff99;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#game-search:focus {
    border-color: #00ffaa;
    box-shadow: 0 0 12px #00ffaa;
}

/* Lista wyników */
.autocomplete-box {
    list-style: none;
    padding: 0;
    margin-top: 4px;
    background: #101010;
    /* border: 1px solid #00ff99; */
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 100;
    border-radius: 6px;
    box-shadow: 0 0 8px #00ff99;
}

.autocomplete-box li {
    padding: 10px 12px;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    border-bottom: 1px solid #333;
}

.autocomplete-box li:hover {
    background: #00ff99;
    color: #000;
}

.avatar-count {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.limit-reached {
    color: #ff4444;
    font-weight: bold;
}

.limit-remaining {
    color: #88ff88;
}

.avatar-form {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #00ffccbe;
    box-shadow: 0 0 10px #00ffcc33;
}

.profile-settings {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.profile-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background-color: #111;
    border-radius: 6px;
    box-shadow: 0 0 4px #00ffcc66;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background-color: #1a1a1a;
}

.avatar-preview {
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 0 12px #00ffaa;
}

.avatar-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.neon-button {
    background-color: transparent;
    border: 2px solid #00ffaa;
    padding: 10px 20px;
    color: #00ffaa;
    font-weight: bold;
    text-shadow: 0 0 5px #00ffaa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.neon-button:hover {
    background-color: #00ffaa22;
    box-shadow: 0 0 10px #00ffaa88;
}

.neon-button.alt {
    border-color: #44aaff;
    color: #44aaff;
    text-shadow: 0 0 5px #44aaff;
}

.neon-button.alt:hover {
    background-color: #44aaff22;
    box-shadow: 0 0 10px #44aaff88;
}

.neon-button.small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.logout-button-approval {
    background-color: transparent;
    border: 2px solid #ff5555;
    color: #ff5555;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 4px #ff9999;
    box-shadow: 0 0 6px #ff555522;
}

.logout-button-approval:hover {
    background-color: #ff555511;
    box-shadow: 0 0 10px #ff5555aa;
}

.form-error {
    color: #ff4f4f;
    background: #1a1a1a;
    border: 1px solid #ff4f4f;
    padding: 0.5em 1em;
    margin-bottom: 1em;
    border-radius: 8px;
    font-weight: bold;
}

.form-help {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 0.5em;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #00ffaa;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: spin 0.7s linear infinite;
}

.spinner-generate-again {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #3399ff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.profile-avatar-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    border: 1px solid #00ffccc5;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 1rem;
    background-color: #111;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

input[type="checkbox"] {
    margin-right: 8px;
    /* lub 10px */
    vertical-align: middle;
}



.profile-settings,
.current-avatar,
.new-avatar {
    flex: 1;
    min-width: 220px;
}

.profile-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-settings .profile-group {
    display: flex;
    gap: 1rem;
}

.current-avatar,
.new-avatar {
    text-align: center;
}

.current-avatar h2,
.new-avatar h2 {
    margin-bottom: 1rem;
}

.avatar-preview {
    max-width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.4);
}

.avatar-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.avatar-actions .neon-button {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    min-width: 150px;
    margin: 0 auto;
}


select.birth-year-select,
select.gender-select {
    background-color: #1a1a1a;
    color: #00ff88;
    border: 1px solid #00ff88;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 1rem;
    box-shadow: 0 0 6px #00ff8844;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select.birth-year-select:focus,
select.gender-select:focus {
    border-color: #00ffaa;
    box-shadow: 0 0 10px #00ffaa88;
    outline: none;
}

.game-selection {
    padding-top: 50px;
}



/* Pokaż tylko desktopowy nagłówek domyślnie */
.header-mobile {
    display: none;
}

.header-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.message {
    padding: 0.75em 1em;
    border-radius: 6px;
    margin-bottom: 0.5em;
    font-weight: bold;
    animation: fadeOut 1s ease-in-out 9s forwards;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.message.success {
    background-color: #d1f7d6;
    color: #215732;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Znikanie wiadomości */
@keyframes fadeOut {
    to {
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.add-library-form {
    position: relative;
    /* ważne – baza dla pozycji absolutnej */
}

#autocomplete-results {
    left: 20;
    right: 20;
    width: 97%;
    max-height: 200px;
}


/* Stylowanie tylko dla strony zgłoszenia błędu */
body.report-bug .bug-form-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(43, 226, 67, 0.4);
    color: #eee;
}

body.report-bug .bug-form-wrapper h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #fff;
}

body.report-bug .bug-form-wrapper label {
    display: block;
    margin-top: 1em;
    font-weight: bold;
    color: #ccc;
}

body.report-bug .bug-form-wrapper input[type="text"],
body.report-bug .bug-form-wrapper textarea,
body.report-bug .bug-form-wrapper input[type="file"] {
    width: 100%;
    padding: 0.7em;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #fff;
    margin-top: 0.3em;
}

body.report-bug .bug-form-wrapper button[type="submit"] {
    margin-top: 1.5em;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 6px;
    background-color: #00ffaa;
    color: rgb(0, 0, 0);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.report-bug .bug-form-wrapper button[type="submit"]:hover {
    background-color: #15ca8e;
}

/* Komunikaty Django */
body.report-bug .messages {
    max-width: 600px;
    margin: 1rem auto;
    padding: 0;
    list-style: none;
}

body.report-bug .messages li {
    padding: 0.75em 1em;
    border-radius: 6px;
    margin-bottom: 0.5em;
    font-weight: bold;
    background-color: #00ff88;
    color: #fff;
}

body.report-bug .messages li.success {
    background-color: #2e8b57;
}

/* Błędy formularza */
body.report-bug .errorlist {
    margin: 0.5em 0;
    color: #ff5e5e;
    font-size: 0.9em;
}


.reset-button {
    padding: 0.4em 1em !important;
    border-radius: 6px !important;
    background-color: #444 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease !important;
    margin-left: auto !important;
}

.reset-button:hover {
    background-color: #666 !important;
}


.alphabet-filter {
    margin: 2rem 0;
    font-weight: bold;
}

#filter-by-title {
    margin: 2rem 0;
    font-weight: normal;
    color: #ccc;
}

.library-page .alphabet-filter .letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.library-page .alphabet-filter a {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    background-color: #007acc;
    color: white;
    text-decoration: none;
    font-weight: normal;
    transition: background-color 0.3s ease;
}

.library-page .alphabet-filter a:hover {
    background-color: #005fa3;
}

.library-page .alphabet-filter a.active {
    background-color: #003f73;
}

.library-page .alphabet-filter .disabled {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    background-color: none;
    color: #666;
    cursor: not-allowed;
}

.wishlist-page .alphabet-filter .letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.wishlist-page .alphabet-filter a {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    background-color: #a652cf;
    color: white;
    text-decoration: none;
    font-weight: normal;
    transition: background-color 0.3s ease;
}

.wishlist-page .alphabet-filter a:hover {
    background-color: #6c3686;
}

.wishlist-page .alphabet-filter a.active {
    background-color: #6c3686;
}

.wishlist-page .alphabet-filter .disabled {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    background-color: none;
    color: #666;
    cursor: not-allowed;
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

/* ZACHOWUJEMY ORYGINALNE STYLOWANIE BOXÓW */
.dashboard-box {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px #00000033;
    min-height: 430px;
}

/* Przywracamy kolory ramek */
.dashboard-box.library-box {
    box-shadow: 0 0 10px #2196f3;
    border: 1px solid #2196f3;
}

.dashboard-box.wishlist-box {
    box-shadow: 0 0 10px #9c27b0;
    border: 1px solid #9c27b0;
}

.dashboard-box.profile {
    box-shadow: 0 0 10px #00ff99;
    border: 1px solid #00ff99;
}

/* Avatar centrowany */
.dashboard-box img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 10px #00ff99;
}

/* Przycisk na dole */
.dashboard-button {
    margin-top: auto;
    padding: 12px 20px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease-in-out;
}

/* Widoczne tylko na urządzeniach o szerokości max 768px */
.mobile-only {
    display: none;
}


.sharing-panel {
    background: #111;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    transition: 0.3s ease-in-out;
    margin-bottom: 30px;
}

.sharing-panel h2 {
    margin-top: 0;
    font-size: 1.4em;
}

.sharing-panel code {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.95em;
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* PWA standalone mode fix for URL overflow */
@media (display-mode: standalone) {
    .sharing-panel code {
        display: block;
        max-width: calc(100% - 50px);
    }
}

.sharing-panel button {
    background-color: transparent;
    border: 1px solid #888;
    color: #eee;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.sharing-panel button:hover {
    background-color: #333;
}

.sharing-panel.library {
    border-left: 4px solid #00ccff;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
}

.sharing-panel.wishlist {
    border-left: 4px solid #bb66ff;
    box-shadow: 0 0 15px rgba(187, 102, 255, 0.3);
}

.priority-select,
.status-select {
    width: 100%;
    box-sizing: border-box;
    display: block;
}


#main-footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    margin-top: auto;
}

#main-footer a {
    color: #88aabb;
    text-decoration: none;
    margin: 0 5px;
}

#main-footer a:hover {
    text-decoration: underline;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}


/* MOBILE LAYOUT */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .pwa-install-banner {
        margin: 40px auto 20px auto;
        text-align: center;
    }

    .pwa-install-banner button {
        background-color: #00ff88;
        color: #000;
        border: none;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
    }

    .pwa-install-banner button:hover {
        background-color: #00e07a;
    }


    .message {
        padding: 0.75em 1em;
        border-radius: 6px;
        margin-bottom: 0.5em;
        font-weight: bold;
        animation: fadeOut 1s ease-in-out 9s forwards;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        font-size: 13px;
    }

    #autocomplete-results {
        left: 20;
        right: 20;
        width: 90%;
        max-height: 200px;
    }

    .header-desktop {
        display: none !important;
    }

    /* === MOBILE HEADER === */
    .header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(to right, #002d1e, #00150f);
        padding: 0.7rem 1rem;
        position: relative;
        z-index: 1000;
    }

    /* Logo po lewej */
    .header-left #logo a {
        font-size: 1.2rem;
        font-weight: bold;
        color: #00ff88;
        text-shadow: 0 0 8px #00ff88;
    }


    /* Avatar i nazwa użytkownika obok siebie */
    .header-center {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .header-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid #00ff88;
        box-shadow: 0 0 6px #00ff88;
    }

    .header-username {
        font-size: 1rem;
        color: white;
        font-weight: 500;
        white-space: nowrap;
    }

    /* Hamburger po prawej */
    #menu-toggle {
        display: none;
    }

    .menu-icon {
        font-size: 1.8rem;
        cursor: pointer;
        color: #00ff88;
        display: flex;
        align-items: center;
    }

    /* Rozwijane menu */
    .mobile-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 1rem;
        background: #111;
        border: 1px solid #00ff88;
        padding: 1rem;
        border-radius: 6px;
        z-index: 999;
    }

    .mobile-nav a,
    .mobile-nav button {
        display: block;
        width: 100%;
        padding: 0.6rem 1rem;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        color: #00ff88;
        background: #111;
        border: none;
        border-radius: 5px;
        text-align: center;
        text-decoration: none;
        transition: background 0.3s ease;
    }

    .mobile-nav button {
        color: #ff4444;
        font-weight: bold;
    }

    .mobile-nav a:hover,
    .mobile-nav button:hover {
        background: #222;
    }

    /* Save Slot link in mobile nav */
    .mobile-nav a.nav-saveslot {
        background: linear-gradient(135deg, #ffd700, #ff8c00);
        color: #1a1a1a !important;
        font-weight: bold;
        animation: saveslot-glow 2s ease-in-out infinite;
    }

    .mobile-nav a.nav-saveslot:hover {
        background: linear-gradient(135deg, #ffea00, #ffa000);
    }

    /* Pokazuj menu po kliknięciu */
    #menu-toggle:checked~.mobile-nav {
        display: flex;
    }

    h1 {
        margin-bottom: 0.5rem;
        font-size: 1.5rem !important;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;

        /* Softer green glow */
        color: #7fff7f;
        text-shadow: 0 0 6px #00ff00;
    }

    h2 {
        margin-bottom: 1.5rem;
        font-size: 1.4rem;
        color: #d7ffd7;
        font-weight: 300;
    }

    .library-header,
    .wishlist-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .library-header h1,
    .wishlist-header h1 {
        font-size: 1.5rem;
        text-align: left;
        margin: 0;
    }

    .library-header .add-link,
    .wishlist-header .add-link {
        align-self: stretch;
        text-align: center;
        padding: 0.6rem;
        font-size: 1rem;
    }

    .filter-form {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .filter-form label {
        font-size: 0.9rem;
    }

    .filter-form select {
        width: 100%;
    }

    .view-switch {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 1rem 0;
    }

    .game-card {
        margin-bottom: 1.5rem;
    }

    .game-card:hover {
        transform: translateY(-3px);
    }

    .game-card .cover {
        height: 450px;
    }

    .library-grid,
    .wishlist-grid {
        gap: 1rem;
    }

    .game-card .info h3 {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }

    .game-card .info p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .game-status {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .add-library-form,
    .add-wishlist-form {
        padding: 1rem 1rem;
    }

    .add-library-form button[type="submit"],
    .add-wishlist-form button[type="submit"] {
        width: 100%;
        padding: 0.6rem;
    }

    .autocomplete-box {
        max-height: 200px;
        overflow-y: auto;
    }

    .library-list,
    .whishlist-list {
        padding: 0;
        margin: 0;
    }

    .library-list li {
        display: flex;
        flex-direction: column;
        padding: 0.8rem;
        margin-bottom: 1rem;
        background-color: #0f0f0f;
        border-radius: 6px;
        box-shadow: 0 0 10px #3399ff;
    }

    .library-list li h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        color: #66bbff;
    }

    .library-list li .game-platform,
    .library-list li .game-year,
    .library-list li .game-status {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .library-list li select {
        width: 100%;
        margin: 0.4rem 0;
        font-size: 0.9rem;
    }

    .library-list li .delete-button {
        align-self: flex-end;
        margin-top: 0.6rem;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #ff4444;
        text-shadow: 0 0 4px #ff4444;
    }

    .library-list li .delete-button:hover {
        color: #ff7777;
        text-shadow: 0 0 6px #ff7777;
    }

    .library-list li span {
        display: inline-block;
        margin-bottom: 0.2rem;
        font-size: 0.85rem;
        color: #aaa;
    }

    .icon-i {
        display: inline-block;
        margin-bottom: 0.2rem;
        font-size: 0.65rem !important;
        color: #3399ff !important;
        padding-top: 3px;
    }

    .wishlist-list li {
        display: flex;
        flex-direction: column;
        padding: 0.8rem;
        margin-bottom: 1rem;
        background-color: #0f0f0f;
        border-radius: 6px;
        box-shadow: 0 0 10px #b84dff;
    }

    .wishlist-list li h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        color: #cc66ff;
    }

    .wishlist-list li strong {
        color: #cc66ff;
    }

    .wishlist-list .priority {
        color: #aaa;
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }

    .wishlist-list li .game-platform,
    .wishlist-list li .game-year,
    .wishlist-list li .game-status {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .wishlist-list li select {
        width: 100%;
        margin: 0.4rem 0;
        font-size: 0.9rem;
    }

    .wishlist-list li .delete-button {
        align-self: flex-end;
        margin-top: 0.6rem;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #ff4444;
        text-shadow: 0 0 4px #ff4444;
    }

    .wishlist-list li .delete-button:hover {
        color: #ff7777;
        text-shadow: 0 0 6px #ff7777;
    }

    .wishlist-list li span {
        display: inline-block;
        margin-bottom: 0.2rem;
        font-size: 0.85rem;
        color: #aaa;
    }



    .profile-avatar-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .profile-settings {
        width: 100%;
        padding: 1rem;
        background: #111;
        border-radius: 8px;
        box-shadow: 0 0 8px #00cfff55;
    }

    .profile-settings h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .profile-group {
        margin-bottom: 1rem;
    }

    .profile-group label {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }

    .birth-year-select,
    .gender-select {
        width: 100%;
        padding: 0.5rem;
        border-radius: 6px;
        background: #222;
        color: #fff;
        border: 1px solid #444;
    }

    .avatar-preview {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 10px;
        margin: 0 auto;
        display: block;
    }

    .avatar-actions {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .avatar-actions .neon-button {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
    }

    .current-avatar,
    .new-avatar {
        text-align: center;
    }

    .game-selection {
        padding: 1rem;
        background: #111;
        margin-top: 2rem;
        border-radius: 8px;
        box-shadow: 0 0 8px #00cfff55;
    }

    .game-selection h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .form-help {
        font-size: 0.9rem;
        color: #ccc;
        text-align: center;
        margin-bottom: 1rem;
    }

    .checkbox-grid {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        font-size: 2px;
    }

    .checkbox-item {
        font-size: 0.95rem;
        padding: 0.4rem;
        background: #1a1a1a;
        border-radius: 5px;
    }

    .form-error {
        color: #ff4444;
        margin: 0.5rem 0;
        text-align: center;
    }

    .profile-avatar-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .profile-settings {
        width: 100%;
        padding: 1rem;
        background: #111;
        border-radius: 8px;
        box-shadow: 0 0 8px #00cfff55;
    }

    .profile-settings h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .profile-group {
        margin-bottom: 1rem;
    }

    .profile-group label {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }

    .birth-year-select,
    .gender-select {
        width: 100%;
        padding: 0.5rem;
        border-radius: 6px;
        background: #222;
        color: #fff;
        border: 1px solid #444;
    }

    .avatar-preview {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 10px;
        margin: 0 auto;
        display: block;
    }

    .avatar-actions {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .avatar-actions .neon-button {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
    }

    .current-avatar,
    .new-avatar {
        text-align: center;
    }

    .game-selection {
        padding: 1rem;
        background: #111;
        margin-top: 2rem;
        border-radius: 8px;
        box-shadow: 0 0 8px #00cfff55;
    }

    .game-selection h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .form-help {
        font-size: 0.9rem;
        color: #ccc;
        text-align: center;
        margin-bottom: 1rem;
    }

    .checkbox-grid {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .checkbox-item {
        font-size: 0.95rem;
        padding: 0.4rem;
        background: #1a1a1a;
        border-radius: 5px;
    }

    .form-error {
        color: #ff4444;
        margin: 0.5rem 0;
        text-align: center;
    }
}