body {
    font-family: OpenSans, sans-serif;
    background: #f8f8f8;
    text-align: center;
    color: #333;
    margin: 5px;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 0px 10px #ccc;
}
h1 {
    color: #ff5a00;
}
/**table { width: 80%; margin: auto; border-collapse: collapse; background: white; }**/
th, td {
    padding: 10px;
    border: 1px solid #ddd;
}
th {
    background: #ff5a00;
    color: white;
}
button {
    padding: 10px;
    margin: 5px;
    background: #ff5a00;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: normal;
    font-size: 15px;
    text-transform: uppercase
}




input {
    width: 100px;
    height: 30px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.manual_price {
    text-align: right;
}
.regal {
    text-align: center;
}
.polka {
    text-align: center;
}

.quantity {
 text-align: center;
}

#customImageFile, #editImageFile {
    border: none;
}

#eanInput {

    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}
/* 
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    word-break: break-word;
}

th {
    background-color: #ff6600;
    color: white;
} */

img {
    cursor: pointer;
}

img:hover {
    transform: scale(1.2);
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}



th {
    position: sticky;
    background-color: #ff5a00;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    cursor: col-resize;
    /* Pokazuje, że można zmieniać szerokość */
    background: #ff5a00;
    color: white;
}

th .resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    background: #ff5a00;
    color: white;
}

th:hover .resize-handle {
    background: #ccc;
    /* Podświetlenie uchwytu */
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.close-cd, .close-ce, #close-cl {
 font-size: 20px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}




.modal-cd {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-header {
    background-color: #ff5a00; /* Taki sam kolor jak przyciski */
    color: white;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 94%; /* Belka na pełną szerokość */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-title {
    flex-grow: 1;
    text-align: center;
}

.modal-content-cd {
    background-color: #fff;
    padding: 50px 20px 20px; /* Zwiększony padding od góry na pasek */
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
}

.modal-content-cd h2,
.modal-content-cd h3 {
    margin-bottom: 10px;
    color: #333;
}

.modal-content-cd input {
    width: 100%;
    padding: 10px;
    margin: 6px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-content-cd button {
    background-color: #ff5a00;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-content-cd button:hover {
    background-color: #e04e00;
}


@keyframes fadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#cameraView {
    width: 100%;
    max-width: 400px;
}

.thumbnail {
    width: 100px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .thumbnail {
        width: 30px;
        height: 30px;
    }

    th, td {
        font-size: 16px;
        padding: 5px;
    }

    #resultsTable {
        width: 100%;
        min-width: 600px; /* Zapobiega zbyt małej tabeli */
        display: block;
        overflow-x: auto;
    }

    th {
        position: sticky;
    }

    button {
        font-size: 14px;
        padding: 8px;
    }
    .modal-content-cd {
        width: 90%;
        padding: 10px;
    }
    .notification {
        top: 5px;
        right: 5px;
        font-size: 12px;
        padding: 8px;
    }
    
    .modal-content-cd {
        padding: 65px 20px 20px; 
    }
    
}


@media (max-width: 480px) {
    .modal-content-cd {
        width: 90%;
        padding: 65px 20px 20px;
    }
    .modal-header {
        font-size: 14px;
    }

    input, button {
        font-size: 14px;
    }
}


.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff5a00;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    animation: fadeIn 0.5s;
    z-index: 1000;
}

.notification.error {
    background: red;
}

.notification.info {
    background: #fac314;
}

.currSign:before {
    content: '$';
}

#clearConfirmInput {
    text-transform: uppercase;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
}

.disabled-btn {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.app-footer {
    position: fixed;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    color: #888;
    background: rgba(255, 255, 255, 0.8);
    padding: 3px 8px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}