
.preview-area {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-app);
    background-image: radial-gradient(var(--text-secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    opacity: 1; 
    overflow: hidden;
}

.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 80px 80px; 
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1201px) {
    .preview-container {
        padding-right: 0; 
    }
}

.canvas-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    max-width: none;
    max-height: none;
}

.cover-canvas {
    width: 1000px;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #ff6b6b;
    transform-origin: center;
    box-shadow: 
        0 2.8px 2.2px rgba(0, 0, 0, 0.02),
        0 6.7px 5.3px rgba(0, 0, 0, 0.028),
        0 12.5px 10px rgba(0, 0, 0, 0.035),
        0 22.3px 17.9px rgba(0, 0, 0, 0.042),
        0 41.8px 33.4px rgba(0, 0, 0, 0.05),
        0 100px 80px rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.cover-canvas.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#renderCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; 
  display: block; 
}

.background-layer,
.text-layer,
.icon-layer {
    display: none !important;
}

.text-center {
    font-size: 160px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    user-select: none;
    white-space: nowrap;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.icon-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.icon-container {
    width: 200px;
    height: 200px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 45px; 
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px); 
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(255,255,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#iconImage {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.icon-container.image-only {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.icon-container.image-only #iconImage {
    position: static;
    transform: none;
}

.icon-container.shape-circle {
    border-radius: 50% !important;
}

.icon-container.shape-square {
    border-radius: 0 !important;
}

.icon-container.empty::after {
    content: 'No Icon';
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .preview-container {
        padding: 20px;
        padding-bottom: 120px; 
    }
}

