.agent-ia-imagine-container {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
overflow: hidden;
display: flex;
flex-direction: column;
} .imagine-header {
background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
color: white;
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-shrink: 0;
}
.imagine-header-info {
display: flex;
align-items: center;
gap: 12px;
}
.imagine-header-icon {
font-size: 2rem;
line-height: 1;
flex-shrink: 0;
}
.imagine-header-info h1 {
font-size: 1.15rem;
font-weight: 700;
margin: 0 0 2px 0;
color: white !important;
border: none !important;
padding: 0 !important;
line-height: 1.2;
}
.imagine-header-info p {
font-size: 0.78rem;
opacity: 0.85;
margin: 0;
color: rgba(255, 255, 255, 0.9);
}
.imagine-counter-badge {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 20px;
padding: 6px 14px;
font-size: 0.78rem;
font-weight: 600;
white-space: nowrap;
color: white;
flex-shrink: 0;
}
.imagine-counter-badge.is-premium {
background: rgba(255, 215, 0, 0.25);
border-color: rgba(255, 215, 0, 0.5);
} .imagine-body {
padding: 24px;
display: flex;
flex-direction: column;
gap: 20px;
flex: 1;
overflow-y: auto;
} .imagine-prompt-section label {
display: block;
font-weight: 600;
font-size: 0.88rem;
color: #374151;
margin-bottom: 8px;
}
.imagine-prompt-textarea {
width: 100%;
min-height: 96px;
padding: 12px 14px;
border: 2px solid #e5e7eb;
border-radius: 10px;
font-size: 0.93rem;
font-family: inherit;
color: #374151;
resize: vertical;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
outline: none;
line-height: 1.5;
}
.imagine-prompt-textarea:focus {
border-color: #7c3aed;
box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.imagine-prompt-textarea::placeholder {
color: #9ca3af;
}
.prompt-char-count {
text-align: right;
font-size: 0.72rem;
color: #9ca3af;
margin-top: 4px;
} .imagine-section-label {
font-weight: 600;
font-size: 0.88rem;
color: #374151;
margin-bottom: 10px;
display: block;
} .imagine-styles-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
gap: 8px;
}
.style-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
padding: 10px 6px;
border: 2px solid #e5e7eb;
border-radius: 10px;
background: #f9fafb;
cursor: pointer;
transition: border-color 0.15s, background 0.15s, transform 0.15s;
font-family: inherit;
}
.style-btn:hover {
border-color: #7c3aed;
background: #faf5ff;
transform: translateY(-1px);
}
.style-btn.active {
border-color: #7c3aed;
background: #ede9fe;
box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.style-btn-icon {
font-size: 1.4rem;
line-height: 1;
}
.style-btn-label {
font-size: 0.7rem;
font-weight: 600;
color: #374151;
text-align: center;
line-height: 1.2;
} .imagine-formats-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.format-btn {
display: flex;
flex-direction: column;
align-items: center;
padding: 8px 16px;
border: 2px solid #e5e7eb;
border-radius: 8px;
background: #f9fafb;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
font-family: inherit;
min-width: 64px;
}
.format-btn:hover {
border-color: #db2777;
background: #fdf2f8;
}
.format-btn.active {
border-color: #db2777;
background: #fce7f3;
box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.12);
}
.format-btn-label {
font-size: 0.88rem;
font-weight: 700;
color: #374151;
line-height: 1;
}
.format-btn-desc {
font-size: 0.65rem;
color: #6b7280;
margin-top: 2px;
} .imagine-error {
background: #fef2f2;
border: 1px solid #fecaca;
border-radius: 8px;
padding: 10px 14px;
color: #dc2626;
font-size: 0.88rem;
display: none;
}
.imagine-error.visible {
display: block;
} .imagine-upgrade-wall {
background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 100%);
border: 2px solid #e879f9;
border-radius: 12px;
padding: 24px;
text-align: center;
display: none;
}
.imagine-upgrade-wall.visible {
display: block;
}
.imagine-upgrade-wall .upgrade-icon {
font-size: 2.5rem;
margin-bottom: 8px;
}
.imagine-upgrade-wall h3 {
font-size: 1rem;
color: #7c3aed;
margin: 0 0 8px 0;
}
.imagine-upgrade-wall p {
color: #6b7280;
font-size: 0.88rem;
margin: 0 0 16px 0;
line-height: 1.5;
}
.imagine-upgrade-link {
display: inline-block;
padding: 10px 24px;
background: linear-gradient(135deg, #7c3aed, #db2777);
color: white !important;
text-decoration: none !important;
border-radius: 8px;
font-weight: 700;
font-size: 0.88rem;
transition: transform 0.15s, box-shadow 0.15s;
}
.imagine-upgrade-link:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
} .imagine-generate-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 13px 32px;
background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
color: white;
border: none;
border-radius: 12px;
font-size: 0.97rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
width: 100%;
}
.imagine-generate-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}
.imagine-generate-btn:active:not(:disabled) {
transform: translateY(0);
}
.imagine-generate-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-spinner {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.4);
border-top-color: white;
border-radius: 50%;
animation: imagine-spin 0.7s linear infinite;
flex-shrink: 0;
}
@keyframes imagine-spin {
to { transform: rotate(360deg); }
} .imagine-results-section {
border-top: 1px solid #e5e7eb;
padding-top: 20px;
}
.imagine-results-section h3 {
font-size: 0.88rem;
font-weight: 600;
color: #374151;
margin: 0 0 12px 0;
}
.imagine-results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
} .imagine-result-card {
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
position: relative;
background: #f9fafb;
transition: transform 0.2s, box-shadow 0.2s;
}
.imagine-result-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.imagine-result-card:hover .imagine-card-overlay {
opacity: 1;
}
.imagine-result-img {
width: 100%;
height: auto;
display: block;
max-height: 320px;
object-fit: cover;
}
.imagine-card-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.48);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.2s;
}
.imagine-download-btn {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 8px 18px;
background: white;
color: #374151 !important;
border-radius: 8px;
font-size: 0.82rem;
font-weight: 700;
text-decoration: none !important;
transition: background 0.15s, transform 0.15s;
font-family: inherit;
}
.imagine-download-btn:hover {
background: #f3f4f6;
transform: scale(1.04);
}
.imagine-card-meta {
padding: 8px 10px;
background: white;
border-top: 1px solid #f3f4f6;
}
.imagine-card-prompt {
font-size: 0.72rem;
color: #6b7280;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 5px;
}
.imagine-card-tags {
display: flex;
gap: 4px;
flex-wrap: wrap;
}
.imagine-card-tag {
font-size: 0.62rem;
padding: 2px 7px;
border-radius: 4px;
background: #ede9fe;
color: #7c3aed;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.02em;
} .imagine-loading-card {
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
}
.imagine-loading-placeholder {
width: 100%;
padding-top: 75%;
background: linear-gradient(90deg, #f3f4f6 25%, #e9ebee 50%, #f3f4f6 75%);
background-size: 200% 100%;
animation: imagine-shimmer 1.4s infinite;
}
.imagine-loading-label {
padding: 10px;
text-align: center;
font-size: 0.78rem;
color: #9ca3af;
}
@keyframes imagine-shimmer {
0%   { background-position: 200% 0; }
100% { background-position: -200% 0; }
} .imagine-login-notice {
text-align: center;
padding: 40px 24px;
color: #6b7280;
}
.imagine-login-notice .notice-icon {
font-size: 2.5rem;
margin-bottom: 10px;
}
.imagine-login-notice p {
margin: 0 0 16px 0;
font-size: 0.9rem;
}
.imagine-login-notice a {
color: #7c3aed;
font-weight: 600;
} .imagine-admin-notice {
background: #fffbeb;
border: 1px solid #fcd34d;
border-radius: 8px;
padding: 12px 16px;
font-size: 0.85rem;
color: #92400e;
}
.imagine-admin-notice a {
color: #7c3aed;
font-weight: 600;
} @media (max-width: 520px) {
.imagine-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.imagine-body {
padding: 16px;
gap: 16px;
}
.imagine-styles-grid {
grid-template-columns: repeat(3, 1fr);
}
.imagine-results-grid {
grid-template-columns: 1fr;
}
.format-btn {
padding: 8px 10px;
min-width: 54px;
}
}