.descgpt-admin-wrap {
    margin: 20px 0;
}

.descgpt-logs-wrap {
    max-width: 100%
}

.descgpt-desc-wrapper {
    max-width: 100%;
}

.descgpt-admin-wrap .form-table th {
    width: 200px;
}

.descgpt-admin-wrap .regular-text,
.descgpt-admin-wrap .large-text {
    width: 100%;
    max-width: 500px;
}

.descgpt-admin-wrap .small-text {
    width: 100px;
}

.descgpt-admin-wrap .description {
    font-style: italic;
    color: #666;
}

.descgpt-admin-wrap .notice {
    margin-bottom: 20px;
}

.descgpt-admin-wrap .descgpt-api-key-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.descgpt-admin-wrap .descgpt-api-key-row .button {
    margin-top: 5px;
}

/* TRACK UNSAVED CHANGES */
.descgpt-field-changed {
    border: 2px solid #ffb300 !important;
    background-color: #fff9e6;
    transition: background-color 0.3s ease;
}

.descgpt-unsaved-warning {
    display: none;
    background: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffb300;
    padding: 10px;
    margin: 10px 0;
    font-weight: 500;
}

/* SUGGESTIONS STYLES */
/* .descgpt-suggestions {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.descgpt-suggestions h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.descgpt-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.descgpt-product-item {
    flex: 1 1 300px;
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.descgpt-product-item img {
    max-width: 100%;
    height: auto;
}

.descgpt-product-item h3 {
    font-size: 1.2em;
    margin: 10px 0 5px;
}

.descgpt-product-item .price {
    color: green;
    font-weight: bold;
}

.descgpt-product-item .reason {
    font-style: italic;
    color: #666;
} */

img {
    border-style: none !important
}

/* DESCRIPTION STYLES */

#descgpt-toast {
    transform: translateY(100px);
    opacity: 0;
}

#descgpt-toast.show {
    transform: translateY(0);
    opacity: 1;
    background-color: #10b981;
}

#descgpt-toast.error {
    background-color: #ef4444;
}

/* Button States */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transition: opacity 0.2s ease;
}

button.processing::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Content Type Dropdown */
#descgpt-content-type {
    transition: all 0.3s ease;
}

#descgpt-content-type:focus,
#descgpt-content-type option:checked {
    background-color: #e6f3ff;
    border-color: #2563eb;
}

/* Item Selection Dropdown */
#descgpt-item-select {
    transition: all 0.3s ease;
}

#descgpt-item-select:not(:empty) {
    border-color: #2563eb;
    background-color: #f0f9ff;
}

#descgpt-selection-summary {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f0f9ff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #1f2937;
}

#descgpt-item-select:not(:empty)+#last-generated+#descgpt-selection-summary {
    display: block;
}

/* Checkbox Styling */
.form-checkbox:checked {
    background-color: #2563eb;
    border-color: #2563eb;
    transition: all 0.2s ease;
}

.form-checkbox:focus {
    ring: 2px solid #93c5fd;
}

.checkbox-label {
    transition: color 0.2s ease;
}

.form-checkbox:checked+.checkbox-label {
    color: #2563eb;
    font-weight: 600;
}

/* Accordion Animations */
#generatedAccordion>div>div {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#generatedAccordion>div>div:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

#generatedAccordion h3 {
    transition: background-color 0.2s ease;
}

#generatedAccordion h3.active {
    background-color: #e6f3ff;
    border-left: 4px solid #2563eb;
}

/* Content Stats Animation */
#content-stats {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#content-stats.hidden {
    opacity: 0;
    transform: scale(1);
}

.tooltip {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.tooltip:not(.invisible) {
    transform: translateY(0);
}

/* Feedback Area */
#descgpt-feedback-area {
    transition: all 0.3s ease;
    opacity: 0.9;
}

#descgpt-feedback-area:not(.empty) {
    opacity: 1;
}

#descgpt-selection-summary,
#last-generated {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#descgpt-selection-summary:not(.empty) {
    transform: scale(1.02);
}

#last-generated:not(.hidden) {
    transform: scale(1.02);
}

#last-generated.hidden {
    opacity: 0;
}

#last-generated-timestamp {
    font-weight: 600;
}

#last-generated-loading {
    transition: opacity 0.2s ease;
}

#descgpt-item-select {
    transition: all 0.3s ease;
}

#descgpt-item-select:not(:empty) {
    border-color: #2563eb;
    background-color: #f0f9ff;
}

#descgpt-tab-individual, #descgpt-tab-bulk{
    font-size: 1.25rem;
}

#descgpt-description-settings-header{
    font-size: 1.25rem;
    margin-top: 0 !important;
}