/* Simple 3D Canvas Preview - Based on reference canvasP.css */
.canvas-preview-container {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 20px auto;
    position: relative;
    perspective: 1000px;
    background: transparent; /* Remove gradient background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel2 {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    overflow: visible; /* Ensure edge is visible */
}

.panel2:hover {
    transform: rotateY(5deg);
}

.panel2 > img {
    max-width: 400px;
    max-height: 300px;
    width: auto;
    height: auto;
    transform: perspective(600px) rotateY(30deg);
    transform-origin: left;
    position: absolute;
    top: 50px;
    left: 30px;
    display: block !important;
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 0 !important;
    object-fit: contain;
}

.edge2 {
    width: 15px;
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50px; /* Match the image top position */
    left: 15px;
    transform: perspective(600px) rotateY(-45deg);
    transform-origin: right;
    filter: brightness(0.7);
    z-index: 1;
    overflow: hidden;
    background-color: transparent; /* Ensure no background color */
    box-sizing: border-box; /* Ensure proper sizing */
}

.canvas-preview-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.preview-control-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-control-btn:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.preview-control-btn.active {
    background: #3498db;
    color: white;
}

.canvas-info {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
