* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    padding: 20px;
    color: #e0e0e0;
}

header {
    max-width: 1000px;
    margin: 0 auto 20px;
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header h1 {
    color: #ffffff;
    font-size: 24px;
}

h3 {
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

#bulk-upload-form {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.custom-file-upload {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#file-count {
    font-size: 14px;
    color: #e0e0e0;
    text-align: center;
}

.custom-file-btn {
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.custom-file-btn:hover {
    background-color: #1565c0;
}

#file-count {
    font-size: 14px;
    color: #e0e0e0;
}

button {
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    font-size: 16px;
}

button:hover {
    background-color: #1565c0;
}

#upload-result {
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
    color: #4caf50;
}

#image-preview-container,
#uploaded-images-container,
#gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

#image-preview-container img,
#uploaded-images-container img,
#gallery-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #555;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

#image-preview-container img:hover,
#uploaded-images-container img:hover,
#gallery-container img:hover {
    transform: scale(1.1);
    border-color: #1e88e5;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox:target {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-notice {
    font-size: 1.1em; 
    margin: 30px auto; 
    padding: 10px 20px; 
    text-align: center;
    color: #e0e0e0;
    background-color: #2c2c2c; 
    max-width: 600px; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.privacy-notice a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: bold; 
    transition: color 0.3s ease;
}

.privacy-notice a:hover {
    color: #1565c0;
}


/* Modal polityki prywatności */
#privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.privacy-modal-content {
    background: #2c2c2c;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    position: relative;
}

.privacy-modal-content h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.privacy-modal-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.privacy-modal-content ul {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-left: 20px;
}

.privacy-modal-content button {
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    display: block;
    transition: background-color 0.3s ease;
}

.privacy-modal-content button:hover {
    background-color: #1565c0;
}

.privacy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.privacy-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.show-gallery-btn {
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    display: block;
    transition: background-color 0.3s ease;
}

.show-gallery-btn:hover {
    background-color: #1565c0;
}

/* Modal hasła */
#password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.password-modal-content {
    background: #2c2c2c;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    position: relative;
}

.password-modal-content h2 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.password-modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background: #3c3c3c;
    color: #e0e0e0;
    font-size: 16px;
}

.password-modal-content button {
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    display: block;
    transition: background-color 0.3s ease;
}

.password-modal-content button:hover {
    background-color: #1565c0;
}

.password-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.password-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

#password-error {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    display: none;
}

@media (max-width: 480px) {
    .privacy-modal-content {
        margin: 10% auto;
    }
    .password-modal-content {
        margin: 10% auto;
    }
}

@media (max-width: 768px) {
    #bulk-upload-form {
        padding: 15px;
    }

    .custom-file-upload {
        flex-direction: column;
        gap: 5px;
    }

    .custom-file-btn {
        width: 100%;
        max-width: 200px;
    }

    #file-count {
        font-size: 12px;
    }

    #upload-result {
        font-size: 14px;
    }

    button {
        max-width: 100%;
        font-size: 14px;
    }

    #image-preview-container,
    #uploaded-images-container,
    #gallery-container {
        gap: 10px;
    }

    #image-preview-container img,
    #uploaded-images-container img,
    #gallery-container img {
        width: 120px;
        height: 120px;
    }
    
    .privacy-modal-content {
        padding: 15px;
    }

    .privacy-modal-content h2 {
        font-size: 20px;
    }

    .privacy-modal-content p,
    .privacy-modal-content ul {
        font-size: 14px;
    }

    .privacy-modal-content button {
        font-size: 14px;
        max-width: 100%;
    }
    
    .show-gallery-btn {
        font-size: 14px;
        max-width: 100%;
    }

    .password-modal-content {
        padding: 15px;
        max-width: 350px;
    }

    .password-modal-content h2 {
        font-size: 18px;
    }

    .password-modal-content input,
    .password-modal-content button {
        font-size: 14px;
    }
}