/* Custom Cover Designer Plugin Styles */

.ccd-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.ccd-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ccd-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #f97316;
}

.ccd-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ccd-text-input:focus {
    outline: none;
    border-color: #f97316;
}

.ccd-preview-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.ccd-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
}

.ccd-preview-container {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.ccd-preview-container canvas {
    width: 100%;
    height: auto;
    display: block;
}

.ccd-color-section {
    margin-bottom: 24px;
}

.ccd-color-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ccd-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    position: relative;
}

.ccd-color-swatch:hover {
    transform: scale(1.05);
}

.ccd-color-swatch.ccd-active {
    border-color: #f97316;
    box-shadow: 0 0 0 2px #f97316;
}

.ccd-color-swatch.ccd-custom {
    position: relative;
}

.ccd-color-picker-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ccd-download-btn {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-family: inherit;
}

.ccd-download-btn:hover {
    background: #222;
}

.ccd-download-btn svg {
    flex-shrink: 0;
}
