/* Canvas and Card Editor Styles */

/* Color Picker */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.color-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

/* Preset Colors */
.preset-colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preset-color {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.preset-color:hover,
.preset-color.selected {
    border-color: #fff;
    transform: scale(1.1);
}

/* Canvas Preview */
.canvas-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    overflow: hidden;
}

#previewCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Logo Upload */
.logo-preview {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
    border-radius: 8px;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255,255,255,0.2);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle.active {
    background: #00d2ff;
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s;
}

.toggle.active .toggle-knob {
    left: 27px;
}

/* Text Editor with Colors */
.text-editor {
    position: relative;
}

.text-editor-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.color-btn:hover,
.color-btn.active {
    border-color: #fff;
    transform: scale(1.1);
}

/* Rich Text Display */
.rich-text-preview {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Line Break Editor */
.line-break-editor {
    margin: 15px 0;
}

.line-break-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.line-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.line-item input {
    flex: 1;
}

/* Highlight Text Editor */
.highlight-word {
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px;
    display: inline-block;
    cursor: pointer;
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    min-height: 60px;
}

.word-chip {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.word-chip:hover {
    background: rgba(255,255,255,0.2);
}
