/**
 * Contest Manager - Design Area Visual Improvements
 * Better visual representation of design area
 */

/* Design area border styling - blue dashed like in mockup */
.cm-design-area-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed #4A90E2;
    pointer-events: none;
    box-sizing: border-box;
}

/* Alternative with better visibility */
#cm-design-drop-zone {
    position: absolute;
    border: 2px dashed #4A90E2 !important;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Hover state for better UX */
#cm-design-drop-zone:hover {
    background: rgba(74, 144, 226, 0.05);
    border-color: #2E7CD6 !important;
}

/* When dragging over */
#cm-design-drop-zone.drag-over {
    background: rgba(74, 144, 226, 0.1);
    border-color: #2E7CD6 !important;
    border-width: 3px !important;
}

/* Canvas inside should fill the area */
#cm-design-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Product image container adjustments - NO PADDING! */
.cm-canvas-container {
    position: relative;
    display: inline-block; /* Shrink to content */
    background: #f5f5f5;
    border-radius: 8px;
    overflow: visible; /* Allow design area info to show */
}

/* Product image styling - fill container */
#cm-design-product-bg {
    display: block;
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
}

/* Info tooltip for design area */
.cm-design-area-info {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cm-canvas-container {
        min-height: 400px;
    }
    
    #cm-design-product-bg {
        max-height: 400px;
    }
}