/* ==========================================
   Buttons - Dark theme with green accents
   ========================================== */
.btn, .upload-label {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 50px;
    width: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary, .upload-label {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
}
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}
.btn:hover, .upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover, .upload-label:hover {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(120, 255, 60, 0.15);
}
.btn:active, .upload-label:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.btn:disabled {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
}
.btn::after, .upload-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120, 255, 60, 0.1), transparent);
    transition: 0.5s;
}
.btn:hover::after, .upload-label:hover::after {
    left: 100%;
}

#env-control-modal,
#prompt-edit-modal,
#upload-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 30;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.modal-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.modal-body {
    margin-bottom: 20px;
}
.modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    margin-top: 8px;
    min-height: 100px;
    resize: vertical;
    line-height: 1.4;
    background-color: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
    transition: all 0.2s ease;
}

/* Prompt Edit Modal Specific Styles */
.prompt-edit-modal-content {
    max-width: 500px;
    width: 90%;
}

.modal-subtitle {
    margin: 0;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-generate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-generate .generate-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-generate .generate-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-generate.loading .generate-content {
    display: none;
}

.btn-generate.loading .generate-loading {
    display: inline-flex;
}

.btn-generate.loading {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #4ecdc4 100%);
    background-size: 200% 200%;
    animation: gradientShift 2s ease-in-out infinite, pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    transform: none !important;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top: 2.5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
    }
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-generate.loading:disabled {
    opacity: 1 !important;
}

.btn-generate.loading .generate-loading span:last-child {
    animation: textPulse 1.2s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-generate:hover:not(:disabled):not(.loading) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-generate:active:not(:disabled):not(.loading) {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-generate .generate-icon {
    font-size: 16px;
    animation: float 2s ease-in-out infinite;
}

.btn-generate .generate-sparkle {
    font-size: 12px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

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

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.prompt-input-section textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    height: 160px;
    resize: vertical;
    line-height: 1.5;
    background-color: rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.prompt-input-section textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 0 0 3px rgba(120, 255, 60, 0.1);
}

.prompt-input-section textarea::placeholder {
    color: #666;
    font-style: normal;
    line-height: 1.5;
}

.input-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(120, 255, 60, 0.05);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.hint-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Keep existing styles for env-control modal */
.modal-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    margin-top: 8px;
    height: 236px;
    max-height: 236px;
    resize: vertical;
    line-height: 1.4;
    background-color: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
    transition: all 0.2s ease;
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(30, 30, 30, 0.95);
}

#stored-prompt-section input {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    font-family: 'Inter', monospace;
    font-size: 13px;
    min-height: auto;
    margin-top: 0;
    resize: none;
}
#stored-prompt-section input:focus {
    background: #fff;
    border-color: #4a69bd;
    color: #333;
}
#stored-prompt-section select {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 13px;
}
#stored-prompt-section select:focus {
    background: #fff;
    border-color: #4a69bd;
    outline: none;
}
#upload-dev-controls input {
    min-height: auto;
    margin-top: 0;
    resize: none;
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: #666;
    font-style: italic;
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-content-section .modal-footer {
    margin-top: auto;
}

.modal-footer .modal-actions-right {
    display: flex;
    gap: 12px;
}
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 80px;
}

.btn-confirm {
    background: rgba(120, 255, 60, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-btn:hover {
    transform: translateY(-1px);
}

.btn-confirm:hover {
    background: rgba(120, 255, 60, 0.25);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-confirm:disabled {
    background: rgba(120, 255, 60, 0.05) !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

.btn-cancel:disabled {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #555 !important;
}

/* Styles for the existing env-control modal */
.modal-body-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.prompts-section {
    flex: 1;
    max-width: 300px;
}

.prompts-header {
    margin-bottom: 8px;
    padding: 0 4px;
}

.prompts-hint {
    font-size: 12px;
    color: #888;
    font-style: italic;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.input-section {
    flex: 1;
    min-width: 300px;
}

.input-section p {
    margin: 0 0 12px 0;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#default-prompts-list {
    height: 236px;
    overflow-y: scroll;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(20, 20, 20, 0.8);
    padding: 12px;
}

.prompt-item {
    padding: 8px 14px 12px 14px;
    cursor: pointer;
    border-bottom: none;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    height: 56px;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: rgba(40, 40, 40, 0.6);
    box-sizing: border-box;
    color: #aaa;
}

.prompt-item:nth-child(odd) {
    background-color: rgba(35, 35, 35, 0.6);
}

.prompt-item:nth-child(even) {
    background-color: rgba(40, 40, 40, 0.6);
}

.prompt-item:last-child {
    margin-bottom: 0; /* Remove margin from last item */
}

.prompt-item:hover {
    background-color: rgba(120, 255, 60, 0.1) !important;
    color: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prompt-item:active {
    background-color: rgba(120, 255, 60, 0.15) !important;
    transform: translateY(0);
}

#default-prompts-list::-webkit-scrollbar {
    width: 8px;
}

#default-prompts-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 4px 0;
}

#default-prompts-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

#default-prompts-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Old info-panel styles removed - now in game.css as bottom bar */

.collapse-btn {
    background: rgba(120, 255, 60, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.collapse-btn:hover {
    background: rgba(120, 255, 60, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: scale(1.05);
}

.collapse-btn svg {
    transition: transform 0.3s ease;
}

/* World Engine Section */
.engine-section .section-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #c084fc;
}

.engine-content {
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: #e9d5ff;
    position: relative;
    overflow: hidden;
}

/* Upload Image Modal Styles */
#upload-image-modal {
    z-index: 50000; /* Above chatbot (10000) but below tooltips (100001) */
}

.upload-modal-content {
    max-width: 480px;
    width: 90%;
    padding: 0;
}

.upload-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-modal-content .modal-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.025em;
}

.header-left {
    flex: 1;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Upload Image Thumbnail */
.upload-image-thumbnail {
    width: 100px;
    height: 100px;
    background: rgba(30, 30, 30, 0.8);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.image-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.image-name-tag {
    background: rgba(120, 255, 60, 0.08);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-name-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #ccc;
    min-width: 140px;
}

.image-name-display:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

#image-name-text {
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
}

.edit-icon {
    opacity: 0.4;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.image-name-display:hover .edit-icon {
    opacity: 0.8;
}

.image-name-input {
    min-width: 140px;
    padding: 5px 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 0 0 3px rgba(120, 255, 60, 0.1);
    color: #e0e0e0;
    font-weight: 500;
}

.image-name-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(120, 255, 60, 0.15);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

/* Upload Modal Body */
.upload-modal-content .modal-body {
    padding: 10px 20px 8px 20px;
}

.upload-modal-content .prompt-input-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upload-prompt-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    resize: vertical;
    line-height: 1.5;
    background: rgba(30, 30, 30, 0.8);
    transition: all 0.2s ease;
    color: #e0e0e0;
}

.upload-prompt-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(120, 255, 60, 0.1);
    background: rgba(30, 30, 30, 0.95);
}

.upload-prompt-textarea::placeholder {
    color: #666;
    font-style: normal;
}

/* Keep original modal footer styles */
.upload-modal-content .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 10px 20px 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide prompt edit button and status (prompt is now auto-generated) */
#promptEditButton,
#prompt-status {
    display: none !important;
}

/* Hide share buttons (temporarily disabled) */
#videoShareBtn,
#imageShareBtn {
    display: none !important;
}

/* Upload modal close button (green circle X) */
.upload-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(120, 255, 60, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.upload-modal-close:hover {
    background: rgba(120, 255, 60, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: scale(1.1);
}

.upload-modal-close svg {
    width: 14px;
    height: 14px;
}

/* Arrow key controls hint below crop */
.crop-controls-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.crop-kb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    background: rgba(120, 255, 60, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.crop-arrow-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    background: rgba(120, 255, 60, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

/* Green upload button */
.btn-upload-green {
    background: rgba(120, 255, 60, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 22px;
    transition: all 0.2s ease;
}

.btn-upload-green:hover {
    background: rgba(120, 255, 60, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(120, 255, 60, 0.15);
}

.btn-upload-green svg {
    flex-shrink: 0;
}

/* Upload Crop Container */
.upload-modal-content {
    max-width: 560px;
    position: relative;
}

#upload-crop-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

/* Remove Cropper.js checkerboard, use solid dark background */
#upload-crop-container .cropper-bg {
    background-image: none !important;
    background: #1a1a1a !important;
}

/* Enhance crop selection box visibility */
#upload-crop-container .cropper-view-box {
    outline: 2px solid rgba(74, 105, 189, 0.9) !important;
    outline-offset: -2px;
}

#upload-crop-container .cropper-face {
    background-color: rgba(74, 105, 189, 0.08) !important;
}

/* Darken the masked (outside) area more */
#upload-crop-container .cropper-modal {
    background-color: #000 !important;
    opacity: 0.7 !important;
}

/* Style the dashed lines inside crop box */
#upload-crop-container .cropper-dashed {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Style the corner/edge drag handles */
#upload-crop-container .cropper-point {
    background-color: #4a69bd !important;
    width: 8px !important;
    height: 8px !important;
    opacity: 1 !important;
    border-radius: 50%;
}

/* Crop hint text above container */
.upload-crop-hint {
    padding: 6px 0 8px 0;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-crop-hint .hint-icon {
    font-size: 14px;
    flex-shrink: 0;
}

#upload-crop-container img {
    max-width: 100%;
    display: block;
}

/* Auto-cropped preview (non-interactive) */
#upload-crop-container.auto-cropped img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Upload prompt generation status */
.upload-prompt-status {
    padding: 8px 0 0 0;
    font-size: 13px;
    color: #888;
    text-align: center;
    min-height: 24px;
}

.upload-prompt-status.generating {
    color: #ffffff;
}

.upload-prompt-status.success {
    color: #10b981;
}

.upload-prompt-status.error {
    color: #ef4444;
}

.upload-prompt-status.success .view-mode-label {
    font-weight: 600;
    color: #ffffff;
}

.upload-prompt-status.success .view-mode-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
    font-weight: 400;
}