/* General styles for the plugin settings page */
.wrap {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.form-table {
    width: 100%;
    max-width: 600px;
}

.form-table th {
    width: 30%;
}





.form-table input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-table input[type="submit"] {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-table input[type="submit"]:hover {
    background-color: #0057b3;
}

/* Styles for the license key section */
#license-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#license-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

#license-section p {
    margin-bottom: 10px;
}

.button-deregister {
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.button-deregister:hover {
    background-color: #c9302c;
}
/* CSS for Pexels Image Search and Filter */

.pexels-image-search {
    text-align: center;
    margin: 20px;
}

#pexels-search-input {
    padding: 10px;
    width: 70%;
    font-size: 18px;
}

#pexels-search-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

#pexels-search-button:hover {
    background-color: #005a8c;
}

/* Filter Dropdown */
#selected_api,
#image-quality-filter {
    padding: 10px;
    font-size: 16px;
}

/* Masonry Layout */
.pexels-grid {
    column-count: 4; /* 4 columns */
    column-gap: 20px;
    margin-top: 20px;
	margin-right: 20px;
	margin-left: 20px;
}

.pexels-grid-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid; /* Prevent items from breaking across columns */
    position: relative;
}

.pexels-image {
    width: 100%;
    height: auto;
}

.download-link {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: #005a8c;
}
/* Styles for the image grid */
#ai-image-search-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pixabay-image,

.unsplash-image {
    margin: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    cursor: pointer;
}

.pixabay-image img,
.login-message-container
.unsplash-image img {
    max-width: 100%;
    height: auto;
}

.pixabay-grid {
    column-count: 4; /* 4 columns */
    column-gap: 20px;
    margin-top: 20px;
}

.pixabay-grid-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid; /* Prevent items from breaking across columns */
    position: relative;
}

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

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
}




.share-button {
	text-align: center;
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #1877f2; /* Facebook blue */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.share-button:hover {
    background-color: #005a8c;
}
.like-button {
	text-align: center;
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #1877f2; /* Facebook blue */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.like-button:hover {
    background-color: #005a8c;
}
.fa-heart {
    color: #ccc; /* Default color */
    transition: color 0.3s ease; /* Add a transition effect for color changes */
}

/* Style the liked heart icon */
.fa-heart.liked {
    color: red !important; /* Change the color to red when liked */
}
#close-share-modal {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #ccc;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#close-share-modal:hover {
    background-color: #888;
}
.pexels-image-new {
    max-width: 100%;
    height: auto;
    display: block;
    border: 2px solid #ddd;
    margin: 0 auto;
    transition: transform 0.3s;
}

/* Style individual image items */
.image-item {
    width: 30%; /* Adjust the width to your preferred size */
    margin-bottom: 20px;
    text-align: center;
}

/* Style the image itself */
.image-item img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
}

/* Style the photo ID and photo name text */
.image-item p {
    font-size: 14px;
    margin: 5px 0;
}

/* Style for the dialog overlay */
#collection-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

/* Style for the dialog itself */
#collection-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
    z-index: 999;
    display: none;
}

/* Style for the collection selection form */
#collection-form {
    text-align: center;
}

/* Style for the collection dropdown */
#selected-collection {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

/* Style for the "Add to Collection" button */
.add-to-collection-button {
    background-color: #0074b5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-collection-button:hover {
    background-color: #005080;
}

.collected-images {
    background-color: #f5f5f5;
    padding: 20px;
    border: 1px solid #ccc;
}

.collected-images h2 {
    font-size: 18px;
    margin-top: 10px;
}

.collected-images ul {
    list-style: none;
    padding: 0;
}

.collected-images li {
    font-size: 16px;
    margin-bottom: 10px;
}

.collected-images a {
    color: #0073e6;
    text-decoration: none;
}

.collected-images img {
    max-width: 100%;
    height: auto;
}


/* Styles for mobile devices */
@media screen and (max-width: 768px) {
    .wrap {
        margin: 10px auto;
        padding: 10px;
        box-shadow: none;
    }
	

    .form-table th {
        width: 60%;
    }

    .form-table input[type="text"] {
        width: 90%;
        padding: 8px;
    }

    .form-table input[type="submit"] {
        padding: 8px 16px;
        font-size: 16px;
    }
  .pexels-grid {
        column-count: 1; /* Change to a single column for list view */
        column-gap: 0; /* Remove column gap for list view */
        margin-top: 10px; /* Adjust margin as needed */
    }

    .pexels-grid-item {
        display: block; /* Display grid items as a block */
        margin-bottom: 10px; /* Adjust margin between items */
        break-inside: initial; /* Reset break-inside property */
        position: static; /* Reset position property */
    }

    .pexels-grid-item img {
        width: 100%; /* Ensure images fill the entire width */
        height: auto;
    }
	
	 .pexels-image-search {
        text-align: left; /* Adjust text alignment for mobile */
        margin: 10px; /* Adjust margins */
    }

    #pexels-search-input {
        padding: 8px; /* Adjust padding */
        width: 80%; /* Adjust input width */
        font-size: 16px; /* Adjust font size */
    }

    #pexels-search-button {
        padding: 8px 16px; /* Adjust padding */
        font-size: 16px; /* Adjust font size */
        margin-left: 5px; /* Adjust margin */
    }
   
}

/* Style for form container */
.image-uploader-container {
   max-width: 500px;
       margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Style for form elements */
.image-uploader-form input[type="file"],
.image-uploader-form input[type="text"],
.image-uploader-form select {
    width: calc(100% - 20px);
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Style for submit button */
.image-uploader-form input[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

/* Hover effect on submit button */
.image-uploader-form input[type="submit"]:hover {
    background-color: #45a049;
}

/* Style for result div */
#image-upload-result {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
}

/* Style for progress bar container */
.progress {
    position: relative;
    width: 100%;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease-in-out;
}

/* Adjustments for mobile devices */
@media screen and (max-width: 768px) {
    .image-uploader-form input[type="file"],
    .image-uploader-form input[type="text"],
    .image-uploader-form select {
        width: 100%;
    }
}


.delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Style for the overlay background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 9999;
    display: none;
}

/* Style for the confirmation pop-up */
.confirm-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
}

/* Style for the buttons in the confirmation pop-up */
.confirm-popup button {
    padding: 8px 16px;
    margin-right: 10px;
    cursor: pointer;
}

/* Show the confirmation pop-up when 'show' class is added */
.confirm-popup.show {
    display: block;
}

/* Style the 'Yes' and 'No' buttons */
.confirm-popup .yes-btn {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
}

.confirm-popup .no-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
}
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination .page-numbers:hover {
    background-color: #f0f0f0;
}


