/* Output Card General Styling */
.card {
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Image Preview Card */
.image-preview-card {
    background-color: #2c3440;
    border: 1px solid #374151;
}

.image-box {
    height: 256px;
    background-color: #374151;
    border: 2px dashed #6b7280;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    overflow: hidden;
}

#image-preview {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

#preview-placeholder {
    color: #9ca3af !important;
}

/* Prompt Output Card */
.prompt-output-card {
    background-color: #2c3440; 
    border-left: 4px solid #6366f1; /* Indigo accent bar */
    position: relative;
    min-height: 256px;
}

#generated-prompt {
    white-space: pre-wrap;
    font-style: italic;
    color: #d1d5db; /* Light gray text for prompt */
    line-height: 1.6;
}

.loading-spinner {
    display: none;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

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

.status-message {
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 15px;
}

.error {
    background-color: #450a0a; /* Dark Red background */
    color: #fca5a5; /* Light Red text */
    border: 1px solid #ef4444;
}

/* Copy Button */
#copy-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 9999px; 
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#copy-button:hover {
    background-color: #4f46e5;
}
#copy-button:active {
    transform: scale(0.95);
}
