/* General body styling */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

/* Container for the login elements */
.login-container {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

/* Headings and text */
.login-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.login-container p {
    font-size: 16px;
    color: #666;
}

/* Google Login button styling */
.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s, box-shadow .3s;
    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    color: #757575;
    font-size: 16px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px center;
    cursor: pointer;
    margin-top: 20px;
}

.login-button:hover {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
}

.login-button:active {
    background-color: #eeeeee;
}

.login-button:focus {
    outline: none;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25), 0 0 0 3px #c8dafc;
}

.login-button:disabled {
    filter: grayscale(100%);
    background-color: #ebebeb;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
    cursor: not-allowed;
}

/* Error message styling */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}


/*********************************************************************************/
/* HOME PAGE ELEMENTS */
/* General body and container styling */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Welcome message styling */
.container h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Button container styling */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Primary option buttons styling */
.option-button {
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    background-color: #007bff;
    color: white;
}

.option-button:hover {
    background-color: #0056b3;
}

/* Centered logout container styling */
.logout-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Logout button styling */
.logout-button {
    padding: 10px;
    font-size: 14px; /* Smaller font size */
    width: 60%; /* Centered with the container */
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #c0c0c0;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .container h1 {
        font-size: 20px;
    }

    .option-button {
        font-size: 16px;
        padding: 12px;
    }

    .logout-button {
        font-size: 14px;
        padding: 8px;
        width: 70%; /* Increase width slightly on smaller screens for usability */
    }
}



/*********************************************************************************/
/* NEW LISTING PAGE ELEMENTS */
/* Dotted box for taking images */
.dotted-box {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    color: #555;
}

.camera-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Scroll container for images */
.image-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 10px;
}

.image-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnail .delete-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 16px;
    color: red;
}

/* Form styles */
.container {
    padding: 20px;
    max-width: 500px;
    margin: auto;
    text-align: left;
}

form label, form input, form select, form button {
    width: 100%;
    margin-bottom: 10px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white; /* Text color white */
}

button[type="button"] {
    background-color: #007bff;
    color: white; /* Text color white */
}

/****** DRAFT LISTING PAGE ELEMENTS ******/
.draft-box {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.draft-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.draft-details {
    flex-grow: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 5px;  /* Adjust this to reduce/increase spacing between items */
}

#existing-images {
    display: flex;                /* Make the container display items in a row */
    overflow-x: auto;             /* Enable horizontal scrolling */
    gap: 10px;                    /* Space between each image */
    padding: 10px;                /* Add padding around the images */
    white-space: nowrap;          /* Prevent wrapping */
}

















/* Container for the home elements */
.home-container {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    margin-top: 50px;
}

/* Welcome heading */
.home-container h1 {
    font-size: 24px;
    color: #333;
}

/* Actions paragraph */
.home-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Action buttons */
.action-button {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    background-color: #4285f4;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #357ae8;
}

.logout-button {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    background-color: #d9534f;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #c9302c;
}

/* Drop zone styling */
.drop-zone {
    width: 100%;
    height: 200px;
    border: 2px dashed #4285f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285f4;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.drop-zone:hover {
    background-color: #f0f8ff;
}

.drop-zone p {
    margin: 0;
    text-align: center;
    color: #4285f4;
}

/* Show a different style when dragging files over the drop zone */
.drop-zone.drag-over {
    background-color: #e3f2fd;
}


/* Drop zone styling remains the same */

.preview-container {
    margin-top: 20px;
    text-align: center;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loading overlay styling */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ffffff;
    border-top: 6px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

/* Combined upload container styling */
.upload-container {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Drop zone styling */
.drop-zone {
    width: 100%;
    height: 100%;
    border: 2px dashed #4285f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285f4;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Show different styling when dragging files over the drop zone */
.drop-zone.drag-over {
    background-color: #e3f2fd;
}

/* Image preview overlay */
.preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-preview {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Preview actions (Keep/Discard buttons) */
.preview-actions {
    display: flex;
    gap: 10px;
}
/* Upload container styling remains the same */
.upload-container {
    position: relative;
    width: 100%;
    height: 250px; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image preview styling */
.image-preview {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Preview container styling */
.preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay styling for buttons */
.preview-actions-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

/* Compact Keep and Discard buttons */
.keep-button, .discard-button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.1);
}

/* Keep button styling */
.keep-button {
    background-color: #34a853;
}

.keep-button:hover {
    background-color: #2c8b46;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
}

.keep-button:active {
    background-color: #276c3c;
}

/* Discard button styling */
.discard-button {
    background-color: #ea4335;
}

.discard-button:hover {
    background-color: #d93025;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
}

.discard-button:active {
    background-color: #b8281e;
}




/* item_details.html */

/* General page styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9fb;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Prevents extra scrollbars */
}

/* Container for the form */
.container {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Extra top margin for smaller screens */
    max-height: 80vh; /* Limit height to 80% of the viewport */
    overflow-y: auto; /* Allows scrolling within the container if needed */
}

/* Loading overlay styling */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Loading text */
.loading-overlay p {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

/* Styling for the Done button */
#done-button {
    background-color: #28a745; /* Green background */
    color: #fff; /* White text */
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

#done-button:hover {
    background-color: #218838; /* Darker green on hover */
}

#done-button:active {
    transform: scale(0.98); /* Slightly reduce size on click */
}

#done-button[disabled] {
    background-color: #ccc; /* Gray background when disabled */
    cursor: not-allowed;
}

/* Container styling */
.container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background-color: #f9f9fb;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Label and input styling */
label {
    font-weight: bold;
    margin-top: 10px;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.submit-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

