body.dark-mode {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #ffffff;
}

/* NAVBAR */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* pionowe wyśrodkowanie */
    background-color: #1a1a1a;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.model-actions {
    display: center;
    justify-content: space-between;
    margin-top: 1px;
}
.model-actions a {
    font-size: 0.8em;
    color: #f5c518;
    text-decoration: none;
}
.model-actions a:hover {
    text-decoration: underline;
}


/* Logo - jeśli to tekst */
.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: #facc15; /* żółty */
}

/* Logo - jeśli to obrazek */
.logo img {
    height: 40px;
    max-height: 40px;
    display: block;
}

/* Nawigacja linki */
.nav-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background-color: #333;
}

.green-link {
    color: #4CAF50; /* soczysta zieleń */
}

.green-link:hover {
    color: #66bb6a; /* jaśniejsza zieleń po najechaniu */
}

/* Hamburger menu toggle */
.menu-toggle {
    display: none; /* domyślnie ukryty */
    font-size: 1.8rem;
    color: #facc15;
    cursor: pointer;
    margin-left: auto; /* przesunięcie do prawej */
    user-select: none;
}

/* CONTENT, MODELS, FORM ETC. - bez zmian */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.model-card {
    background-color: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
	border: 1px solid #333;
    text-align: center;
    padding: 1rem;
    transition: transform 0.2s;
}

.model-card:hover {
    transform: scale(1.03);
}

.model-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.model-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #eee;
}

/* FORMULARZE */
.form-container {
    max-width: 400px;
    margin: 3rem auto;
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.03);
}

.form-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.form-container label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    width: 50%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #fff;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-container textarea {
    width: 100%;
    max-width: 500px;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.form-container textarea:focus {
    outline: none;
    background-color: #333;
    box-shadow: 0 0 5px #facc15;
}

.form-container .error {
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Ujednolicone buttony: submit, .btn-submit i search button */
input[type="submit"],
.btn-submit,
.search-form button {
    background-color: #facc15;   /* jasny żółty */
    color: #000;
    font-weight: 700;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    user-select: none;
    display: inline-block;
    text-align: center;
    width: auto !important;
    margin: 0 auto !important;
}

input[type="submit"]:hover,
.btn-submit:hover,
.search-form button:hover {
    background-color: #d4a70a; /* ciemniejszy żółty */
    color: #000;
}

/* LISTY MODELI */
.model-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-list ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: background-color 0.2s ease;
}

.model-list ul li:hover {
    background: rgba(255, 255, 255, 0.07);
}

.model-thumb {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.model-info {
    line-height: 1.3;
    color: #ddd;
}

.model-info strong {
    color: #fff;
}

/* SEARCH */
.search-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Na desktopie wyrównanie do prawej */
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.search-form input[type="text"] {
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    width: 250px;
    max-width: 100%;
    background-color: #2a2a2a;
    color: #fff;
}

.search-form input[type="text"]::placeholder {
    color: #aaa;
}

.footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #111;
    color: #bbb;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

.footer p {
    margin: 5px 0;
}


.clear-search {
    display: inline-block;
    align-self: center;
    text-decoration: underline;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Na małych ekranach wyśrodkuj */
@media (max-width: 600px) {
    .search-wrapper {
        justify-content: center;
    }

    .search-form {
        flex-wrap: wrap;
        justify-content: center;
    }
}

a {
    color: #facc15;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* RESPONSYWNOŚĆ */

/* Dla większych ekranów (min 768px) */
@media (min-width: 768px) {
    .nav-bar {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 30px;
    }

    .nav-links a {
        margin: 0 15px;
    }

    .form-container {
        max-width: 800px;
        margin: 40px auto;
        padding: 30px;
    }

    .model-image {
        max-width: 100%;
        max-height: 400px;
    }

    .model-thumb {
        max-width: 80px;
        margin-right: 6px;
    }

    .logo img {
        height: 60px;
    }
}

/* Dla mniejszych ekranów max 768px */
@media (max-width: 768px) {
    .model-image {
        max-width: 100%;
        max-height: 200px;
    }

    .model-thumb {
        max-width: 80px;
        margin-right: 6px;
    }

    .logo img {
        height: 40px;
    }
}

/* Dla małych ekranów max 600px */
@media (max-width: 600px) {
    .nav-bar {
        flex-direction: row;
        align-items: center;
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 70%;
        background-color: #1a1a1a;
        position: absolute;
        top: 60px;
        right: 0;
        padding: 1rem;
        border: 1px solid #333;
        border-radius: 6px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 15px;
        text-align: left;
        border-top: 1px solid #333;
        color: #fff;
    }

    .menu-toggle {
        display: block;
    }
}

.accordion-header {
    background-color: #2a2a2a;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #333;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(90deg);
}

/* Ukryte na start + animowane rozwijanie */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-content.active {
  max-height: 1000px; /* dopasuj do potrzeb */
  opacity: 1;
  pointer-events: auto; /* <-- teraz można klikać */
}

.accordion-content.show {
    max-height: 1000px; /* duża wartość wystarczająca na treść */
    opacity: 1;
}


/* Bardziej precyzyjne style dla bardzo małych ekranów max 480px */
@media (max-width: 480px) {
    .model-thumb {
        width: 100%;
        height: auto;
    }

    .nav-links {
        gap: 10px;
        align-items: flex-start;
    }

    .form-container {
        padding: 15px;
    }
}

.form-container form {
  max-width: 400px;
  margin: auto;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.form-row label {
  flex: 0 0 130px;
  /* Dla ładnego odstępu i wyrównania */
  font-weight: 600;
}

.form-row input[type="text"],
.form-row select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #222;
  color: #eee;
}

.form-row input[type="checkbox"] {
  flex: none;
  margin-left: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-row-textarea,
.form-row-file {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form-row-textarea label,
.form-row-file label {
  margin-bottom: 5px;
  font-weight: 600;
}

textarea#description {
  resize: vertical;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #222;
  color: #eee;
  min-height: 80px;
  width: 100%;       /* zajmuje 100% szerokości rodzica */
  box-sizing: border-box; /* uwzględnia padding i border w szerokości */
}

input[type="file"] {
  cursor: pointer;
}

.model-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.model-details-table th,
.model-details-table td {
    padding: 8px 12px;
    border: 1px solid #444;
    vertical-align: top;
}

.model-details-table th {
    background-color: #222;
    color: #ffcc00; /* żółty nagłówek */
    text-align: left;
    width: 15%;
    white-space: nowrap;
}

.model-details-table td {
    background-color: #111;
    color: #ddd;
}

.model-details-table-add {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.model-details-table-add th,
.model-details-table-add td {
    padding: 8px 12px;
    vertical-align: top;
}

.model-details-table-add th {
    background-color: #222;
    color: #DCDCDC; /* nagłówek */
    text-align: left;
    width: 15%;
    white-space: nowrap;
	font-size: 0.9rem;
}

.model-details-table-add td {
    background-color: #222;
    color: #ddd;
	font-size: 0.9rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.collection-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.collection-card:hover {
    transform: scale(1.03);
}

.collection-card h4 {
    margin: 0 0 10px;
    font-size: 1.0rem;
    color: #ffffff;
    word-break: break-word;
}

.collection-card h4 a {
    color: #ffffff;
}

.collection-card h4 a:hover {
    color: #f5c518;
}

.collection-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.8rem;
}

/* Obraz modelu */
.model-image {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* opcjonalnie ładne zaokrąglenie */
}

/* Komunikat sukcesu z efektem zanikania */
        .success {
            background-color: #4CAF50;
            color: white;
            padding: 10px;
            margin-bottom: 15px;
            border-radius: 5px;
            text-align: center;
        }
        .fade-out {
            animation: fadeOut 1s forwards;
        }
        @keyframes fadeOut {
            from {opacity: 1;}
            to {opacity: 0; height: 0; padding: 0; margin: 0;}
        }
		
		
		
.filter-wrapper {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
}

.filter-form input[type="text"],
.filter-form select {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #eee;
    padding: 6px 8px;
    font-size: 0.9rem;
    min-width: 120px;
}

.filter-form button {
    background-color: #facc15;
    border: none;
    color: #000;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-form button:hover {
    background-color: #d4a70a;
}

.clear-search {
    color: #999;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
}

.clear-search:hover {
    color: #facc15;
}

		
/* Powiększanie zdjęcia - modal */

.model-image {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.model-image:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}
.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  color: #f0f0f0;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9999;
}

.cookie-banner a {
  color: #ffcc00;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #ffcc00;
  color: #000;
  border: none;
  padding: 6px 12px;
  margin-left: 15px;
  cursor: pointer;
  border-radius: 4px;
}





.contact-container {
  max-width: 600px;
  margin: 40px auto;
  background-color: #1c1c1c;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
}

.contact-container h1 {
  font-size: 24px;
  color: #ffcc00;
  margin-bottom: 20px;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #f0f0f0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  background-color: #333;
  border: 1px solid #555;
  color: #f0f0f0;
  border-radius: 6px;
  margin-bottom: 15px;
}

.contact-form button {
  background-color: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #e6b800;
}

.success {
  background-color: #2d572c;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.error {
  background-color: #6c1c1c;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}
