/* Entrance Design Selector Styles */
.entrance-design-card {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.entrance-design-card .card-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.entrance-design-card .card-title i {
    color: #d4af37;
    margin-right: 8px;
}

.entrance-designs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .entrance-designs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.entrance-design-option {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.entrance-design-option:hover {
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.entrance-design-option.selected {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fffdf5 0%, #fff9e6 100%);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.25);
}

.entrance-design-option.selected .entrance-design-name i {
    display: inline-block;
    color: #28a745;
}

.entrance-design-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

.entrance-design-name i {
    display: none;
    margin-right: 5px;
}

.entrance-design-desc {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    line-height: 1.3;
}

.entrance-preview {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Door Preview */
.entrance-preview-door {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8dcc8 100%);
}

.preview-door-left, .preview-door-right {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #d3b17d, #e6ccb2);
    transition: transform 0.5s ease;
}

.preview-door-left {
    left: 0;
    transform-origin: left;
}

.preview-door-right {
    right: 0;
    transform-origin: right;
}

.entrance-design-option:hover .preview-door-left {
    transform: perspective(300px) rotateY(-25deg);
}

.entrance-design-option:hover .preview-door-right {
    transform: perspective(300px) rotateY(25deg);
}

.preview-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    color: #333;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Curtain Preview */
.entrance-preview-curtain {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.preview-curtain-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(180deg, #DAA520 0%, #B8860B 100%);
    z-index: 10;
}

.preview-curtain-left, .preview-curtain-right {
    position: absolute;
    width: 55%;
    height: 100%;
    background: linear-gradient(180deg, #8B0000 0%, #5c0000 50%, #8B0000 100%);
    transition: transform 0.5s ease;
}

.preview-curtain-left {
    left: 0;
}

.preview-curtain-right {
    right: 0;
}

.entrance-design-option:hover .preview-curtain-left {
    transform: translateX(-40%);
}

.entrance-design-option:hover .preview-curtain-right {
    transform: translateX(40%);
}

.preview-curtain-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    color: #8B0000;
    z-index: 5;
    border: 2px solid #DAA520;
}

/* Envelope Preview */
.entrance-preview-envelope {
    background: linear-gradient(135deg, #fdf6e3 0%, #f5e6d3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-envelope-body {
    position: absolute;
    bottom: 15%;
    width: 70%;
    height: 50%;
    background: linear-gradient(180deg, #f5ebe0 0%, #e8ddd0 100%);
    border-radius: 3px;
}

.preview-envelope-flap {
    position: absolute;
    top: 15%;
    width: 70%;
    height: 35%;
    background: linear-gradient(180deg, #e8ddd0 0%, #d4c4b0 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top center;
    transition: transform 0.5s ease;
}

.entrance-design-option:hover .preview-envelope-flap {
    transform: rotateX(60deg);
}

.preview-envelope-seal {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #c41e3a 0%, #8b0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #FFD700;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.entrance-design-option:hover .preview-envelope-seal {
    opacity: 0;
}

/* Flower Preview */
.entrance-preview-flower {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 50%, #fce7f3 100%);
}

.preview-petal {
    position: absolute;
    width: 25px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform-origin: center bottom;
    transform: translate(-50%, -100%) rotate(var(--rotation));
    transition: transform 0.5s ease;
}

.preview-petal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffb6c1 0%, #ff69b4 50%, #ff1493 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.entrance-design-option:hover .preview-petal {
    transform: translate(-50%, -100%) rotate(var(--rotation)) translateY(-15px) scale(0.7);
    opacity: 0.5;
}

.preview-flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 600;
    color: #ff1493;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255,105,180,0.3);
}

/* Color Theme Selector Styles */
.color-theme-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.color-theme-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.color-theme-title i {
    color: #d4af37;
    margin-right: 8px;
}

.color-theme-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.color-picker-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.color-picker-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.color-picker-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.color-picker-display {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-picker-display:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.color-picker-preview {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #d4af37;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-right: 15px;
    flex-shrink: 0;
}

.color-picker-info {
    display: flex;
    flex-direction: column;
}

.color-hex {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.color-label {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.color-presets {
    margin-bottom: 20px;
}

.presets-label, .palette-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.preset-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-preset {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-preset:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-preset.active {
    border-color: #333;
    transform: scale(1.1);
}

.color-palette-preview {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

.palette-colors {
    display: flex;
    gap: 8px;
}

.palette-color {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

/* Soft pastel default palette */
#pal_primary { background: #dfc36e; }
#pal_secondary { background: #edd9a3; }
#pal_dark { background: #c4a04a; }
#pal_light { background: #f8f1dc; }

/* Seal Logo Upload Styles */
.seal-logo-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.seal-logo-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.seal-logo-title i {
    color: #c0392b;
    margin-right: 8px;
}

.seal-logo-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.seal-logo-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.seal-logo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0392b 0%, #8B0000 100%);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.seal-logo-placeholder {
    color: #ffd700;
    text-align: center;
}

.seal-logo-placeholder i {
    font-size: 28px;
    display: block;
    margin-bottom: 5px;
}

.seal-logo-placeholder span {
    font-size: 10px;
    display: block;
}

#seal_logo_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seal-logo-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.seal-upload-btn {
    background: linear-gradient(135deg, #c0392b 0%, #8B0000 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seal-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}

.seal-remove-btn {
    background: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seal-remove-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.seal-logo-hint {
    font-size: 11px;
    color: #888;
}

.seal-logo-hint i {
    color: #3498db;
    margin-right: 5px;
}
