body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Dla responsywności */
    height: 100vh;
}

.left-panel, .right-panel {
    padding: 20px;
    box-sizing: border-box; /* Uwzględnia padding w szerokości */
}

.left-panel {
    flex: 1 1 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.right-panel {
    flex: 1 1 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

@media (min-width: 768px) {
    .left-panel, .right-panel {
        flex: 1;
        height: auto;
    }
}

#canvas {
    border: 1px solid #ccc;
    max-width: 100%;
    height: auto;
}

#dropZone {
    border: 2px dashed #ccc;
    padding: 40px; /* Zwiększony padding */
    text-align: center;
    color: #000; /* Tekst w kolorze czarnym */
    margin-bottom: 20px;
    cursor: pointer;
}

#dropZone.hover {
    border-color: #666;
    color: #666;
}

input[type="file"] {
    display: none;
}

button {
    background-color: #4f883d;
    color: #fff;
    border: none;
    margin-top: 20px;
    padding: 15px 20px; /* Zwiększony padding dla wysokości */
    cursor: pointer;
    font-size: 20px; /* Zwiększony rozmiar czcionki */
}

button:hover {
    background-color: #3e6e31;
}

label, input, button {
    margin-top: 10px; /* Dodane odstępy między elementami */
}

input[type="number"], input[type="range"] {
    width: 100%;
}

.left-panel input[type="checkbox"] {
    margin-right: 5px;
}

/* Stylizacja spinnera */
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 16px solid #f3f3f3; /* Jasnoszary */
    border-top: 16px solid #4f883d; /* Kolor główny */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dodajemy style dla paska postępu */
#progressBarContainer {
    width: 100%;
    background-color: #ddd;
    margin-top: 20px;
}

#progressBar {
    width: 0%;
    height: 20px;
    background-color: #4f883d;
    transition: width 0.1s linear;
}

/* Stylizacja dla dropdowna orientacji strony */
select#orientation {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

/* Stylizacja dla sekcji kolumn i wierszy, aby były obok siebie */
.row-cols-container input[type="number"] {
    flex: 1 1 auto;
    max-width: 60px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.row-cols-container input[type="number"]:focus {
    border-color: #4f883d;
    box-shadow: 0 2px 10px rgba(79, 136, 61, 0.3);
}

button.disabled {
    background-color: #cccccc; /* Kolor przycisku gdy jest nieaktywny */
    cursor: not-allowed;
}

button.enabled {
    background-color: #4f883d; /* Kolor przycisku gdy jest aktywny */
    cursor: pointer;
}
