/* Styl globalny */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 20px;
}

header .logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header nav {
    display: flex;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

footer {
    background-color: #007bff;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9em;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
/* Stylizacja kontenera z linkami */
.material-links-container {
    text-align: center;
    padding: 10px 0;
    background-color: #007bff; /* Kolor tła - można dostosować */
}

/* Stylizacja linków */
.material-links-container a {
    color: #ffffff; /* Biały kolor tekstu dla lepszej widoczności */
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 0 15px; /* Odstępy między linkami */
    border-right: 1px solid #ffffff; /* Separator między linkami */
    transition: color 0.3s ease; /* Animacja zmiany koloru */
}

/* Usunięcie separatora z ostatniego linku */
.material-links-container a:last-child {
    border-right: none;
}

/* Efekt hover dla linków */
.material-links-container a:hover {
    color: #ffd700; /* Kolor po najechaniu (złoty) */
    text-decoration: underline;
}
/* Główne ustawienia kontenera */
.container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.calculator-section {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.calculator-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.calculator-section input[type="number"],
.calculator-section select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Styl dla inputów */
.calculator-section input[type="number"],
.calculator-section select, {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #007bff;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s, border-color 0.3s;
}

.selection-section input[type="text"] {
    width: 100%;
    max-width: 200px; /* Dostosuj szerokość według potrzeb */
    padding: 10px;
    font-size: 1em;
    border: 1px solid #007bff;
    border-radius: 8px;
    background-color: #007bff; /* Kolor tła jak poprzednie pola */
    color: white; /* Biały tekst */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="text"][readonly] {
    width: 35%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #007bff;
    border-radius: 8px;
    background-color: #f4f6f9;
    color: #333;
    text-align: center;
    cursor: pointer;
}

#priceDisplay {
    display: block;
    font-size: 1.4em; /* Rozmiar tekstu */
    font-weight: bold;
    color: #28a745; /* Zielony tekst */
    margin: 0 auto; /* Usuń marginesy pionowe */
    padding: 10px 15px;
    border: 2px solid #28a745; /* Zielona ramka */
    border-radius: 12px; /* Zaokrąglone krawędzie */
    background-color: rgba(40, 167, 69, 0.1); /* Jasnozielone tło */
    max-width: 250px; /* Maksymalna szerokość */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Delikatny cień */
}

/* Przyciski */
button[type="submit"] {
    display: block;
    background-color: #28a745;
    color: white;
    padding: 12px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    max-width: 180px;
    margin: 10px auto;
}

button[type="submit"]:hover {
    background-color: #218838;
}

/* Styl głównego kontenera slidera */
.slider-container {
    width: 500px;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    margin: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    background-color: #f4f4f4; /* Opcjonalne tło */
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Dostosowuje obraz do kontenera bez przycinania */
    display: none;
}

/* Aktywny obraz */
.slider-container img.active {
    display: block;
}

/* Miniaturki */
.thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.thumbnails img {
    width: 60px; /* Stała szerokość miniatur */
    height: 60px; /* Stała wysokość miniatur */
    object-fit: cover; /* Przycięcie obrazu do rozmiaru miniatury */
    margin: 5px;
    border-radius: 5px; /* Zaokrąglone rogi */
    cursor: pointer; /* Kursor jako ręka */
    opacity: 0.8; /* Przezroczystość */
    transition: opacity 0.3s, transform 0.3s; /* Płynne przejścia */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Delikatny cień */
}

/* Efekt hover i aktywnej miniatury */
.thumbnails img.active,
.thumbnails img:hover {
    opacity: 1; /* Pełna widoczność */
    border: 2px solid #007bff; /* Wyróżnienie aktywnej miniatury */
    transform: scale(1.1); /* Powiększenie na hover */
}



/* Pop-up styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Sekcja pop-up */
.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 1100px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.color-category, .material-category {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.color-options, .material-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.color-option, .material-option {
    cursor: pointer;
    text-align: center;
    width: 150px;
    transition: transform 0.3s;
}

.color-option img, .material-option img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 5px; /* Zmniejszony padding */
    background-color: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
}
/* Styl dla przewijalnego kontenera */
.scrollable-content {
    max-height: 700px; /* Ustaw wyższą wartość, np. 500px */
    overflow-y: auto;
    padding-right: 10px;
}

.material-option img {
    padding: 0px; /* Wypełnienie całego boxa dla obrazków w materiale */
    border-radius: 5px;
}

.color-option:hover img, .material-option:hover img {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.color-option span, .material-option span {
    display: block;
    margin-top: 8px;
    font-size: 1em;
    color: #333;
    pointer-events: none;
    transition: none; /* Wyłącz efekt hover dla tekstu */
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
}

.product-info {
    font-size: 1.1em;
    font-style: italic;
    color: #666;
    margin-top: 20px;
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Urządzenia mobilne */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    .slider-container {
        width: 100%;
        height: auto;
    }
    .calculator-section {
        padding: 15px;
    }
    header nav a {
        margin: 0 10px;
        font-size: 0.9em;
    }
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
}
.input-row > div {
    flex: 1;
}

/* Styl sekcji formularza z wyrównanymi labelami i inputami */
.selection-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-row > .selection-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Label styl */
.selection-section label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.selection-section input[type="text"] {
    max-width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #007bff;
    border-radius: 8px;
    background-color: blue;
    color: #333;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.calculator-section select::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.calculator-section select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #007bff;
    color: #ffffff;
    font-weight: bold;
    max-width: 65%;
}

.calculator-section select option {
    color: #333;
}

input[type="text"] {
    -moz-appearance: textfield; /* Usuwa strzałki w Firefox */
    appearance: textfield; /* Usuwa strzałki w większości przeglądarek */
    background-color: #007bff;
    color: white;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: none;
}

input[type="text"]::placeholder {
    color: #ffffff; /* Kolor tekstu w placeholder */
    opacity: 1; /* Pełna widoczność placeholdera */
}

input[type="text"]::-webkit-outer-spin-button,
input[type="text"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyśrodkowanie etykiet i inputów */
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333; /* Kolor etykiety */
}

.input-group input[type="text"] {
    width: 100%;
    max-width: 200px; /* Maksymalna szerokość przycisku */
    padding: 10px;
    font-size: 1em;
    color: #ffffff; /* Biała czcionka */
    background-color: #007bff; /* Niebieskie tło */
    border: none; /* Usunięcie obramowania */
    border-radius: 8px;
    text-align: center; /* Wyśrodkowanie tekstu wewnątrz inputa */
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-group input[type="text"]::placeholder {
    color: #ffffff; /* Biały kolor placeholdera */
}

.input-group input[type="text"]:hover {
    background-color: #0056b3; /* Ciemniejszy niebieski przy najechaniu */
}

.allegro-order-row {
    text-align: right;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}
.header-right {
    display: flex;
    align-items: center;
}

.cart-icon {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    position: relative;
}

.cart-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; /* Szerokość kontenera ikony koszyka */
    height: 24px; /* Wysokość kontenera ikony koszyka */
}

.cart-box .fa-shopping-cart {
    font-size: 1.5em; /* Rozmiar ikony koszyka */
    color: white; /* Kolor ikony */
}

.cart-count {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    position: absolute;
    top: -8px;
    right: -10px;
}


.cart-text {
    margin-left: 8px;
    color: white;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
}

.cart-icon i {
    font-size: 1.2em; /* Zmniejszenie rozmiaru ikony koszyka */
}
.error-message {
    font-size: 12px;            /* Mniejszy rozmiar czcionki */
    color: white;               /* Kolor tekstu */
    background-color: #e74c3c;  /* Czerwone tło */
    padding: 4px 8px;           /* Wewnętrzne odstępy dla plakietki */
    border-radius: 4px;         /* Zaokrąglone rogi */
    font-weight: bold;          /* Pogrubiony tekst */
    display: none;              /* Ukryte na początku */
    margin-top: 5px;            /* Mały odstęp nad etykietką */
    max-width: 200px;           /* Opcjonalnie maksymalna szerokość */
    text-align: center;         /* Wyśrodkowanie tekstu */
}


input.error-border {
    border-color: red;
}

.suggestion-form::after {
    content: "";
    display: block;
    clear: both;
}
.suggestion-form {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.suggestion-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    text-align: center;
}

.suggestion-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    text-align: center;
}

.suggestion-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.suggestion-button {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    padding: 12px;
    background-color: #28a745;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-button:hover {
    background-color: #218838;
}

.suggestion-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    animation: fadeOut 0.3s ease-in-out 4s forwards;
    text-align: center;
}

.suggestion-message.success {
    background-color: #e7f9ee;
    color: #287d3c;
    border: 1px solid #c7e9d3;
}

.suggestion-message.error {
    background-color: #fcebea;
    color: #b52b27;
    border: 1px solid #f5c2c2;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-5px);
        pointer-events: none;
    }
}


/* Styl globalny dla urządzeń mobilnych */
@media (max-width: 768px) {
.suggestion-form {
    margin: 24px auto;
    padding: 16px ;
    border-radius: 10px ;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: calc(100% - 24px);
    max-width: 600px;
    box-sizing: border-box;
}

    .suggestion-title {
        font-size: 16px;
    }

    .suggestion-textarea {
        font-size: 14px;
    }

    .suggestion-button {
        font-size: 15px;
        padding: 10px;
    }
    /* Header - zmniejszenie rozmiaru logo i elementów nawigacji */
    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .header-left .logo {
        display: flex;
        align-items: center;
        font-size: 1.1em;
    }

    header nav {
        display: flex;
        gap: 10px;
    }

    header nav a {
        font-size: 0.9em;
        padding: 8px;
    }

    /* Centering items in a row on smaller screens */
    .header-left, header nav {
        flex: 1;
    }


    .header-left {
        display: flex;
        align-items: center;
      }

    header nav {
        justify-content: flex-end;
    }
    .slider-container {
        width: 100%;
        height: 300px; /* Dostosuj wysokość dla mniejszych ekranów */
    }

    .thumbnails img {
        width: 50px; /* Zmniejsz miniatury */
        height: 50px;
    }
    /* Dostosowanie tekstu i ikony koszyka */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .material-option {
      width: 100px;
      margin: 5px;
    }
    .material-options {
        grid-template-columns: repeat(2, 1fr); /* Wyświetl 2 kolory na raz */
    }
    .material-option img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    .cart-icon {
        display: flex;
        align-items: center;
        color: white;
        font-weight: bold;
        position: relative;
        font-size: 1em;
    }

    .cart-icon .cart-box {
        position: relative;
        display: flex;
        align-items: center;
    }

    .cart-icon .fa-shopping-cart {
        font-size: 1.4em;
        color: white;
    }

    .cart-count {
        position: absolute;
        top: -5px;
        right: -10px;
        background-color: red;
        color: white;
        border-radius: 50%;
        padding: 2px 5px;
        font-size: 0.7em;
        font-weight: bold;
    }

    .cart-text {
        margin-left: 8px;
        font-size: 1em;
    }



    .total-price-row, .allegro-order-row {
        font-size: 1em;
        text-align: center;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    /* Panel pracowników - dostosowanie widoku zamówień */
    .order-filter {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .order-filter input, .order-filter select {
        width: 100%;
        max-width: 200px;
    }

    .order-table th, .order-table td {
        padding: 8px;
        font-size: 0.9em;
    }

    .color-option,
    .material-option {
        width: 100px; /* Zmniejszona szerokość */
        font-size: 0.85em; /* Dopasowanie rozmiaru tekstu */
    }

    .color-option img, .material-option img {
        padding: 2px;
    }

    .color-option span, .material-option span {
        font-size: 0.8em;
    }



    /* Kalkulator - dostosowanie elementów */
    .calculator-section h2 {
        font-size: 1.5em;
    }

    .calculator-section input[type="number"],
    .calculator-section select {
        max-width: 100%;
        font-size: 1em;
        padding: 8px;
    }

    #priceDisplay {
        font-size: 1.2em; /* Mniejszy rozmiar czcionki na urządzeniach mobilnych */
        padding: 8px 10px;
        max-width: 200px; /* Zmniejszenie szerokości na mniejszych ekranach */
    }
    .continue-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    font-size: 1.1em;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10px;
    width: 50%; /* Rozciągnięcie na pełną szerokość */
  }

  .continue-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }
}
