/* EDVC Mapper - Card Edit Mode Styles */

.edvc-card-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
}

.edvc-card-edit-content {
    background-color: white;
    border-radius: var(--edvc-border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Close Button */
.edvc-card-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--edvc-border-radius);
    transition: var(--edvc-transition);
    z-index: 10;
}

.edvc-card-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.edvc-card-close img {
    width: 20px;
    height: 20px;
	display: block
}

/* Card Header */
.edvc-card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e1e8ed;
}

.edvc-card-title-input {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--edvc-text-primary) !important;
    border: none !important;
    background: transparent;
    width: 100% !important;
    padding: 0.5rem 0 !important;
    margin: 0;
    text-align: center;
}

.edvc-card-title-input:focus {
    outline: 2px solid var(--edvc-highlight);
    outline-offset: 4px;
}

/* Card Sections */
.edvc-card-section {
    padding: 2rem;
    border-bottom: 1px solid #e1e8ed;
}

.edvc-card-section:last-child {
    border-bottom: none;
}

.edvc-section-title {
    font-size: 18px;
    font-weight: 600;
	font-family: inherit;
	line-height: normal;
    color: var(--edvc-text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--edvc-highlight);
}

/* Two Column Layout */
.edvc-two-column {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: start;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.edvc-field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--edvc-text-primary);
    margin-bottom: 0.5rem;
    padding-top: 0.75rem;
}

.edvc-field-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Solution Content Grid */
.edvc-solution-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 0.5rem;
}

.edvc-solution-content .edvc-textarea {
    height: 100%;
    min-height: 120px;
    resize: vertical;
}

/* Input Fields */
.edvc-text-input {
    width: 100%;
    padding: 0.75rem !important;
    border: 2px solid #e1e8ed !important;
    border-radius: var(--edvc-border-radius) !important;
    font-size: 14px !important;
    color: var(--edvc-text-primary) !important;
    transition: var(--edvc-transition) !important;
}

.edvc-text-input:focus {
    border-color: var(--edvc-highlight) !important;
    outline: none !important;
}

.edvc-textarea {
    min-height: 80px !important;
    resize: vertical !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
}

/* ------------  Tag Styling Start ------------- */

/* Tag Input Container */
.edvc-tag-input {
    width: 100%;
}

/* Input Row - Input + Button nebeneinander */
.edvc-tag-input-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.75rem;
}

.edvc-tag-input-row .edvc-text-input {
    flex: 1;
}

.edvc-tag-input-row .edvc-text-input {
    flex: 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Einfacher Plus Button */
.edvc-tag-plus-btn {
    background-color: #f8f9fa;
    border: 2px solid #e1e8ed;
	border-left: 0px;
    border-radius: var(--edvc-border-radius);
	border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.75rem;
    width: 48px;
    cursor: pointer;
    transition: var(--edvc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edvc-tag-plus-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.edvc-tag-plus-btn:active {
    transform: scale(0.95);
}

.edvc-tag-plus-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.edvc-tag-plus-btn:hover img {
    opacity: 1;
}

/* Tags Container - unterhalb */
.edvc-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 0;
}

/* Einzelne Tags */
.edvc-tag {
    background-color: var(--edvc-bg-navbar);
	border: 1px solid #e1e8ed;
    color: var(--edvc-text-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 14px;
    position: relative;
    cursor: default;
    transition: all 0.2s ease;
}

.edvc-tag:hover {
    background-color: #e9ecef;
	border-color: #ced4da;
}

/* Tag Delete Button - versteckt bis Hover */
.edvc-tag-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #dc3545;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edvc-tag-delete img {
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(1);
}

.edvc-tag-delete:hover {
    background-color: #b02a37;
}

/* Delete Button erscheint bei Tag Hover */
.edvc-tag:hover .edvc-tag-delete {
    opacity: 1;
    visibility: visible;
}


/* Mobile/Touch Geräte */
@media (hover: none) and (pointer: coarse) {
    .edvc-tag .edvc-tag-delete {
        opacity: 0.8;
        visibility: visible;
    }
    
    .edvc-tag:hover .edvc-tag-delete {
        opacity: 1;
    }
    
    .edvc-tag-delete {
        width: 22px;
        height: 22px;
        top: -8px;
        right: -8px;
    }
    
    .edvc-tag-delete img {
        width: 12px;
        height: 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .edvc-tag-input-row {
        flex-direction: column;
    }
    
    .edvc-tag-plus-btn {
        align-self: flex-start;
        width: 44px;
    }
    
    .edvc-tag {
        font-size: 13px;
        padding: 0.25rem 0.6rem;
    }
    
    .edvc-tags-container {
        gap: 0.4rem;
    }
}



/* ------------  Tag Styling Ende ------------- */


/* Image Upload */
.edvc-image-upload {
    position: relative;
    border: 2px dashed #e1e8ed;
    border-radius: var(--edvc-border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--edvc-transition);
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edvc-image-upload:hover {
    border-color: var(--edvc-highlight);
    background-color: rgba(0, 124, 186, 0.05);
}

.edvc-image-upload.has-image {
    padding: 0;
    border: none;
    min-height: auto;
}

.edvc-uploaded-image {
    width: 100%;
    height: auto;
    border-radius: var(--edvc-border-radius);
}

.edvc-upload-placeholder {
    color: var(--edvc-text-secondary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.edvc-upload-placeholder img {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

/* Rating Buttons */
.edvc-rating-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.edvc-rating-btn {
    background: none;
    border: none;
    padding: 8px;
    margin: 0 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edvc-rating-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.edvc-rating-btn.unselected:hover img {
    opacity: 0.8;
    filter: grayscale(25%) brightness(1.1);
}

.edvc-rating-btn.selected img {
    opacity: 1;
    filter: none;
}

.edvc-rating-btn img {
    width: 44px;
    height: 44px;
    transition: var(--edvc-transition);
}

.edvc-rating-btn:hover img {
    transform: scale(1.1);
}

.edvc-rating-btn.unselected {
    opacity: 0.4;
}

.edvc-rating-btn.unselected img {
    opacity: 0.5;
    filter: grayscale(50%) brightness(1.2);
}

/* Pain Points Section */
.edvc-pain-points {
    margin-top: 1rem;
}


#edvc-pain-points-field .edvc-two-column.edvc-field-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}
/* Ideas Section */
.edvc-ideas {
    background-color: #d4edda;
    padding: 1rem;
    border-radius: var(--edvc-border-radius);
    margin-top: 1rem;
}

/* Add Buttons */
.edvc-add-btn, .edvc-btn-add {
    background-color: rgba(0, 124, 186, 0.1);
    border: 2px dashed var(--edvc-highlight);
    color: var(--edvc-highlight);
    padding: 0.75rem;
    border-radius: var(--edvc-border-radius);
    cursor: pointer;
    transition: var(--edvc-transition);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    width: auto;
    min-width: 120px;
    margin-top: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.edvc-add-btn:hover, .edvc-btn-add:hover {
    background-color: rgba(0, 124, 186, 0.2);
    border-color: #005f8a;
}



/* Opportunities Section */
.edvc-opportunities {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-top: 1rem;
    border-radius: var(--edvc-border-radius);
}

.edvc-opportunity-block {
    margin-bottom: 2rem;
}

.edvc-opportunity-block:last-child {
    margin-bottom: 0;
}

.edvc-opportunity-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--edvc-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e1e8ed;
}

/* Empty field styling */
.edvc-empty-field {
    color: #999;
    font-style: italic;
    opacity: 0.7;
}

.edvc-empty-field:hover {
    opacity: 1;
    color: var(--edvc-text-secondary);
}

/* Image placeholder styling */
.edvc-idea-image-placeholder {
    border: 2px dashed #c3e6cb;
    border-radius: var(--edvc-border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--edvc-transition);
    background-color: #f0f8f0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.edvc-idea-image-placeholder:hover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.edvc-upload-icon {
    font-size: 24px;
    opacity: 0.6;
}

.edvc-upload-text {
    font-size: 12px;
    color: var(--edvc-text-secondary);
    font-weight: 500;
}


/* Print Card Button */
.edvc-print-card-btn {
    background-color: var(--edvc-highlight);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--edvc-border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--edvc-transition);
    width: 100%;
    margin: 2rem 0 0;
}

.edvc-print-card-btn:hover {
    background-color: #005f8a;
}


/* ===== TOOLTIP STYLES FÜR MAPPING TOOLS START ===== */

/* Button muss relative Position haben für absolute Tooltip-Positionierung */
.edvc-tool-btn,
.edvc-edit-trigger-btn {
    position: relative;
}

/* Standard Tooltip Container für Mapping Tools */
.edvc-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edvc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333333;
}

/* Mapping Tool Tooltips */
.edvc-tool-btn:hover .edvc-tooltip,
.edvc-edit-trigger-btn:hover .edvc-tooltip {
    opacity: 1;
    visibility: visible;
}

.edvc-tool-btn.disabled .edvc-tooltip {
    display: none;
}

/* ===== EXTERNE TOOLTIPS FÜR RATING BUTTONS ===== */

.edvc-external-tooltip {
    position: absolute; /* Statt fixed */
    background-color: #333333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edvc-external-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333333;
}

/* ===== TOOLTIP STYLES FÜR MAPPING TOOLS END ===== */

/* ===== INFO COINS START ===== */

/* Info-Icon Styling für Field Labels */
.edvc-field-label-with-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edvc-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: solid 1px var(--edvc-text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: help;
    flex-shrink: 0;
}

/* Info-Icon Tooltip - speziell für Field Labels */
.edvc-info-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
	min-width: 180px;
    max-width: 200px;
    white-space: normal; /* Allow text wrapping for longer tooltips */
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.edvc-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333333;
}

.edvc-info-icon:hover .edvc-info-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .edvc-info-tooltip {
        max-width: 200px;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .edvc-info-icon {
        width: 18px;
        height: 18px;
        font-size: 13px;
    }
}

@media (min-width: 1921px) {
    .edvc-info-tooltip {
        width: 220px;              /* Etwas breiter auf sehr großen Bildschirmen */
        font-size: 13px;           /* Leicht größere Schrift */
        padding: 9px 14px;
    }
}

/* ===== INFO COINS ENDE ===== */


/* ===== PAIN POINTS & IDEAS - PERSISTENT EXPANDABLE ITEMS START ===== */

/* Pain Point Subtitle für Pain Relievers */
.edvc-pain-point-subtitle {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 3px solid #f39c12;
    font-weight: 500;
}

/* Pain Point Items */
.edvc-pain-point-item {
    background-color: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: var(--edvc-border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--edvc-transition);
}


/* Idea Items */
.edvc-idea-item {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: var(--edvc-border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--edvc-transition);
}

/* Header Row - Titel + Controls */
.edvc-item-header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
	pointer-events: auto;
}

/* Titel Input */
.edvc-item-title-input {
    width: 100%;
    padding: 0.5rem 0.75rem !important;
    border: 2px solid transparent;
    border-radius: var(--edvc-border-radius) !important;
    font-size: 14px;
    font-weight: 700;
    background-color: transparent;
    transition: var(--edvc-transition) !important;
}

.edvc-item-title-input:focus {
    outline: none;
    border-color: var(--edvc-highlight);
    background-color: rgba(255, 255, 255, 0.8);
}

.edvc-idea-item .edvc-item-title-input::placeholder {
    color: #2e7d32 !important;
    opacity: 0.7;
}

.edvc-idea-item .edvc-item-title-input::-webkit-input-placeholder {
    color: #2e7d32 !important;
    opacity: 0.7;
}

.edvc-idea-item .edvc-item-title-input {
	background: none;
    color: #2e7d32;
	border: 2px solid transparent;
}

.edvc-idea-item .edvc-item-title-input:hover {
	background: #f0f8f0;
}

.edvc-idea-item .edvc-item-title-input:focus {
    background-color: #f0f8f0;
	border: 2px solid #28a745;
}

.edvc-pain-point-item .edvc-item-title-input::placeholder {
    color: #856404 !important;
    opacity: 0.7;
}

.edvc-pain-point-item .edvc-item-title-input::-webkit-input-placeholder {
    color: #856404 !important;
    opacity: 0.7;
}

.edvc-pain-point-item .edvc-item-title-input {
    background: none;
    color: #856404;
	border: 2px solid transparent;
}

.edvc-pain-point-item .edvc-item-title-input:hover {
    background-color: #fffbf0;
}

.edvc-pain-point-item .edvc-item-title-input:focus {
    background-color: #fffbf0;
    border: 2px solid #f39c12;
}




.edvc-item-title-input,
.edvc-pain-point-description textarea,
.edvc-idea-description textarea {
    pointer-events: auto; /* Stelle sicher dass Inputs klickbar sind */
    position: relative;
    z-index: 1; /* Über anderen Elementen */
}



/* Controls Container */
.edvc-item-controls {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

/* Control Buttons */
.edvc-expand-btn,
.edvc-delete-item-btn {
    background: none;
    border: none;
    border-radius: var(--edvc-border-radius);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--edvc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edvc-expand-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.edvc-delete-item-btn:hover {
    background-color: rgba(220, 50, 50, 0.1);
}

.edvc-expand-btn img,
.edvc-delete-item-btn img {
    width: 16px;
    height: 16px;
    transition: var(--edvc-transition);
}

.edvc-expand-btn.expanded img {
    transform: rotate(180deg);
}

.edvc-delete-item-btn:hover img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(98%) saturate(7404%) hue-rotate(355deg) brightness(85%) contrast(118%);
}

/* Expanded Content Row */
.edvc-item-expanded-content {
    margin-top: 0.75rem;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
	pointer-events: auto;
}

.edvc-item-expanded-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.edvc-item-expanded-content.expanded {
    max-height: 1000px;
    opacity: 1;
	overflow: visible;
}

/* Pain Point Expanded Content (nur Description) */
.edvc-pain-point-description {
    width: 100%;
}

.edvc-pain-point-description textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
	color: #856404;
    border: 2px solid transparent;
    border-radius: var(--edvc-border-radius);
    background-color: transparent;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: var(--edvc-transition);
}

.edvc-pain-point-item .edvc-pain-point-description textarea::placeholder {
    color: #856404 !important;
    opacity: 0.7;
}

.edvc-pain-point-item .edvc-pain-point-description textarea::-webkit-input-placeholder {
    color: #856404 !important;
    opacity: 0.7;
}


.edvc-pain-point-description textarea:hover {
    background-color: #fffbf0;
}


.edvc-pain-point-description textarea:focus {
    outline: none;
	border: 2px solid #f39c12;

}

/* Idea Expanded Content (Grid: Description + Image) */
.edvc-idea-expanded-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.edvc-idea-description {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edvc-idea-description textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
	background-color: transparent;
	color: #2e7d32;
    border: 2px solid transparent;
    border-radius: var(--edvc-border-radius);
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: var(--edvc-transition);
}	

.edvc-idea-item .edvc-idea-description textarea::placeholder {
    color: #2e7d32 !important;
    opacity: 0.7;
}

.edvc-idea-item .edvc-idea-description textarea::-webkit-input-placeholder {
    color: #2e7d32 !important;
    opacity: 0.7;
}

.edvc-idea-description textarea:hover {
    background-color: #f0f8f0;
}

.edvc-idea-description textarea:focus {
    outline: none;
    border-color: #28a745;
    background-color: #f0f8f0;
	border: 2px solid #28a745;
}

/* Idea Image Upload */
.edvc-idea-image-upload {
    width: 120px;
    height: 100px;
    border: 2px dashed #7dc87d;
    border-radius: var(--edvc-border-radius);
    background-color: #f0f8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--edvc-transition);
    position: relative;
    overflow: hidden;
}

.edvc-idea-image-upload:hover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.edvc-idea-image-upload.has-image {
    padding: 0;
    border: none;
    min-height: auto;
	overflow:visible;
}

.edvc-idea-image-upload .upload-placeholder {
    text-align: center;
    color: var(--edvc-text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.edvc-idea-image-upload .upload-placeholder img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.edvc-idea-image-upload .uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--edvc-border-radius) - 2px);
}

.edvc-idea-image-upload input[type="file"] {
    display: none;
}

/* Field Labels für erweiterte Inhalte */
.edvc-field-label-small {
    font-size: 12px;
    font-weight: 600;
    color: var(--edvc-text-primary);
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

/* State Indicators */
.edvc-pain-point-item.is-new,
.edvc-idea-item.is-new {
    animation: fadeInSlideDown 0.3s ease-out;
}

.edvc-pain-point-item.is-saving,
.edvc-idea-item.is-saving {
    opacity: 0.7;
}

.edvc-pain-point-item.has-error,
.edvc-idea-item.has-error {
    border-color: var(--edvc-warning);
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.1);
}

/* Animations */
@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .edvc-idea-expanded-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .edvc-idea-image-upload {
        width: 100%;
        height: 80px;
    }
    
    .edvc-item-header-row {
        gap: 0.5rem;
    }
    
    .edvc-item-controls {
        gap: 0.125rem;
    }
}

/* ===== PAIN POINTS & IDEAS - PERSISTENT EXPANDABLE ITEMS END ===== */


/* ===== ENHANCED IMAGE HANDLING CSS START ===== */

/* Image Delete Button */
.edvc-image-delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edvc-image-delete-btn img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1); /* Make icon white */
}

.edvc-image-delete-btn:hover {
    background-color: rgba(220, 50, 50, 1);
    transform: scale(1);
}



/* Always show delete button on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .edvc-image-upload.has-image .edvc-image-delete-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ensure image containers are positioned relative for absolute delete button */
.edvc-image-upload.has-image,
.edvc-idea-image-upload.has-image {
    position: relative;
}

/* Make images clickable with cursor pointer */
.edvc-image-upload.has-image .edvc-uploaded-image,
.edvc-idea-image-upload.has-image .uploaded-image {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ENHANCED IMAGE UPLOAD STYLING */

/* Improve visual feedback for image containers */
.edvc-image-upload,
.edvc-idea-image-upload {
    transition: all 0.2s ease;
}

/* Better visual hierarchy for delete button */
.edvc-image-upload.has-image .edvc-image-delete-btn,
.edvc-idea-image-upload.has-image .edvc-image-delete-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Prevent delete button from interfering with image clicks */
.edvc-image-upload.has-image .edvc-uploaded-image,
.edvc-idea-image-upload.has-image .uploaded-image {
    position: relative;
    /*z-index: 5;*/
}

/* Ensure proper spacing and layout */
.edvc-solution-content .edvc-image-upload {
    min-height: 120px;
}

.edvc-idea-image-upload {
    min-height: 100px;
}

/* Loading state for image uploads */
.edvc-image-upload.uploading,
.edvc-idea-image-upload.uploading {
    opacity: 0.7;
    pointer-events: none;
}

.edvc-image-upload.uploading::after,
.edvc-idea-image-upload.uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #e1e8ed;
    border-top: 3px solid var(--edvc-highlight);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RESPONSIVE ENHANCEMENTS */

@media (max-width: 768px) {
    /* Make touch targets larger on mobile */
    .edvc-image-delete-btn {
        width: 32px;
        height: 32px;
        top: 6px;
        right: 6px;
    }
    
    .edvc-image-delete-btn img {
        width: 16px;
        height: 16px;
    }
    
    /* Improve mobile image interaction */
    .edvc-image-upload.has-image .edvc-uploaded-image,
    .edvc-idea-image-upload.has-image .uploaded-image {
        border-radius: var(--edvc-border-radius);
    }
}

/* ACCESSIBILITY IMPROVEMENTS */

/* Focus states for keyboard navigation */
.edvc-image-upload.has-image .edvc-uploaded-image:focus,
.edvc-idea-image-upload.has-image .uploaded-image:focus {
    outline: 2px solid var(--edvc-highlight);
    outline-offset: 2px;
}

.edvc-image-modal-close:focus {
    outline: 2px solid var(--edvc-highlight);
    outline-offset: 2px;
}

/* Screen reader improvements */
.edvc-image-delete-btn[aria-label]::before {
    content: attr(aria-label);
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .edvc-image-delete-btn {
        background-color: #000;
        border: 2px solid #fff;
    }
    
    .edvc-image-modal {
        background-color: #000;
    }
    
    .edvc-image-modal-close {
        background-color: #fff;
        border: 2px solid #000;
    }
}

/* ===== ENHANCED IMAGE HANDLING CSS ENDE ===== */

/*---------- Responsive Design ----------*/
@media (max-width: 768px) {
    .edvc-card-edit-modal {
        padding: 1rem;
    }
    
    .edvc-two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .edvc-solution-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .edvc-field-label {
        padding-top: 0;
    }
    
}