/* --- General Styling (as provided by you) --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* Reduced max-width slightly to better fit lists below */
    width: 100%;
    margin-top: 20px; /* Added margin for larger content */
    margin-bottom: 20px;
}
h2 {
    color: #4b004d; /* Deep Purple */
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}
.btn-primary-custom {
    background-color: #6a006a; /* A lighter purple */
    border-color: #6a006a;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
}
.btn-primary-custom:hover {
    background-color: #8b008b; /* Even lighter on hover */
    border-color: #8b008b;
    color: #fff;
}
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}
.form-control:focus, .form-select:focus {
    border-color: #6a006a;
    box-shadow: 0 0 0 0.25rem rgba(106, 0, 106, 0.25);
}
.alert {
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}
/* General loading spinner style */
.loading-spinner {
    display: none; /* Controlled by JS */
    text-align: center;
    margin-top: 20px;
}
.text-primary-custom { /* Added for spinner color consistency */
    color: #6a006a !important;
}

.image-preview-container {
    margin-top: 20px;
    text-align: center;
    border: 1px dashed #ced4da;
    padding: 15px;
    border-radius: 8px;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}
.image-preview-container img { /* Targeted the img tag directly as per JS output */
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: contain;
}
.logout-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    width: auto;
    /* margin-top: 20px; Removed as it's in d-flex for alignment */
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #fff; /* Ensure text color is white */
}
.logout-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}
.mb-3 {
    margin-bottom: 1rem !important;
}

/* New Styles for Upload Progress */
.progress-container {
    margin-top: 20px;
    text-align: center;
}
.progress {
    height: 25px;
    border-radius: 8px;
}
.progress-bar {
    line-height: 25px; /* Vertically center text */
    color: #fff; /* Ensure text is visible */
}

/* New Styles for Product List */
#uploadedProductsList {
    margin-top: 20px;
}
#uploadedProductsList .list-group-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#uploadedProductsList .list-group-item:last-child {
    margin-bottom: 0;
}
#uploadedProductsList .img-thumbnail {
    border-radius: 5px;
    border: 1px solid #ddd;
}
.delete-btn {
    background-color: #dc3545; /* Bootstrap danger color */
    border-color: #dc3545;
    color: #fff;
}
.delete-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}
/* Ensure form elements inside modal look consistent */
#editProductForm .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Alert messages inside the modal */
#editMessage {
    margin-top: 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* --- NEW: Specific Styling for Edit Button Spacing --- */
/* --- NEW: Specific Styling for Edit Button Spacing --- */
.edit-btn {
    /* Existing styles for background-color, border-color, etc. should already be here */
    background-color: #17a2b8; /* Bootstrap 'info' blue */
    border-color: #17a2b8;
    color: white;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    
    /* ADD THIS LINE for spacing, using !important to override Bootstrap's me-2 */
    margin-right: 8px !important; /* Forces 8px space to the right of the edit button */
}

.edit-btn:hover {
    background-color: #138496; /* Darker blue on hover */
    border-color: #138496;
}
